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