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_INSTANT_PAGE_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ |
6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "chrome/common/instant_types.h" | 13 #include "chrome/common/instant_types.h" |
| 14 #include "chrome/common/omnibox_focus_state.h" |
14 #include "content/public/browser/web_contents_observer.h" | 15 #include "content/public/browser/web_contents_observer.h" |
15 #include "content/public/common/page_transition_types.h" | 16 #include "content/public/common/page_transition_types.h" |
16 | 17 |
17 class GURL; | 18 class GURL; |
18 | 19 |
19 namespace content { | 20 namespace content { |
20 class WebContents; | 21 class WebContents; |
21 } | 22 } |
22 | 23 |
23 namespace gfx { | 24 namespace gfx { |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 const GURL& url, | 213 const GURL& url, |
213 content::PageTransition transition_type, | 214 content::PageTransition transition_type, |
214 content::RenderViewHost* render_view_host) OVERRIDE; | 215 content::RenderViewHost* render_view_host) OVERRIDE; |
215 | 216 |
216 void OnSetSuggestions(int page_id, | 217 void OnSetSuggestions(int page_id, |
217 const std::vector<InstantSuggestion>& suggestions); | 218 const std::vector<InstantSuggestion>& suggestions); |
218 void OnInstantSupportDetermined(int page_id, bool supports_instant); | 219 void OnInstantSupportDetermined(int page_id, bool supports_instant); |
219 void OnShowInstantOverlay(int page_id, | 220 void OnShowInstantOverlay(int page_id, |
220 int height, | 221 int height, |
221 InstantSizeUnits units); | 222 InstantSizeUnits units); |
222 void OnFocusOmnibox(int page_id); | 223 void OnFocusOmnibox(int page_id, OmniboxFocusState state); |
223 void OnStartCapturingKeyStrokes(int page_id); | |
224 void OnStopCapturingKeyStrokes(int page_id); | |
225 void OnSearchBoxNavigate(int page_id, | 224 void OnSearchBoxNavigate(int page_id, |
226 const GURL& url, | 225 const GURL& url, |
227 content::PageTransition transition, | 226 content::PageTransition transition, |
228 WindowOpenDisposition disposition); | 227 WindowOpenDisposition disposition); |
229 void OnDeleteMostVisitedItem(InstantRestrictedID most_visited_item_id); | 228 void OnDeleteMostVisitedItem(InstantRestrictedID most_visited_item_id); |
230 void OnUndoMostVisitedDeletion(InstantRestrictedID most_visited_item_id); | 229 void OnUndoMostVisitedDeletion(InstantRestrictedID most_visited_item_id); |
231 void OnUndoAllMostVisitedDeletions(); | 230 void OnUndoAllMostVisitedDeletions(); |
232 | 231 |
233 Delegate* const delegate_; | 232 Delegate* const delegate_; |
234 bool supports_instant_; | 233 bool supports_instant_; |
235 | 234 |
236 DISALLOW_COPY_AND_ASSIGN(InstantPage); | 235 DISALLOW_COPY_AND_ASSIGN(InstantPage); |
237 }; | 236 }; |
238 | 237 |
239 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ | 238 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_PAGE_H_ |
OLD | NEW |