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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 const InstantSuggestion& suggestion() const { return suggestion_; } | 137 const InstantSuggestion& suggestion() const { return suggestion_; } |
138 | 138 |
139 private: | 139 private: |
140 // Overridden from content::RenderFrameObserver: | 140 // Overridden from content::RenderFrameObserver: |
141 void OnDestruct() override; | 141 void OnDestruct() override; |
142 | 142 |
143 // Overridden from chrome::mojom::SearchBox: | 143 // Overridden from chrome::mojom::SearchBox: |
144 void SetPageSequenceNumber(int page_seq_no) override; | 144 void SetPageSequenceNumber(int page_seq_no) override; |
145 void ChromeIdentityCheckResult(const base::string16& identity, | 145 void ChromeIdentityCheckResult(const base::string16& identity, |
146 bool identity_match) override; | 146 bool identity_match) override; |
147 void DetermineIfPageSupportsInstant() override; | |
148 void FocusChanged(OmniboxFocusState new_focus_state, | 147 void FocusChanged(OmniboxFocusState new_focus_state, |
149 OmniboxFocusChangeReason reason) override; | 148 OmniboxFocusChangeReason reason) override; |
150 void HistorySyncCheckResult(bool sync_history) override; | 149 void HistorySyncCheckResult(bool sync_history) override; |
151 void MostVisitedChanged( | 150 void MostVisitedChanged( |
152 const std::vector<InstantMostVisitedItem>& items) override; | 151 const std::vector<InstantMostVisitedItem>& items) override; |
153 void SetInputInProgress(bool input_in_progress) override; | 152 void SetInputInProgress(bool input_in_progress) override; |
154 void SetSuggestionToPrefetch(const InstantSuggestion& suggestion) override; | 153 void SetSuggestionToPrefetch(const InstantSuggestion& suggestion) override; |
155 void Submit(const base::string16& query, | 154 void Submit(const base::string16& query, |
156 const EmbeddedSearchRequestParams& params) override; | 155 const EmbeddedSearchRequestParams& params) override; |
157 void ThemeChanged(const ThemeBackgroundInfo& theme_info) override; | 156 void ThemeChanged(const ThemeBackgroundInfo& theme_info) override; |
(...skipping 18 matching lines...) Expand all Loading... |
176 base::string16 query_; | 175 base::string16 query_; |
177 EmbeddedSearchRequestParams embedded_search_request_params_; | 176 EmbeddedSearchRequestParams embedded_search_request_params_; |
178 InstantSuggestion suggestion_; | 177 InstantSuggestion suggestion_; |
179 chrome::mojom::InstantAssociatedPtr instant_service_; | 178 chrome::mojom::InstantAssociatedPtr instant_service_; |
180 mojo::AssociatedBinding<chrome::mojom::SearchBox> binding_; | 179 mojo::AssociatedBinding<chrome::mojom::SearchBox> binding_; |
181 | 180 |
182 DISALLOW_COPY_AND_ASSIGN(SearchBox); | 181 DISALLOW_COPY_AND_ASSIGN(SearchBox); |
183 }; | 182 }; |
184 | 183 |
185 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ | 184 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ |
OLD | NEW |