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

Side by Side Diff: chrome/renderer/searchbox/searchbox.h

Issue 14805004: InstantExtended: Prevent spurious themechanged/mostvisitedchanged events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use Did<item>Change methods Created 7 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_RENDERER_SEARCHBOX_SEARCHBOX_H_ 5 #ifndef CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
6 #define CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 6 #define CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 void OnAutocompleteResults( 127 void OnAutocompleteResults(
128 const std::vector<InstantAutocompleteResult>& results); 128 const std::vector<InstantAutocompleteResult>& results);
129 void OnUpOrDownKeyPressed(int count); 129 void OnUpOrDownKeyPressed(int count);
130 void OnCancelSelection(const string16& query, 130 void OnCancelSelection(const string16& query,
131 bool verbatim, 131 bool verbatim,
132 size_t selection_start, 132 size_t selection_start,
133 size_t selection_end); 133 size_t selection_end);
134 void OnKeyCaptureChange(bool is_key_capture_enabled); 134 void OnKeyCaptureChange(bool is_key_capture_enabled);
135 void OnSetDisplayInstantResults(bool display_instant_results); 135 void OnSetDisplayInstantResults(bool display_instant_results);
136 void OnThemeChanged(const ThemeBackgroundInfo& theme_info); 136 void OnThemeChanged(const ThemeBackgroundInfo& theme_info);
137 bool DidThemeInfoChange(const ThemeBackgroundInfo& theme_info);
137 void OnThemeAreaHeightChanged(int height); 138 void OnThemeAreaHeightChanged(int height);
138 void OnFontInformationReceived(const string16& omnibox_font, 139 void OnFontInformationReceived(const string16& omnibox_font,
139 size_t omnibox_font_size); 140 size_t omnibox_font_size);
140 void OnMostVisitedChanged( 141 void OnMostVisitedChanged(
141 const std::vector<InstantMostVisitedItemIDPair>& items); 142 const std::vector<InstantMostVisitedItemIDPair>& items);
142 143 bool DidMostVisitedItemsChange(
144 const std::vector<InstantMostVisitedItemIDPair>& items);
143 // Returns the current zoom factor of the render view or 1 on failure. 145 // Returns the current zoom factor of the render view or 1 on failure.
144 double GetZoom() const; 146 double GetZoom() const;
145 147
146 // Sets the searchbox values to their initial value. 148 // Sets the searchbox values to their initial value.
147 void Reset(); 149 void Reset();
148 150
149 string16 query_; 151 string16 query_;
150 bool verbatim_; 152 bool verbatim_;
151 size_t selection_start_; 153 size_t selection_start_;
152 size_t selection_end_; 154 size_t selection_end_;
153 int start_margin_; 155 int start_margin_;
154 gfx::Rect popup_bounds_; 156 gfx::Rect popup_bounds_;
155 bool is_key_capture_enabled_; 157 bool is_key_capture_enabled_;
156 ThemeBackgroundInfo theme_info_; 158 ThemeBackgroundInfo theme_info_;
157 bool display_instant_results_; 159 bool display_instant_results_;
158 string16 omnibox_font_; 160 string16 omnibox_font_;
159 size_t omnibox_font_size_; 161 size_t omnibox_font_size_;
160 InstantRestrictedIDCache<InstantAutocompleteResult> 162 InstantRestrictedIDCache<InstantAutocompleteResult>
161 autocomplete_results_cache_; 163 autocomplete_results_cache_;
162 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_; 164 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_;
163 165
164 DISALLOW_COPY_AND_ASSIGN(SearchBox); 166 DISALLOW_COPY_AND_ASSIGN(SearchBox);
165 }; 167 };
166 168
167 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 169 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/searchbox/searchbox.cc » ('j') | chrome/renderer/searchbox/searchbox.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698