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