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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 virtual void OnInstantSupportDetermined(bool supports_instant) OVERRIDE; | 161 virtual void OnInstantSupportDetermined(bool supports_instant) OVERRIDE; |
162 virtual void OnSetVoiceSearchSupport(bool supports_voice_search) OVERRIDE; | 162 virtual void OnSetVoiceSearchSupport(bool supports_voice_search) OVERRIDE; |
163 virtual void FocusOmnibox(OmniboxFocusState state) OVERRIDE; | 163 virtual void FocusOmnibox(OmniboxFocusState state) OVERRIDE; |
164 virtual void NavigateToURL(const GURL& url, | 164 virtual void NavigateToURL(const GURL& url, |
165 WindowOpenDisposition disposition, | 165 WindowOpenDisposition disposition, |
166 bool is_most_visited_item_url) OVERRIDE; | 166 bool is_most_visited_item_url) OVERRIDE; |
167 virtual void OnDeleteMostVisitedItem(const GURL& url) OVERRIDE; | 167 virtual void OnDeleteMostVisitedItem(const GURL& url) OVERRIDE; |
168 virtual void OnUndoMostVisitedDeletion(const GURL& url) OVERRIDE; | 168 virtual void OnUndoMostVisitedDeletion(const GURL& url) OVERRIDE; |
169 virtual void OnUndoAllMostVisitedDeletions() OVERRIDE; | 169 virtual void OnUndoAllMostVisitedDeletions() OVERRIDE; |
170 virtual void OnLogEvent(NTPLoggingEventType event) OVERRIDE; | 170 virtual void OnLogEvent(NTPLoggingEventType event) OVERRIDE; |
171 virtual void OnLogImpression(int position, | 171 virtual void OnLogMostVisitedImpression( |
172 const base::string16& provider) OVERRIDE; | 172 int position, const base::string16& provider) OVERRIDE; |
| 173 virtual void OnLogMostVisitedNavigation( |
| 174 int position, const base::string16& provider) OVERRIDE; |
173 virtual void PasteIntoOmnibox(const base::string16& text) OVERRIDE; | 175 virtual void PasteIntoOmnibox(const base::string16& text) OVERRIDE; |
174 virtual void OnChromeIdentityCheck(const base::string16& identity) OVERRIDE; | 176 virtual void OnChromeIdentityCheck(const base::string16& identity) OVERRIDE; |
175 | 177 |
176 // Overridden from InstantServiceObserver: | 178 // Overridden from InstantServiceObserver: |
177 virtual void ThemeInfoChanged(const ThemeBackgroundInfo& theme_info) OVERRIDE; | 179 virtual void ThemeInfoChanged(const ThemeBackgroundInfo& theme_info) OVERRIDE; |
178 virtual void MostVisitedItemsChanged( | 180 virtual void MostVisitedItemsChanged( |
179 const std::vector<InstantMostVisitedItem>& items) OVERRIDE; | 181 const std::vector<InstantMostVisitedItem>& items) OVERRIDE; |
180 virtual void OmniboxStartMarginChanged(int omnibox_start_margin) OVERRIDE; | 182 virtual void OmniboxStartMarginChanged(int omnibox_start_margin) OVERRIDE; |
181 | 183 |
182 // Removes recommended URLs if a matching URL is already open in the Browser, | 184 // Removes recommended URLs if a matching URL is already open in the Browser, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 content::WebContents* web_contents_; | 219 content::WebContents* web_contents_; |
218 | 220 |
219 SearchIPCRouter ipc_router_; | 221 SearchIPCRouter ipc_router_; |
220 | 222 |
221 InstantService* instant_service_; | 223 InstantService* instant_service_; |
222 | 224 |
223 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper); | 225 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper); |
224 }; | 226 }; |
225 | 227 |
226 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ | 228 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ |
OLD | NEW |