Index: chrome/browser/ui/search/instant_page.h |
diff --git a/chrome/browser/ui/search/instant_page.h b/chrome/browser/ui/search/instant_page.h |
index 65649452940e096ae29de6d4f989b3abbbb77e03..955fe87702575f4fc4042cd2046981ec4c4486cf 100644 |
--- a/chrome/browser/ui/search/instant_page.h |
+++ b/chrome/browser/ui/search/instant_page.h |
@@ -11,6 +11,7 @@ |
#include "base/compiler_specific.h" |
#include "base/string16.h" |
#include "chrome/common/instant_types.h" |
+#include "chrome/common/omnibox_focus_state.h" |
#include "content/public/browser/web_contents_observer.h" |
#include "content/public/common/page_transition_types.h" |
@@ -65,19 +66,10 @@ class InstantPage : public content::WebContentsObserver { |
int height, |
InstantSizeUnits units) = 0; |
- // Called when the page wants the omnibox to be focused. |
- virtual void FocusOmnibox(const content::WebContents* contents) = 0; |
- |
- // Called when the page wants the omnibox to start capturing user key |
- // strokes. If this call is processed successfully, the omnibox will not |
- // look focused visibly but any user key strokes will go to the omnibox. |
- // Currently, this is implemented by focusing the omnibox invisibly. |
- virtual void StartCapturingKeyStrokes( |
- const content::WebContents* contents) = 0; |
- |
- // Called when the page wants the omnibox to stop capturing user key |
- // strokes. |
- virtual void StopCapturingKeyStrokes(content::WebContents* contents) = 0; |
+ // Called when the page wants the omnibox to be focused. |state| specifies |
+ // whether the omnibox focus state. |
sreeram
2013/04/01 16:04:38
Delete "whether".
kmadhusu
2013/04/02 02:06:50
Done.
|
+ virtual void FocusOmnibox(const content::WebContents* contents, |
+ OmniboxFocusState state) = 0; |
// Called when the page wants to navigate to |url|. Usually used by the |
// page to navigate to privileged destinations (e.g. chrome:// URLs) or to |
@@ -219,9 +211,7 @@ class InstantPage : public content::WebContentsObserver { |
void OnShowInstantOverlay(int page_id, |
int height, |
InstantSizeUnits units); |
- void OnFocusOmnibox(int page_id); |
- void OnStartCapturingKeyStrokes(int page_id); |
- void OnStopCapturingKeyStrokes(int page_id); |
+ void OnFocusOmnibox(int page_id, OmniboxFocusState state); |
void OnSearchBoxNavigate(int page_id, |
const GURL& url, |
content::PageTransition transition, |