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

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.h

Issue 2735533002: Use SetUserText() in OmniboxViewViews emphasis tests to ensure system coherence. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/omnibox/omnibox_view_views_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/omnibox/omnibox_view_views_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698