| 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 <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 void OmniboxFocusChanged(OmniboxFocusState state, | 148 void OmniboxFocusChanged(OmniboxFocusState state, |
| 149 OmniboxFocusChangeReason reason); | 149 OmniboxFocusChangeReason reason); |
| 150 | 150 |
| 151 // Tells the renderer about the most visited items. | 151 // Tells the renderer about the most visited items. |
| 152 void SendMostVisitedItems(const std::vector<InstantMostVisitedItem>& items); | 152 void SendMostVisitedItems(const std::vector<InstantMostVisitedItem>& items); |
| 153 | 153 |
| 154 // Tells the renderer about the current theme background. | 154 // Tells the renderer about the current theme background. |
| 155 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); | 155 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); |
| 156 | 156 |
| 157 // Tells the page that the user pressed Enter in the omnibox. | 157 // Tells the page that the user pressed Enter in the omnibox. |
| 158 void Submit(const base::string16& text, | 158 void Submit(const EmbeddedSearchRequestParams& params); |
| 159 const EmbeddedSearchRequestParams& params); | |
| 160 | 159 |
| 161 // Called when the tab corresponding to |this| instance is activated. | 160 // Called when the tab corresponding to |this| instance is activated. |
| 162 void OnTabActivated(); | 161 void OnTabActivated(); |
| 163 | 162 |
| 164 // Called when the tab corresponding to |this| instance is deactivated. | 163 // Called when the tab corresponding to |this| instance is deactivated. |
| 165 void OnTabDeactivated(); | 164 void OnTabDeactivated(); |
| 166 | 165 |
| 167 // chrome::mojom::Instant: | 166 // chrome::mojom::Instant: |
| 168 void FocusOmnibox(int page_id, OmniboxFocusState state) override; | 167 void FocusOmnibox(int page_id, OmniboxFocusState state) override; |
| 169 void DeleteMostVisitedItem(int page_seq_no, const GURL& url) override; | 168 void DeleteMostVisitedItem(int page_seq_no, const GURL& url) override; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 // the moment, but this could be extended to a map of connected frames, if | 229 // the moment, but this could be extended to a map of connected frames, if |
| 231 // desired. | 230 // desired. |
| 232 mojo::AssociatedBinding<chrome::mojom::Instant> binding_; | 231 mojo::AssociatedBinding<chrome::mojom::Instant> binding_; |
| 233 | 232 |
| 234 std::unique_ptr<SearchBoxClientFactory> search_box_client_factory_; | 233 std::unique_ptr<SearchBoxClientFactory> search_box_client_factory_; |
| 235 | 234 |
| 236 DISALLOW_COPY_AND_ASSIGN(SearchIPCRouter); | 235 DISALLOW_COPY_AND_ASSIGN(SearchIPCRouter); |
| 237 }; | 236 }; |
| 238 | 237 |
| 239 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_ | 238 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_IPC_ROUTER_H_ |
| OLD | NEW |