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

Side by Side Diff: chrome/browser/ui/toolbar/test_toolbar_model.cc

Issue 14259008: Instant Extended: Add prominent search term support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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/toolbar/test_toolbar_model.h" 5 #include "chrome/browser/ui/toolbar/test_toolbar_model.h"
6 6
7 #include "grit/theme_resources.h" 7 #include "grit/theme_resources.h"
8 8
9 TestToolbarModel::TestToolbarModel() 9 TestToolbarModel::TestToolbarModel()
10 : ToolbarModel(), 10 : ToolbarModel(),
11 should_replace_url_(false), 11 search_term_type_(SEARCH_TERM_NONE),
12 security_level_(NONE), 12 security_level_(NONE),
13 icon_(IDR_LOCATION_BAR_HTTP), 13 icon_(IDR_LOCATION_BAR_HTTP),
14 should_display_url_(true), 14 should_display_url_(true),
15 input_in_progress_(false) {} 15 input_in_progress_(false) {}
16 16
17 TestToolbarModel::~TestToolbarModel() {} 17 TestToolbarModel::~TestToolbarModel() {}
18 18
19 string16 TestToolbarModel::GetText( 19 string16 TestToolbarModel::GetText(
20 bool display_search_urls_as_search_terms) const { 20 bool display_search_urls_as_search_terms) const {
21 return text_; 21 return text_;
22 } 22 }
23 23
24 string16 TestToolbarModel::GetCorpusNameForMobile() const { 24 string16 TestToolbarModel::GetCorpusNameForMobile() const {
25 return string16(); 25 return string16();
26 } 26 }
27 27
28 GURL TestToolbarModel::GetURL() const { 28 GURL TestToolbarModel::GetURL() const {
29 return url_; 29 return url_;
30 } 30 }
31 31
32 bool TestToolbarModel::WouldReplaceSearchURLWithSearchTerms() const { 32 ToolbarModel::SearchTermType TestToolbarModel::GetSearchTermType() const {
33 return should_replace_url_; 33 return search_term_type_;
34 }
35
36 void TestToolbarModel::SetIsProminentSearchTermUISupported(bool value) {
34 } 37 }
35 38
36 ToolbarModel::SecurityLevel TestToolbarModel::GetSecurityLevel() const { 39 ToolbarModel::SecurityLevel TestToolbarModel::GetSecurityLevel() const {
37 return security_level_; 40 return security_level_;
38 } 41 }
39 42
40 int TestToolbarModel::GetIcon() const { 43 int TestToolbarModel::GetIcon() const {
41 return icon_; 44 return icon_;
42 } 45 }
43 46
44 string16 TestToolbarModel::GetEVCertName() const { 47 string16 TestToolbarModel::GetEVCertName() const {
45 return ev_cert_name_; 48 return ev_cert_name_;
46 } 49 }
47 50
48 bool TestToolbarModel::ShouldDisplayURL() const { 51 bool TestToolbarModel::ShouldDisplayURL() const {
49 return should_display_url_; 52 return should_display_url_;
50 } 53 }
51 54
52 void TestToolbarModel::SetInputInProgress(bool value) { 55 void TestToolbarModel::SetInputInProgress(bool value) {
53 input_in_progress_ = value; 56 input_in_progress_ = value;
54 } 57 }
55 58
56 bool TestToolbarModel::GetInputInProgress() const { 59 bool TestToolbarModel::GetInputInProgress() const {
57 return input_in_progress_; 60 return input_in_progress_;
58 } 61 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698