OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_ | 5 #ifndef COMPONENTS_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_ |
6 #define COMPONENTS_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_ | 6 #define COMPONENTS_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // pages. | 56 // pages. |
57 virtual bool IsShowingSearchTermsOnSearchResultsPages() const; | 57 virtual bool IsShowingSearchTermsOnSearchResultsPages() const; |
58 | 58 |
59 // Returns a string indicating whether InstantExtended is enabled. | 59 // Returns a string indicating whether InstantExtended is enabled. |
60 virtual std::string InstantExtendedEnabledParam(bool for_search) const; | 60 virtual std::string InstantExtendedEnabledParam(bool for_search) const; |
61 | 61 |
62 // Returns a string that will cause the search results page to update | 62 // Returns a string that will cause the search results page to update |
63 // incrementally. | 63 // incrementally. |
64 virtual std::string ForceInstantResultsParam(bool for_prerender) const; | 64 virtual std::string ForceInstantResultsParam(bool for_prerender) const; |
65 | 65 |
| 66 // Returns the start-edge margin of the omnibox in pixels. |
| 67 virtual int OmniboxStartMargin() const; |
| 68 |
66 // Returns a string indicating whether a non-default theme is active, | 69 // Returns a string indicating whether a non-default theme is active, |
67 // suitable for adding as a query string param to the homepage. This only | 70 // suitable for adding as a query string param to the homepage. This only |
68 // applies if Instant Extended is enabled. Returns an empty string otherwise. | 71 // applies if Instant Extended is enabled. Returns an empty string otherwise. |
69 // Determining this requires accessing the Profile, so this can only ever be | 72 // Determining this requires accessing the Profile, so this can only ever be |
70 // non-empty for UIThreadSearchTermsData. | 73 // non-empty for UIThreadSearchTermsData. |
71 virtual std::string NTPIsThemedParam() const; | 74 virtual std::string NTPIsThemedParam() const; |
72 | 75 |
73 // Returns the value to use for replacements of type | 76 // Returns the value to use for replacements of type |
74 // GOOGLE_IMAGE_SEARCH_SOURCE. | 77 // GOOGLE_IMAGE_SEARCH_SOURCE. |
75 virtual std::string GoogleImageSearchSource() const; | 78 virtual std::string GoogleImageSearchSource() const; |
76 | 79 |
77 private: | 80 private: |
78 DISALLOW_COPY_AND_ASSIGN(SearchTermsData); | 81 DISALLOW_COPY_AND_ASSIGN(SearchTermsData); |
79 }; | 82 }; |
80 | 83 |
81 #endif // COMPONENTS_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_ | 84 #endif // COMPONENTS_SEARCH_ENGINES_SEARCH_TERMS_DATA_H_ |
OLD | NEW |