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

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

Issue 14660022: Move most visited item state info from InstantController to InstantService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/searchbox/searchbox.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 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 // Returns the current zoom factor of the render view or 1 on failure. 149 // Returns the current zoom factor of the render view or 1 on failure.
150 double GetZoom() const; 150 double GetZoom() const;
151 151
152 // Sets the searchbox values to their initial value. 152 // Sets the searchbox values to their initial value.
153 void Reset(); 153 void Reset();
154 154
155 // Sets the query to a new value. 155 // Sets the query to a new value.
156 void SetQuery(const string16& query, bool verbatim); 156 void SetQuery(const string16& query, bool verbatim);
157 157
158 // Returns the URL of the Most Visited item specified by the |item_id|.
159 GURL GetURLForMostVisitedItem(InstantRestrictedID item_id) const;
160
158 string16 query_; 161 string16 query_;
159 bool verbatim_; 162 bool verbatim_;
160 bool query_is_restricted_; 163 bool query_is_restricted_;
161 size_t selection_start_; 164 size_t selection_start_;
162 size_t selection_end_; 165 size_t selection_end_;
163 int start_margin_; 166 int start_margin_;
164 gfx::Rect popup_bounds_; 167 gfx::Rect popup_bounds_;
165 bool is_focused_; 168 bool is_focused_;
166 bool is_key_capture_enabled_; 169 bool is_key_capture_enabled_;
167 ThemeBackgroundInfo theme_info_; 170 ThemeBackgroundInfo theme_info_;
168 bool display_instant_results_; 171 bool display_instant_results_;
169 string16 omnibox_font_; 172 string16 omnibox_font_;
170 size_t omnibox_font_size_; 173 size_t omnibox_font_size_;
171 InstantRestrictedIDCache<InstantAutocompleteResult> 174 InstantRestrictedIDCache<InstantAutocompleteResult>
172 autocomplete_results_cache_; 175 autocomplete_results_cache_;
173 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_; 176 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_;
174 177
175 DISALLOW_COPY_AND_ASSIGN(SearchBox); 178 DISALLOW_COPY_AND_ASSIGN(SearchBox);
176 }; 179 };
177 180
178 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 181 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/searchbox/searchbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698