| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_UI_SEARCH_SEARCH_IPC_ROUTER_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_ |
| 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // Tells the renderer about the most visited items. | 153 // Tells the renderer about the most visited items. |
| 154 void SendMostVisitedItems(const std::vector<InstantMostVisitedItem>& items); | 154 void SendMostVisitedItems(const std::vector<InstantMostVisitedItem>& items); |
| 155 | 155 |
| 156 // Tells the renderer about the current theme background. | 156 // Tells the renderer about the current theme background. |
| 157 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); | 157 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); |
| 158 | 158 |
| 159 // Tells the page to toggle voice search. | 159 // Tells the page to toggle voice search. |
| 160 void ToggleVoiceSearch(); | 160 void ToggleVoiceSearch(); |
| 161 | 161 |
| 162 // Tells the page that the user pressed Enter in the omnibox. | 162 // Tells the page that the user pressed Enter in the omnibox. |
| 163 void Submit(const base::string16& text); | 163 void Submit(const base::string16& text, |
| 164 const EmbeddedSearchRequestParams& params); |
| 164 | 165 |
| 165 // Called when the tab corresponding to |this| instance is activated. | 166 // Called when the tab corresponding to |this| instance is activated. |
| 166 void OnTabActivated(); | 167 void OnTabActivated(); |
| 167 | 168 |
| 168 // Called when the tab corresponding to |this| instance is deactivated. | 169 // Called when the tab corresponding to |this| instance is deactivated. |
| 169 void OnTabDeactivated(); | 170 void OnTabDeactivated(); |
| 170 | 171 |
| 171 private: | 172 private: |
| 172 friend class SearchIPCRouterPolicyTest; | 173 friend class SearchIPCRouterPolicyTest; |
| 173 friend class SearchIPCRouterTest; | 174 friend class SearchIPCRouterTest; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 // SearchIPCRouter to ensure that delayed IPC replies are ignored. | 229 // SearchIPCRouter to ensure that delayed IPC replies are ignored. |
| 229 int commit_counter_; | 230 int commit_counter_; |
| 230 | 231 |
| 231 // Set to true, when the tab corresponding to |this| instance is active. | 232 // Set to true, when the tab corresponding to |this| instance is active. |
| 232 bool is_active_tab_; | 233 bool is_active_tab_; |
| 233 | 234 |
| 234 DISALLOW_COPY_AND_ASSIGN(SearchIPCRouter); | 235 DISALLOW_COPY_AND_ASSIGN(SearchIPCRouter); |
| 235 }; | 236 }; |
| 236 | 237 |
| 237 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_ | 238 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_ |
| OLD | NEW |