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_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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 std::vector<InstantMostVisitedItemIDPair>* items) const; | 103 std::vector<InstantMostVisitedItemIDPair>* items) const; |
104 | 104 |
105 // If the |most_visited_item_id| is found in the cache, sets |item| to it | 105 // If the |most_visited_item_id| is found in the cache, sets |item| to it |
106 // and returns true. | 106 // and returns true. |
107 bool GetMostVisitedItemWithID(InstantRestrictedID most_visited_item_id, | 107 bool GetMostVisitedItemWithID(InstantRestrictedID most_visited_item_id, |
108 InstantMostVisitedItem* item) const; | 108 InstantMostVisitedItem* item) const; |
109 | 109 |
110 // Sends ChromeViewHostMsg_FocusOmnibox to the browser. | 110 // Sends ChromeViewHostMsg_FocusOmnibox to the browser. |
111 void Focus(); | 111 void Focus(); |
112 | 112 |
113 // Sends ChromeViewHostMsg_SearchBoxNavigate to the browser. | |
114 void NavigateToURL(const GURL& url, WindowOpenDisposition disposition); | |
115 | |
116 // Sends ChromeViewHostMsg_SearchBoxPaste to the browser. | 113 // Sends ChromeViewHostMsg_SearchBoxPaste to the browser. |
117 void Paste(const base::string16& text); | 114 void Paste(const base::string16& text); |
118 | 115 |
119 const ThemeBackgroundInfo& GetThemeBackgroundInfo(); | 116 const ThemeBackgroundInfo& GetThemeBackgroundInfo(); |
120 const EmbeddedSearchRequestParams& GetEmbeddedSearchRequestParams(); | 117 const EmbeddedSearchRequestParams& GetEmbeddedSearchRequestParams(); |
121 | 118 |
122 // Sends ChromeViewHostMsg_StartCapturingKeyStrokes to the browser. | 119 // Sends ChromeViewHostMsg_StartCapturingKeyStrokes to the browser. |
123 void StartCapturingKeyStrokes(); | 120 void StartCapturingKeyStrokes(); |
124 | 121 |
125 // Sends ChromeViewHostMsg_StopCapturingKeyStrokes to the browser. | 122 // Sends ChromeViewHostMsg_StopCapturingKeyStrokes to the browser. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_; | 176 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_; |
180 ThemeBackgroundInfo theme_info_; | 177 ThemeBackgroundInfo theme_info_; |
181 base::string16 query_; | 178 base::string16 query_; |
182 EmbeddedSearchRequestParams embedded_search_request_params_; | 179 EmbeddedSearchRequestParams embedded_search_request_params_; |
183 InstantSuggestion suggestion_; | 180 InstantSuggestion suggestion_; |
184 | 181 |
185 DISALLOW_COPY_AND_ASSIGN(SearchBox); | 182 DISALLOW_COPY_AND_ASSIGN(SearchBox); |
186 }; | 183 }; |
187 | 184 |
188 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ | 185 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ |
OLD | NEW |