Chromium Code Reviews| 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_INSTANT_TAB_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_TAB_H_ |
| 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_TAB_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_TAB_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/ui/search/instant_page.h" | 10 #include "chrome/browser/ui/search/instant_page.h" |
| 11 | 11 |
| 12 // InstantTab represents a committed page (i.e. an actual tab on the tab strip) | 12 // InstantTab represents a committed page (i.e. an actual tab on the tab strip) |
| 13 // that supports the Instant API. | 13 // that supports the Instant API. |
| 14 class InstantTab : public InstantPage { | 14 class InstantTab : public InstantPage { |
| 15 public: | 15 public: |
| 16 explicit InstantTab(InstantPage::Delegate* delegate); | 16 explicit InstantTab(InstantPage::Delegate* delegate); |
| 17 virtual ~InstantTab(); | 17 virtual ~InstantTab(); |
| 18 | 18 |
| 19 // Start observing |contents| for messages. Sends a message to determine if | 19 // Start observing |contents| for messages. Sends a message to determine if |
| 20 // the page supports the Instant API. | 20 // the page supports the Instant API. |
| 21 void Init(content::WebContents* contents); | 21 void Init(content::WebContents* contents); |
| 22 | 22 |
| 23 // Overridden from InstantPage: | |
| 24 virtual bool ShouldProcessFocusOmnibox() OVERRIDE; | |
| 25 virtual bool ShouldProcessStartCapturingKeyStrokes() OVERRIDE; | |
| 26 virtual bool ShouldProcessStopCapturingKeyStrokes() OVERRIDE; | |
|
sreeram
2013/04/01 16:04:38
Revert this change. Remove ShouldProcess{Start,Sto
kmadhusu
2013/04/02 02:06:50
Done.
| |
| 27 | |
| 23 private: | 28 private: |
| 24 // Overridden from InstantPage: | 29 // Overridden from InstantPage: |
| 25 virtual bool ShouldProcessSetSuggestions() OVERRIDE; | 30 virtual bool ShouldProcessSetSuggestions() OVERRIDE; |
| 26 virtual bool ShouldProcessFocusOmnibox() OVERRIDE; | |
| 27 virtual bool ShouldProcessStartCapturingKeyStrokes() OVERRIDE; | |
| 28 virtual bool ShouldProcessStopCapturingKeyStrokes() OVERRIDE; | |
| 29 virtual bool ShouldProcessNavigateToURL() OVERRIDE; | 31 virtual bool ShouldProcessNavigateToURL() OVERRIDE; |
| 30 | 32 |
| 31 DISALLOW_COPY_AND_ASSIGN(InstantTab); | 33 DISALLOW_COPY_AND_ASSIGN(InstantTab); |
| 32 }; | 34 }; |
| 33 | 35 |
| 34 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_TAB_H_ | 36 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_TAB_H_ |
| OLD | NEW |