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

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

Issue 1943683002: Refactor OmniboxEditModel::user_text_ to not include keyword (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore keyword state on tab switch Created 4 years, 7 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 (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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // Called when the window's active tab changes. 81 // Called when the window's active tab changes.
82 void OnTabChanged(const content::WebContents* web_contents); 82 void OnTabChanged(const content::WebContents* web_contents);
83 83
84 // Called to clear the saved state for |web_contents|. 84 // Called to clear the saved state for |web_contents|.
85 void ResetTabState(content::WebContents* web_contents); 85 void ResetTabState(content::WebContents* web_contents);
86 86
87 // OmniboxView: 87 // OmniboxView:
88 void Update() override; 88 void Update() override;
89 base::string16 GetText() const override; 89 base::string16 GetText() const override;
90 void SetUserText(const base::string16& text, 90 void SetUserText(const base::string16& text,
91 const base::string16& display_text,
92 bool update_popup) override; 91 bool update_popup) override;
93 void SetForcedQuery() override; 92 void SetForcedQuery() override;
94 void GetSelectionBounds(base::string16::size_type* start, 93 void GetSelectionBounds(base::string16::size_type* start,
95 base::string16::size_type* end) const override; 94 base::string16::size_type* end) const override;
96 void SelectAll(bool reversed) override; 95 void SelectAll(bool reversed) override;
97 void RevertAll() override; 96 void RevertAll() override;
98 void SetFocus() override; 97 void SetFocus() override;
99 int GetTextWidth() const override; 98 int GetTextWidth() const override;
100 bool IsImeComposing() const override; 99 bool IsImeComposing() const override;
101 100
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // painted. Used to measure omnibox responsiveness with a histogram. 252 // painted. Used to measure omnibox responsiveness with a histogram.
254 base::TimeTicks insert_char_time_; 253 base::TimeTicks insert_char_time_;
255 254
256 // Used to bind callback functions to this object. 255 // Used to bind callback functions to this object.
257 base::WeakPtrFactory<OmniboxViewViews> weak_ptr_factory_; 256 base::WeakPtrFactory<OmniboxViewViews> weak_ptr_factory_;
258 257
259 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); 258 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews);
260 }; 259 };
261 260
262 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ 261 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698