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

Side by Side Diff: chrome/renderer/searchbox/searchbox.h

Issue 17132011: Add setVoiceSearchSupported to the searchbox API. This will be used to determine whether to show a … (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Rebase past 16035020, add test. Created 7 years, 6 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
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 14 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « chrome/renderer/resources/extensions/searchbox_api.js ('k') | chrome/renderer/searchbox/searchbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698