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

Side by Side Diff: chrome/browser/search_engines/template_url.h

Issue 106103006: Added android Template URL support for voice search. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed IsVoiceSearchURL Created 7 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_
6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ 6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 GURL image_url; 126 GURL image_url;
127 127
128 // When searching for an image, the original size of the image. 128 // When searching for an image, the original size of the image.
129 gfx::Size image_original_size; 129 gfx::Size image_original_size;
130 130
131 // If set, ReplaceSearchTerms() will append a param to the TemplateURLRef to 131 // If set, ReplaceSearchTerms() will append a param to the TemplateURLRef to
132 // update the search results page incrementally even if that is otherwise 132 // update the search results page incrementally even if that is otherwise
133 // disabled by google.com preferences. See comments on 133 // disabled by google.com preferences. See comments on
134 // SearchTermsData::ForceInstantResultsParam(). 134 // SearchTermsData::ForceInstantResultsParam().
135 bool force_instant_results; 135 bool force_instant_results;
136
137 // If set ReplaceSearchTerms() will automatically append an extra query
138 // parameter indicating that the search originated from voice input. This
139 // causes the search result page to eanble audio playback with answers.
140 bool is_voice_input_source;
136 }; 141 };
137 142
138 TemplateURLRef(TemplateURL* owner, Type type); 143 TemplateURLRef(TemplateURL* owner, Type type);
139 TemplateURLRef(TemplateURL* owner, size_t index_in_owner); 144 TemplateURLRef(TemplateURL* owner, size_t index_in_owner);
140 ~TemplateURLRef(); 145 ~TemplateURLRef();
141 146
142 // Returns the raw URL. None of the parameters will have been replaced. 147 // Returns the raw URL. None of the parameters will have been replaced.
143 std::string GetURL() const; 148 std::string GetURL() const;
144 149
145 // Returns the raw string of the post params. Please see comments in 150 // Returns the raw string of the post params. Please see comments in
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 GOOGLE_BASE_SUGGEST_URL, 259 GOOGLE_BASE_SUGGEST_URL,
255 GOOGLE_BOOKMARK_BAR_PINNED, 260 GOOGLE_BOOKMARK_BAR_PINNED,
256 GOOGLE_CURRENT_PAGE_URL, 261 GOOGLE_CURRENT_PAGE_URL,
257 GOOGLE_CURSOR_POSITION, 262 GOOGLE_CURSOR_POSITION,
258 GOOGLE_IMAGE_ORIGINAL_HEIGHT, 263 GOOGLE_IMAGE_ORIGINAL_HEIGHT,
259 GOOGLE_IMAGE_ORIGINAL_WIDTH, 264 GOOGLE_IMAGE_ORIGINAL_WIDTH,
260 GOOGLE_IMAGE_SEARCH_SOURCE, 265 GOOGLE_IMAGE_SEARCH_SOURCE,
261 GOOGLE_IMAGE_THUMBNAIL, 266 GOOGLE_IMAGE_THUMBNAIL,
262 GOOGLE_IMAGE_URL, 267 GOOGLE_IMAGE_URL,
263 GOOGLE_FORCE_INSTANT_RESULTS, 268 GOOGLE_FORCE_INSTANT_RESULTS,
269 GOOGLE_VOICE_INPUT_SOURCE,
264 GOOGLE_INSTANT_EXTENDED_ENABLED, 270 GOOGLE_INSTANT_EXTENDED_ENABLED,
265 GOOGLE_NTP_IS_THEMED, 271 GOOGLE_NTP_IS_THEMED,
266 GOOGLE_OMNIBOX_START_MARGIN, 272 GOOGLE_OMNIBOX_START_MARGIN,
267 GOOGLE_ORIGINAL_QUERY_FOR_SUGGESTION, 273 GOOGLE_ORIGINAL_QUERY_FOR_SUGGESTION,
268 GOOGLE_PAGE_CLASSIFICATION, 274 GOOGLE_PAGE_CLASSIFICATION,
269 GOOGLE_RLZ, 275 GOOGLE_RLZ,
270 GOOGLE_SEARCH_CLIENT, 276 GOOGLE_SEARCH_CLIENT,
271 GOOGLE_SEARCH_FIELDTRIAL_GROUP, 277 GOOGLE_SEARCH_FIELDTRIAL_GROUP,
272 GOOGLE_SUGGEST_CLIENT, 278 GOOGLE_SUGGEST_CLIENT,
273 GOOGLE_UNESCAPED_SEARCH_TERMS, 279 GOOGLE_UNESCAPED_SEARCH_TERMS,
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 TemplateURLRef image_url_ref_; 766 TemplateURLRef image_url_ref_;
761 TemplateURLRef new_tab_url_ref_; 767 TemplateURLRef new_tab_url_ref_;
762 scoped_ptr<AssociatedExtensionInfo> extension_info_; 768 scoped_ptr<AssociatedExtensionInfo> extension_info_;
763 769
764 // TODO(sky): Add date last parsed OSD file. 770 // TODO(sky): Add date last parsed OSD file.
765 771
766 DISALLOW_COPY_AND_ASSIGN(TemplateURL); 772 DISALLOW_COPY_AND_ASSIGN(TemplateURL);
767 }; 773 };
768 774
769 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ 775 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698