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(), |
11 omit_url_due_to_origin_chip_(false), | 11 omit_url_due_to_origin_chip_(false), |
12 perform_search_term_replacement_(false), | 12 perform_search_term_replacement_(false), |
13 security_level_(NONE), | 13 security_level_(NONE), |
14 icon_(IDR_LOCATION_BAR_HTTP), | 14 icon_(IDR_LOCATION_BAR_HTTP), |
15 should_display_url_(true) {} | 15 should_display_url_(true) {} |
16 | 16 |
17 TestToolbarModel::~TestToolbarModel() {} | 17 TestToolbarModel::~TestToolbarModel() {} |
18 | 18 |
19 base::string16 TestToolbarModel::GetText() const { | 19 base::string16 TestToolbarModel::GetText() const { |
20 return text_; | 20 return text_; |
21 } | 21 } |
22 | 22 |
| 23 base::string16 TestToolbarModel::GetFormattedURL() const { |
| 24 return text_; |
| 25 } |
| 26 |
23 base::string16 TestToolbarModel::GetCorpusNameForMobile() const { | 27 base::string16 TestToolbarModel::GetCorpusNameForMobile() const { |
24 return base::string16(); | 28 return base::string16(); |
25 } | 29 } |
26 | 30 |
27 GURL TestToolbarModel::GetURL() const { | 31 GURL TestToolbarModel::GetURL() const { |
28 return url_; | 32 return url_; |
29 } | 33 } |
30 | 34 |
31 bool TestToolbarModel::WouldOmitURLDueToOriginChip() const { | 35 bool TestToolbarModel::WouldOmitURLDueToOriginChip() const { |
32 return omit_url_due_to_origin_chip_; | 36 return omit_url_due_to_origin_chip_; |
(...skipping 17 matching lines...) Expand all Loading... |
50 return icon_; | 54 return icon_; |
51 } | 55 } |
52 | 56 |
53 base::string16 TestToolbarModel::GetEVCertName() const { | 57 base::string16 TestToolbarModel::GetEVCertName() const { |
54 return ev_cert_name_; | 58 return ev_cert_name_; |
55 } | 59 } |
56 | 60 |
57 bool TestToolbarModel::ShouldDisplayURL() const { | 61 bool TestToolbarModel::ShouldDisplayURL() const { |
58 return should_display_url_; | 62 return should_display_url_; |
59 } | 63 } |
OLD | NEW |