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

Side by Side Diff: ios/shared/chrome/browser/ui/omnibox/location_bar_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
(Empty)
1 // Copyright 2017 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.
4
5 #ifndef IOS_SHARED_CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_CONTROLLER_H_
6 #define IOS_SHARED_CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_CONTROLLER_H_
7
8 #include "ios/shared/chrome/browser/ui/omnibox/web_omnibox_edit_controller.h"
9
10 class OmniboxView;
11
12 // C++ object that wraps an OmniboxViewIOS and serves as its
13 // OmniboxEditController. LocationBarController bridges between the edit view
14 // and the rest of the browser and manages text field decorations (location
15 // icon, security icon, etc.).
16 class LocationBarController : public WebOmniboxEditController {
17 public:
18 LocationBarController();
19 ~LocationBarController() override;
20
21 // Called when toolbar state is updated.
22 virtual void OnToolbarUpdated() = 0;
23
24 // Resign omnibox first responder and end edit view editing.
25 virtual void HideKeyboardAndEndEditing() = 0;
26
27 // Tells the omnibox if it can show the hint text or not.
28 virtual void SetShouldShowHintText(bool show_hint_text) = 0;
29
30 // Returns a pointer to the text entry view.
31 virtual const OmniboxView* GetLocationEntry() const = 0;
32 virtual OmniboxView* GetLocationEntry() = 0;
33
34 // True if the omnibox text field is showing a placeholder image in its left
35 // view while it's collapsed (i.e. not in editing mode).
36 virtual bool IsShowingPlaceholderWhileCollapsed() = 0;
37
38 private:
39 DISALLOW_COPY_AND_ASSIGN(LocationBarController);
40 };
41
42 #endif // IOS_SHARED_CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ios/shared/chrome/browser/ui/omnibox/BUILD.gn ('k') | ios/shared/chrome/browser/ui/omnibox/location_bar_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698