Elim cr-checkbox
[chromium-blink-merge.git] / chrome / browser / ui / omnibox / chrome_omnibox_edit_controller.h
blob386b5e9f4909b14411001c7125e95c874312d542
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_OMNIBOX_CHROME_OMNIBOX_EDIT_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_OMNIBOX_CHROME_OMNIBOX_EDIT_CONTROLLER_H_
8 #include "components/omnibox/browser/omnibox_edit_controller.h"
10 class CommandUpdater;
12 namespace content {
13 class WebContents;
16 // Chrome-specific extension of the OmniboxEditController base class.
17 class ChromeOmniboxEditController : public OmniboxEditController {
18 public:
19 // Returns the WebContents of the currently active tab.
20 virtual content::WebContents* GetWebContents() = 0;
22 CommandUpdater* command_updater() { return command_updater_; }
23 const CommandUpdater* command_updater() const { return command_updater_; }
25 protected:
26 explicit ChromeOmniboxEditController(CommandUpdater* command_updater);
27 ~ChromeOmniboxEditController() override;
29 private:
30 // OmniboxEditController:
31 void OnAutocompleteAccept(const GURL& destination_url,
32 WindowOpenDisposition disposition,
33 ui::PageTransition transition) override;
35 CommandUpdater* command_updater_;
37 DISALLOW_COPY_AND_ASSIGN(ChromeOmniboxEditController);
40 #endif // CHROME_BROWSER_UI_OMNIBOX_CHROME_OMNIBOX_EDIT_CONTROLLER_H_