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"
16 // Chrome-specific extension of the OmniboxEditController base class.
17 class ChromeOmniboxEditController
: public OmniboxEditController
{
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_
; }
26 explicit ChromeOmniboxEditController(CommandUpdater
* command_updater
);
27 ~ChromeOmniboxEditController() override
;
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_