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

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

Issue 14608004: Move instant support to SearchTabHelper. Fix InstantTab reset. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Guard instant-extended-only bits. Created 7 years, 7 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
« no previous file with comments | « chrome/browser/ui/search/instant_page.cc ('k') | chrome/browser/ui/search/search_model.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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();
17 } 16 }
18 17
19 bool InstantTab::ShouldProcessSetSuggestions() { 18 bool InstantTab::ShouldProcessSetSuggestions() {
20 return true; 19 return true;
21 } 20 }
22 21
23 bool InstantTab::ShouldProcessFocusOmnibox() { 22 bool InstantTab::ShouldProcessFocusOmnibox() {
24 return true; 23 return true;
25 } 24 }
26 25
27 bool InstantTab::ShouldProcessNavigateToURL() { 26 bool InstantTab::ShouldProcessNavigateToURL() {
28 return true; 27 return true;
29 } 28 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/instant_page.cc ('k') | chrome/browser/ui/search/search_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698