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

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: '' 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 | Annotate | Revision Log
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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 // Returns the current zoom factor of the render view or 1 on failure. 146 // Returns the current zoom factor of the render view or 1 on failure.
147 double GetZoom() const; 147 double GetZoom() const;
148 148
149 // Sets the searchbox values to their initial value. 149 // Sets the searchbox values to their initial value.
150 void Reset(); 150 void Reset();
151 151
152 // Sets the query to a new value. 152 // Sets the query to a new value.
153 void SetQuery(const string16& query, bool verbatim); 153 void SetQuery(const string16& query, bool verbatim);
154 154
155 // Returns the URL of the Most Visited item specified by the |item_id|.
156 GURL GetURLForMostVisitedItem(InstantRestrictedID item_id) const;
157
155 string16 query_; 158 string16 query_;
156 bool verbatim_; 159 bool verbatim_;
157 bool query_is_restricted_; 160 bool query_is_restricted_;
158 size_t selection_start_; 161 size_t selection_start_;
159 size_t selection_end_; 162 size_t selection_end_;
160 int start_margin_; 163 int start_margin_;
161 gfx::Rect popup_bounds_; 164 gfx::Rect popup_bounds_;
162 bool is_key_capture_enabled_; 165 bool is_key_capture_enabled_;
163 ThemeBackgroundInfo theme_info_; 166 ThemeBackgroundInfo theme_info_;
164 bool display_instant_results_; 167 bool display_instant_results_;
165 string16 omnibox_font_; 168 string16 omnibox_font_;
166 size_t omnibox_font_size_; 169 size_t omnibox_font_size_;
167 InstantRestrictedIDCache<InstantAutocompleteResult> 170 InstantRestrictedIDCache<InstantAutocompleteResult>
168 autocomplete_results_cache_; 171 autocomplete_results_cache_;
169 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_; 172 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_;
170 173
171 DISALLOW_COPY_AND_ASSIGN(SearchBox); 174 DISALLOW_COPY_AND_ASSIGN(SearchBox);
172 }; 175 };
173 176
174 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 177 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698