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_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ |
6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 const GURL& url, | 147 const GURL& url, |
148 content::NavigationController::ReloadType reload_type) OVERRIDE; | 148 content::NavigationController::ReloadType reload_type) OVERRIDE; |
149 virtual void DidNavigateMainFrame( | 149 virtual void DidNavigateMainFrame( |
150 const content::LoadCommittedDetails& details, | 150 const content::LoadCommittedDetails& details, |
151 const content::FrameNavigateParams& params) OVERRIDE; | 151 const content::FrameNavigateParams& params) OVERRIDE; |
152 virtual void DidFailProvisionalLoad( | 152 virtual void DidFailProvisionalLoad( |
153 content::RenderFrameHost* render_frame_host, | 153 content::RenderFrameHost* render_frame_host, |
154 const GURL& validated_url, | 154 const GURL& validated_url, |
155 int error_code, | 155 int error_code, |
156 const base::string16& error_description) OVERRIDE; | 156 const base::string16& error_description) OVERRIDE; |
157 virtual void DidFinishLoad( | 157 virtual void DidFinishLoad(content::RenderFrameHost* render_frame_host, |
158 int64 frame_id, | 158 const GURL& validated_url) OVERRIDE; |
159 const GURL& validated_url, | |
160 bool is_main_frame, | |
161 content::RenderViewHost* render_view_host) OVERRIDE; | |
162 virtual void NavigationEntryCommitted( | 159 virtual void NavigationEntryCommitted( |
163 const content::LoadCommittedDetails& load_details) OVERRIDE; | 160 const content::LoadCommittedDetails& load_details) OVERRIDE; |
164 | 161 |
165 // Overridden from SearchIPCRouter::Delegate: | 162 // Overridden from SearchIPCRouter::Delegate: |
166 virtual void OnInstantSupportDetermined(bool supports_instant) OVERRIDE; | 163 virtual void OnInstantSupportDetermined(bool supports_instant) OVERRIDE; |
167 virtual void OnSetVoiceSearchSupport(bool supports_voice_search) OVERRIDE; | 164 virtual void OnSetVoiceSearchSupport(bool supports_voice_search) OVERRIDE; |
168 virtual void FocusOmnibox(OmniboxFocusState state) OVERRIDE; | 165 virtual void FocusOmnibox(OmniboxFocusState state) OVERRIDE; |
169 virtual void NavigateToURL(const GURL& url, | 166 virtual void NavigateToURL(const GURL& url, |
170 WindowOpenDisposition disposition, | 167 WindowOpenDisposition disposition, |
171 bool is_most_visited_item_url) OVERRIDE; | 168 bool is_most_visited_item_url) OVERRIDE; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 SearchTabHelperDelegate* delegate_; | 239 SearchTabHelperDelegate* delegate_; |
243 | 240 |
244 // Function to check if the omnibox has focus. Tests use this to modify the | 241 // Function to check if the omnibox has focus. Tests use this to modify the |
245 // default behavior. | 242 // default behavior. |
246 OmniboxHasFocusFn omnibox_has_focus_fn_; | 243 OmniboxHasFocusFn omnibox_has_focus_fn_; |
247 | 244 |
248 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper); | 245 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper); |
249 }; | 246 }; |
250 | 247 |
251 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ | 248 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ |
OLD | NEW |