| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 void OnAutocompleteResults( | 105 void OnAutocompleteResults( |
| 106 const std::vector<InstantAutocompleteResult>& results); | 106 const std::vector<InstantAutocompleteResult>& results); |
| 107 void OnUpOrDownKeyPressed(int count); | 107 void OnUpOrDownKeyPressed(int count); |
| 108 void OnCancelSelection(const string16& query); | 108 void OnCancelSelection(const string16& query); |
| 109 void OnKeyCaptureChange(bool is_key_capture_enabled); | 109 void OnKeyCaptureChange(bool is_key_capture_enabled); |
| 110 void OnSetDisplayInstantResults(bool display_instant_results); | 110 void OnSetDisplayInstantResults(bool display_instant_results); |
| 111 void OnThemeChanged(const ThemeBackgroundInfo& theme_info); | 111 void OnThemeChanged(const ThemeBackgroundInfo& theme_info); |
| 112 void OnThemeAreaHeightChanged(int height); | 112 void OnThemeAreaHeightChanged(int height); |
| 113 void OnFontInformationReceived(const string16& omnibox_font, | 113 void OnFontInformationReceived(const string16& omnibox_font, |
| 114 size_t omnibox_font_size); | 114 size_t omnibox_font_size); |
| 115 void OnGrantAccessFromOrigin(const GURL& origin_url); |
| 115 void OnMostVisitedChanged(const std::vector<MostVisitedItem>& items); | 116 void OnMostVisitedChanged(const std::vector<MostVisitedItem>& items); |
| 116 | 117 |
| 117 // Returns the current zoom factor of the render view or 1 on failure. | 118 // Returns the current zoom factor of the render view or 1 on failure. |
| 118 double GetZoom() const; | 119 double GetZoom() const; |
| 119 | 120 |
| 120 // Sets the searchbox values to their initial value. | 121 // Sets the searchbox values to their initial value. |
| 121 void Reset(); | 122 void Reset(); |
| 122 | 123 |
| 123 string16 query_; | 124 string16 query_; |
| 124 bool verbatim_; | 125 bool verbatim_; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 142 // TODO(dcblack): Unify this logic to work with both Most Visited and | 143 // TODO(dcblack): Unify this logic to work with both Most Visited and |
| 143 // history suggestions. (crbug/175768) | 144 // history suggestions. (crbug/175768) |
| 144 std::map<string16, int> url_to_restricted_id_map_; | 145 std::map<string16, int> url_to_restricted_id_map_; |
| 145 std::map<int, string16> restricted_id_to_url_map_; | 146 std::map<int, string16> restricted_id_to_url_map_; |
| 146 int last_restricted_id_; | 147 int last_restricted_id_; |
| 147 | 148 |
| 148 DISALLOW_COPY_AND_ASSIGN(SearchBox); | 149 DISALLOW_COPY_AND_ASSIGN(SearchBox); |
| 149 }; | 150 }; |
| 150 | 151 |
| 151 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ | 152 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ |
| OLD | NEW |