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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 bool is_focused() const { return is_focused_; } | 133 bool is_focused() const { return is_focused_; } |
134 bool is_input_in_progress() const { return is_input_in_progress_; } | 134 bool is_input_in_progress() const { return is_input_in_progress_; } |
135 bool is_key_capture_enabled() const { return is_key_capture_enabled_; } | 135 bool is_key_capture_enabled() const { return is_key_capture_enabled_; } |
136 bool display_instant_results() const { return display_instant_results_; } | 136 bool display_instant_results() const { return display_instant_results_; } |
137 const base::string16& query() const { return query_; } | 137 const base::string16& query() const { return query_; } |
138 const InstantSuggestion& suggestion() const { return suggestion_; } | 138 const InstantSuggestion& suggestion() const { return suggestion_; } |
139 | 139 |
140 private: | 140 private: |
141 // Overridden from content::RenderViewObserver: | 141 // Overridden from content::RenderViewObserver: |
142 bool OnMessageReceived(const IPC::Message& message) override; | 142 bool OnMessageReceived(const IPC::Message& message) override; |
| 143 void OnDestruct() override; |
143 | 144 |
144 void OnSetPageSequenceNumber(int page_seq_no); | 145 void OnSetPageSequenceNumber(int page_seq_no); |
145 void OnChromeIdentityCheckResult(const base::string16& identity, | 146 void OnChromeIdentityCheckResult(const base::string16& identity, |
146 bool identity_match); | 147 bool identity_match); |
147 void OnDetermineIfPageSupportsInstant(); | 148 void OnDetermineIfPageSupportsInstant(); |
148 void OnFocusChanged(OmniboxFocusState new_focus_state, | 149 void OnFocusChanged(OmniboxFocusState new_focus_state, |
149 OmniboxFocusChangeReason reason); | 150 OmniboxFocusChangeReason reason); |
150 void OnHistorySyncCheckResult(bool sync_history); | 151 void OnHistorySyncCheckResult(bool sync_history); |
151 void OnMostVisitedChanged( | 152 void OnMostVisitedChanged( |
152 const std::vector<InstantMostVisitedItem>& items); | 153 const std::vector<InstantMostVisitedItem>& items); |
(...skipping 23 matching lines...) Expand all Loading... |
176 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_; | 177 InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_items_cache_; |
177 ThemeBackgroundInfo theme_info_; | 178 ThemeBackgroundInfo theme_info_; |
178 base::string16 query_; | 179 base::string16 query_; |
179 EmbeddedSearchRequestParams embedded_search_request_params_; | 180 EmbeddedSearchRequestParams embedded_search_request_params_; |
180 InstantSuggestion suggestion_; | 181 InstantSuggestion suggestion_; |
181 | 182 |
182 DISALLOW_COPY_AND_ASSIGN(SearchBox); | 183 DISALLOW_COPY_AND_ASSIGN(SearchBox); |
183 }; | 184 }; |
184 | 185 |
185 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ | 186 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ |
OLD | NEW |