OLD | NEW |
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 Loading... |
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 // chrome::ForceInstantResultsParam(). | 134 // chrome::ForceInstantResultsParam(). |
135 bool force_instant_results; | 135 bool force_instant_results; |
| 136 |
| 137 // True if the search was made using the app list search box. Otherwise, the |
| 138 // search was made using the omnibox. |
| 139 bool from_app_list; |
136 }; | 140 }; |
137 | 141 |
138 TemplateURLRef(TemplateURL* owner, Type type); | 142 TemplateURLRef(TemplateURL* owner, Type type); |
139 TemplateURLRef(TemplateURL* owner, size_t index_in_owner); | 143 TemplateURLRef(TemplateURL* owner, size_t index_in_owner); |
140 ~TemplateURLRef(); | 144 ~TemplateURLRef(); |
141 | 145 |
142 // Returns the raw URL. None of the parameters will have been replaced. | 146 // Returns the raw URL. None of the parameters will have been replaced. |
143 std::string GetURL() const; | 147 std::string GetURL() const; |
144 | 148 |
145 // Returns the raw string of the post params. Please see comments in | 149 // Returns the raw string of the post params. Please see comments in |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
761 TemplateURLRef image_url_ref_; | 765 TemplateURLRef image_url_ref_; |
762 TemplateURLRef new_tab_url_ref_; | 766 TemplateURLRef new_tab_url_ref_; |
763 scoped_ptr<AssociatedExtensionInfo> extension_info_; | 767 scoped_ptr<AssociatedExtensionInfo> extension_info_; |
764 | 768 |
765 // TODO(sky): Add date last parsed OSD file. | 769 // TODO(sky): Add date last parsed OSD file. |
766 | 770 |
767 DISALLOW_COPY_AND_ASSIGN(TemplateURL); | 771 DISALLOW_COPY_AND_ASSIGN(TemplateURL); |
768 }; | 772 }; |
769 | 773 |
770 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ | 774 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_H_ |
OLD | NEW |