Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(665)

Side by Side Diff: ios/shared/chrome/browser/ui/omnibox/web_omnibox_edit_controller.h

Issue 2796793003: [ios] Adds a LocationBarController interface. (Closed)
Patch Set: Review. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_UI_OMNIBOX_WEB_OMNIBOX_EDIT_CONTROLLER_H_ 5 #ifndef IOS_SHARED_CHROME_BROWSER_UI_OMNIBOX_WEB_OMNIBOX_EDIT_CONTROLLER_H_
6 #define IOS_CHROME_BROWSER_UI_OMNIBOX_WEB_OMNIBOX_EDIT_CONTROLLER_H_ 6 #define IOS_SHARED_CHROME_BROWSER_UI_OMNIBOX_WEB_OMNIBOX_EDIT_CONTROLLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/omnibox/browser/omnibox_edit_controller.h" 9 #include "components/omnibox/browser/omnibox_edit_controller.h"
10 10
11 namespace web { 11 namespace web {
12 class WebState; 12 class WebState;
13 } 13 }
14 14
15 // iOS-specific extension of the OmniboxEditController base class. 15 // iOS-specific extension of the OmniboxEditController base class.
16 class WebOmniboxEditController : public OmniboxEditController { 16 class WebOmniboxEditController : public OmniboxEditController {
17 public: 17 public:
18 // Returns the WebState of the currently active tab. 18 // Returns the WebState of the currently active tab.
19 virtual web::WebState* GetWebState() = 0; 19 virtual web::WebState* GetWebState() = 0;
20 20
21 // The autocomplete edit lost focus. 21 // The autocomplete edit lost focus.
22 virtual void OnKillFocus() = 0; 22 virtual void OnKillFocus() = 0;
23 23
24 // The autocomplete got focus. 24 // The autocomplete got focus.
25 virtual void OnSetFocus() = 0; 25 virtual void OnSetFocus() = 0;
26 26
27 protected: 27 protected:
28 WebOmniboxEditController(); 28 WebOmniboxEditController();
29 ~WebOmniboxEditController() override; 29 ~WebOmniboxEditController() override;
30 30
31 private: 31 private:
32 DISALLOW_COPY_AND_ASSIGN(WebOmniboxEditController); 32 DISALLOW_COPY_AND_ASSIGN(WebOmniboxEditController);
33 }; 33 };
34 34
35 #endif // IOS_CHROME_BROWSER_UI_OMNIBOX_WEB_OMNIBOX_EDIT_CONTROLLER_H_ 35 #endif // IOS_SHARED_CHROME_BROWSER_UI_OMNIBOX_WEB_OMNIBOX_EDIT_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698