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_BROWSER_SEARCH_SEARCH_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_SEARCH_H_ |
6 #define CHROME_BROWSER_SEARCH_SEARCH_H_ | 6 #define CHROME_BROWSER_SEARCH_SEARCH_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 177 |
178 // Returns the Local Instant URL of the New Tab Page. | 178 // Returns the Local Instant URL of the New Tab Page. |
179 // TODO(kmadhusu): Remove this function and update the call sites. | 179 // TODO(kmadhusu): Remove this function and update the call sites. |
180 GURL GetLocalInstantURL(Profile* profile); | 180 GURL GetLocalInstantURL(Profile* profile); |
181 | 181 |
182 // Returns true if 'hide_verbatim' flag is enabled in field trials | 182 // Returns true if 'hide_verbatim' flag is enabled in field trials |
183 // to hide the top match in the native suggestions dropdown if it is a verbatim | 183 // to hide the top match in the native suggestions dropdown if it is a verbatim |
184 // match. See comments on ShouldHideTopMatch in autocomplete_result.h. | 184 // match. See comments on ShouldHideTopMatch in autocomplete_result.h. |
185 bool ShouldHideTopVerbatimMatch(); | 185 bool ShouldHideTopVerbatimMatch(); |
186 | 186 |
| 187 // Returns true if the Answers in Suggest feature is enabled, which places |
| 188 // short responses to queries such as current weather conditions or stock quotes |
| 189 // in the Omnibox suggestion list. |
| 190 bool IsAnswersInSuggestEnabled(); |
| 191 |
187 // Returns when we should show a search button in the omnibox. This may be any | 192 // Returns when we should show a search button in the omnibox. This may be any |
188 // of several values, some of which depend on whether the underlying state of | 193 // of several values, some of which depend on whether the underlying state of |
189 // the page would normally be to perform search term replacement; see also | 194 // the page would normally be to perform search term replacement; see also |
190 // ToolbarModel::WouldPerformSearchTermReplacement(). | 195 // ToolbarModel::WouldPerformSearchTermReplacement(). |
191 DisplaySearchButtonConditions GetDisplaySearchButtonConditions(); | 196 DisplaySearchButtonConditions GetDisplaySearchButtonConditions(); |
192 | 197 |
193 // Returns true if the origin chip should be shown. | 198 // Returns true if the origin chip should be shown. |
194 bool ShouldDisplayOriginChip(); | 199 bool ShouldDisplayOriginChip(); |
195 | 200 |
196 // Returns a value indicating when the origin chip should be shown. | 201 // Returns a value indicating when the origin chip should be shown. |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 bool GetBoolValueForFlagWithDefault(const std::string& flag, | 285 bool GetBoolValueForFlagWithDefault(const std::string& flag, |
281 bool default_value, | 286 bool default_value, |
282 const FieldTrialFlags& flags); | 287 const FieldTrialFlags& flags); |
283 | 288 |
284 // Returns the Cacheable New Tab Page URL for the given |profile|. | 289 // Returns the Cacheable New Tab Page URL for the given |profile|. |
285 GURL GetNewTabPageURL(Profile* profile); | 290 GURL GetNewTabPageURL(Profile* profile); |
286 | 291 |
287 } // namespace chrome | 292 } // namespace chrome |
288 | 293 |
289 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ | 294 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ |
OLD | NEW |