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/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(), |
(...skipping 11 matching lines...) Expand all Loading... |
22 } | 22 } |
23 | 23 |
24 GURL TestToolbarModel::GetURL() const { | 24 GURL TestToolbarModel::GetURL() const { |
25 return url_; | 25 return url_; |
26 } | 26 } |
27 | 27 |
28 bool TestToolbarModel::WouldReplaceSearchURLWithSearchTerms() const { | 28 bool TestToolbarModel::WouldReplaceSearchURLWithSearchTerms() const { |
29 return should_replace_url_; | 29 return should_replace_url_; |
30 } | 30 } |
31 | 31 |
| 32 string16 TestToolbarModel::GetSearchTermsFromNavigationEntry() const { |
| 33 return string16(); |
| 34 } |
| 35 |
32 ToolbarModel::SecurityLevel TestToolbarModel::GetSecurityLevel() const { | 36 ToolbarModel::SecurityLevel TestToolbarModel::GetSecurityLevel() const { |
33 return security_level_; | 37 return security_level_; |
34 } | 38 } |
35 | 39 |
36 int TestToolbarModel::GetIcon() const { | 40 int TestToolbarModel::GetIcon() const { |
37 return icon_; | 41 return icon_; |
38 } | 42 } |
39 | 43 |
40 string16 TestToolbarModel::GetEVCertName() const { | 44 string16 TestToolbarModel::GetEVCertName() const { |
41 return ev_cert_name_; | 45 return ev_cert_name_; |
42 } | 46 } |
43 | 47 |
44 bool TestToolbarModel::ShouldDisplayURL() const { | 48 bool TestToolbarModel::ShouldDisplayURL() const { |
45 return should_display_url_; | 49 return should_display_url_; |
46 } | 50 } |
47 | 51 |
48 void TestToolbarModel::SetInputInProgress(bool value) { | 52 void TestToolbarModel::SetInputInProgress(bool value) { |
49 input_in_progress_ = value; | 53 input_in_progress_ = value; |
50 } | 54 } |
51 | 55 |
52 bool TestToolbarModel::GetInputInProgress() const { | 56 bool TestToolbarModel::GetInputInProgress() const { |
53 return input_in_progress_; | 57 return input_in_progress_; |
54 } | 58 } |
OLD | NEW |