OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
78 | 78 |
79 // Called when the window's active tab changes. | 79 // Called when the window's active tab changes. |
80 void OnTabChanged(const content::WebContents* web_contents); | 80 void OnTabChanged(const content::WebContents* web_contents); |
81 | 81 |
82 // Called to clear the saved state for |web_contents|. | 82 // Called to clear the saved state for |web_contents|. |
83 void ResetTabState(content::WebContents* web_contents); | 83 void ResetTabState(content::WebContents* web_contents); |
84 | 84 |
85 // OmniboxView: | 85 // OmniboxView: |
86 void Update() override; | 86 void Update() override; |
87 base::string16 GetText() const override; | 87 base::string16 GetText() const override; |
88 using OmniboxView::SetUserText; | |
elawrence
2017/03/04 18:41:48
I must plead ignorance to what this using declarat
Peter Kasting
2017/03/06 21:18:03
It exposes the base class methods that are not ove
| |
88 void SetUserText(const base::string16& text, | 89 void SetUserText(const base::string16& text, |
89 bool update_popup) override; | 90 bool update_popup) override; |
90 void EnterKeywordModeForDefaultSearchProvider() override; | 91 void EnterKeywordModeForDefaultSearchProvider() override; |
91 void GetSelectionBounds(base::string16::size_type* start, | 92 void GetSelectionBounds(base::string16::size_type* start, |
92 base::string16::size_type* end) const override; | 93 base::string16::size_type* end) const override; |
93 void SelectAll(bool reversed) override; | 94 void SelectAll(bool reversed) override; |
94 void RevertAll() override; | 95 void RevertAll() override; |
95 void SetFocus() override; | 96 void SetFocus() override; |
96 int GetTextWidth() const override; | 97 int GetTextWidth() const override; |
97 bool IsImeComposing() const override; | 98 bool IsImeComposing() const override; |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
241 bool select_all_on_gesture_tap_; | 242 bool select_all_on_gesture_tap_; |
242 | 243 |
243 // The time of the first character insert operation that has not yet been | 244 // The time of the first character insert operation that has not yet been |
244 // painted. Used to measure omnibox responsiveness with a histogram. | 245 // painted. Used to measure omnibox responsiveness with a histogram. |
245 base::TimeTicks insert_char_time_; | 246 base::TimeTicks insert_char_time_; |
246 | 247 |
247 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); | 248 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); |
248 }; | 249 }; |
249 | 250 |
250 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ | 251 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
OLD | NEW |