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

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

Issue 1428423002: Remove setVoiceSearchSupported part of EmbeddedSearch SearchBox API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 void NavigateToURL(const GURL& url, 114 void NavigateToURL(const GURL& url,
115 WindowOpenDisposition disposition, 115 WindowOpenDisposition disposition,
116 bool is_most_visited_item_url); 116 bool is_most_visited_item_url);
117 117
118 // Sends ChromeViewHostMsg_SearchBoxPaste to the browser. 118 // Sends ChromeViewHostMsg_SearchBoxPaste to the browser.
119 void Paste(const base::string16& text); 119 void Paste(const base::string16& text);
120 120
121 const ThemeBackgroundInfo& GetThemeBackgroundInfo(); 121 const ThemeBackgroundInfo& GetThemeBackgroundInfo();
122 const EmbeddedSearchRequestParams& GetEmbeddedSearchRequestParams(); 122 const EmbeddedSearchRequestParams& GetEmbeddedSearchRequestParams();
123 123
124 // Sends ChromeViewHostMsg_SetVoiceSearchSupported to the browser.
125 void SetVoiceSearchSupported(bool supported);
126
127 // Sends ChromeViewHostMsg_StartCapturingKeyStrokes to the browser. 124 // Sends ChromeViewHostMsg_StartCapturingKeyStrokes to the browser.
128 void StartCapturingKeyStrokes(); 125 void StartCapturingKeyStrokes();
129 126
130 // Sends ChromeViewHostMsg_StopCapturingKeyStrokes to the browser. 127 // Sends ChromeViewHostMsg_StopCapturingKeyStrokes to the browser.
131 void StopCapturingKeyStrokes(); 128 void StopCapturingKeyStrokes();
132 129
133 // Sends ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions to the 130 // Sends ChromeViewHostMsg_SearchBoxUndoAllMostVisitedDeletions to the
134 // browser. 131 // browser.
135 void UndoAllMostVisitedDeletions(); 132 void UndoAllMostVisitedDeletions();
136 133
(...skipping 23 matching lines...) Expand all
160 void OnMarginChange(int margin); 157 void OnMarginChange(int margin);
161 void OnMostVisitedChanged( 158 void OnMostVisitedChanged(
162 const std::vector<InstantMostVisitedItem>& items); 159 const std::vector<InstantMostVisitedItem>& items);
163 void OnPromoInformationReceived(bool is_app_launcher_enabled); 160 void OnPromoInformationReceived(bool is_app_launcher_enabled);
164 void OnSetDisplayInstantResults(bool display_instant_results); 161 void OnSetDisplayInstantResults(bool display_instant_results);
165 void OnSetInputInProgress(bool input_in_progress); 162 void OnSetInputInProgress(bool input_in_progress);
166 void OnSetSuggestionToPrefetch(const InstantSuggestion& suggestion); 163 void OnSetSuggestionToPrefetch(const InstantSuggestion& suggestion);
167 void OnSubmit(const base::string16& query, 164 void OnSubmit(const base::string16& query,
168 const EmbeddedSearchRequestParams& params); 165 const EmbeddedSearchRequestParams& params);
169 void OnThemeChanged(const ThemeBackgroundInfo& theme_info); 166 void OnThemeChanged(const ThemeBackgroundInfo& theme_info);
170 void OnToggleVoiceSearch(); 167 void OnToggleVoiceSearch();
msw 2015/11/06 23:59:23 Remove this and the base decl?
Evan Stade 2015/11/07 00:43:03 Done.
171 168
172 // Returns the current zoom factor of the render view or 1 on failure. 169 // Returns the current zoom factor of the render view or 1 on failure.
173 double GetZoom() const; 170 double GetZoom() const;
174 171
175 // Sets the searchbox values to their initial value. 172 // Sets the searchbox values to their initial value.
176 void Reset(); 173 void Reset();
177 174
178 // Returns the URL of the Most Visited item specified by the |item_id|. 175 // Returns the URL of the Most Visited item specified by the |item_id|.
179 GURL GetURLForMostVisitedItem(InstantRestrictedID item_id) const; 176 GURL GetURLForMostVisitedItem(InstantRestrictedID item_id) const;
180 177
181 int page_seq_no_; 178 int page_seq_no_;
182 bool app_launcher_enabled_; 179 bool app_launcher_enabled_;
183 bool is_focused_; 180 bool is_focused_;
184 bool is_input_in_progress_; 181 bool is_input_in_progress_;
185 bool is_key_capture_enabled_; 182 bool is_key_capture_enabled_;
186 bool display_instant_results_; 183 bool display_instant_results_;
187 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_; 184 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_;
188 ThemeBackgroundInfo theme_info_; 185 ThemeBackgroundInfo theme_info_;
189 base::string16 query_; 186 base::string16 query_;
190 EmbeddedSearchRequestParams embedded_search_request_params_; 187 EmbeddedSearchRequestParams embedded_search_request_params_;
191 int start_margin_; 188 int start_margin_;
192 InstantSuggestion suggestion_; 189 InstantSuggestion suggestion_;
193 190
194 DISALLOW_COPY_AND_ASSIGN(SearchBox); 191 DISALLOW_COPY_AND_ASSIGN(SearchBox);
195 }; 192 };
196 193
197 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 194 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698