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 #include "chrome/browser/ui/search/instant_tab.h" | 5 #include "chrome/browser/ui/search/instant_tab.h" |
6 | 6 |
7 InstantTab::InstantTab(InstantPage::Delegate* delegate) | 7 InstantTab::InstantTab(InstantPage::Delegate* delegate) |
8 : InstantPage(delegate) { | 8 : InstantPage(delegate) { |
9 } | 9 } |
10 | 10 |
11 InstantTab::~InstantTab() { | 11 InstantTab::~InstantTab() { |
12 } | 12 } |
13 | 13 |
14 void InstantTab::Init(content::WebContents* contents) { | 14 void InstantTab::Init(content::WebContents* contents) { |
15 SetContents(contents); | 15 SetContents(contents); |
16 DetermineIfPageSupportsInstant(); | 16 DetermineIfPageSupportsInstant(); |
17 } | 17 } |
18 | 18 |
19 bool InstantTab::ShouldProcessSetSuggestions() { | 19 bool InstantTab::ShouldProcessSetSuggestions() { |
20 return true; | 20 return true; |
21 } | 21 } |
22 | 22 |
23 bool InstantTab::ShouldProcessFocusOmnibox() { | 23 bool InstantTab::ShouldProcessFocusOmnibox() { |
24 return true; | 24 return true; |
25 } | 25 } |
26 | 26 |
27 bool InstantTab::ShouldProcessStartCapturingKeyStrokes() { | |
28 return true; | |
29 } | |
30 | |
31 bool InstantTab::ShouldProcessStopCapturingKeyStrokes() { | |
32 return true; | |
33 } | |
34 | |
35 bool InstantTab::ShouldProcessNavigateToURL() { | 27 bool InstantTab::ShouldProcessNavigateToURL() { |
36 return true; | 28 return true; |
37 } | 29 } |
OLD | NEW |