Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: chrome/browser/ui/search/instant_tab.cc

Issue 14911005: Move instant support to SearchTabHelper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix android_dbg test failures Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include "content/public/browser/web_contents.h" 6 #include "content/public/browser/web_contents.h"
7 7
8 InstantTab::InstantTab(InstantPage::Delegate* delegate) 8 InstantTab::InstantTab(InstantPage::Delegate* delegate)
9 : InstantPage(delegate, "") { 9 : InstantPage(delegate, "") {
10 } 10 }
11 11
12 InstantTab::~InstantTab() { 12 InstantTab::~InstantTab() {
13 } 13 }
14 14
15 void InstantTab::Init(content::WebContents* contents) { 15 void InstantTab::Init(content::WebContents* contents) {
16 SetContents(contents); 16 SetContents(contents);
17 if (!contents->IsWaitingForResponse())
18 DetermineIfPageSupportsInstant();
19 } 17 }
20 18
21 bool InstantTab::ShouldProcessAboutToNavigateMainFrame() { 19 bool InstantTab::ShouldProcessAboutToNavigateMainFrame() {
22 return true; 20 return true;
23 } 21 }
24 22
25 bool InstantTab::ShouldProcessSetSuggestions() { 23 bool InstantTab::ShouldProcessSetSuggestions() {
26 return true; 24 return true;
27 } 25 }
28 26
29 bool InstantTab::ShouldProcessFocusOmnibox() { 27 bool InstantTab::ShouldProcessFocusOmnibox() {
30 return true; 28 return true;
31 } 29 }
32 30
33 bool InstantTab::ShouldProcessNavigateToURL() { 31 bool InstantTab::ShouldProcessNavigateToURL() {
34 return true; 32 return true;
35 } 33 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/instant_page_unittest.cc ('k') | chrome/browser/ui/search/instant_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698