| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 class SearchBox : public content::RenderViewObserver, | 26 class SearchBox : public content::RenderViewObserver, |
| 27 public content::RenderViewObserverTracker<SearchBox> { | 27 public content::RenderViewObserverTracker<SearchBox> { |
| 28 public: | 28 public: |
| 29 explicit SearchBox(content::RenderView* render_view); | 29 explicit SearchBox(content::RenderView* render_view); |
| 30 virtual ~SearchBox(); | 30 virtual ~SearchBox(); |
| 31 | 31 |
| 32 // Sends ChromeViewHostMsg_SetSuggestion to the browser. | 32 // Sends ChromeViewHostMsg_SetSuggestion to the browser. |
| 33 void SetSuggestions(const std::vector<InstantSuggestion>& suggestions); | 33 void SetSuggestions(const std::vector<InstantSuggestion>& suggestions); |
| 34 | 34 |
| 35 // Sends ChromeViewHostMsg_SetVoiceSearchSupported to the browser. |
| 36 void SetVoiceSearchSupported(bool supported); |
| 37 |
| 35 // Marks the current query text as restricted, to make sure that it does | 38 // Marks the current query text as restricted, to make sure that it does |
| 36 // not get communicated to the page. The restricted status lasts until the | 39 // not get communicated to the page. The restricted status lasts until the |
| 37 // query is next changed or cleared. | 40 // query is next changed or cleared. |
| 38 void MarkQueryAsRestricted(); | 41 void MarkQueryAsRestricted(); |
| 39 | 42 |
| 40 // Sends ChromeViewHostMsg_ShowInstantOverlay to the browser. | 43 // Sends ChromeViewHostMsg_ShowInstantOverlay to the browser. |
| 41 void ShowInstantOverlay(int height, InstantSizeUnits units); | 44 void ShowInstantOverlay(int height, InstantSizeUnits units); |
| 42 | 45 |
| 43 // Sends ChromeViewHostMsg_FocusOmnibox to the browser. | 46 // Sends ChromeViewHostMsg_FocusOmnibox to the browser. |
| 44 void FocusOmnibox(); | 47 void FocusOmnibox(); |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 string16 omnibox_font_; | 199 string16 omnibox_font_; |
| 197 size_t omnibox_font_size_; | 200 size_t omnibox_font_size_; |
| 198 InstantRestrictedIDCache<InstantAutocompleteResult> | 201 InstantRestrictedIDCache<InstantAutocompleteResult> |
| 199 autocomplete_results_cache_; | 202 autocomplete_results_cache_; |
| 200 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_; | 203 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_; |
| 201 | 204 |
| 202 DISALLOW_COPY_AND_ASSIGN(SearchBox); | 205 DISALLOW_COPY_AND_ASSIGN(SearchBox); |
| 203 }; | 206 }; |
| 204 | 207 |
| 205 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ | 208 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ |
| OLD | NEW |