| 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 should_replace_url_(false), | 11 should_replace_url_(false), |
| 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 | 15 |
| 16 TestToolbarModel::~TestToolbarModel() {} | 16 TestToolbarModel::~TestToolbarModel() {} |
| 17 | 17 |
| 18 string16 TestToolbarModel::GetText(bool allow_search_term_replacement) const { | 18 string16 TestToolbarModel::GetText() const { |
| 19 return text_; | 19 return text_; |
| 20 } | 20 } |
| 21 | 21 |
| 22 string16 TestToolbarModel::GetCorpusNameForMobile() const { | 22 string16 TestToolbarModel::GetCorpusNameForMobile() const { |
| 23 return string16(); | 23 return string16(); |
| 24 } | 24 } |
| 25 | 25 |
| 26 GURL TestToolbarModel::GetURL() const { | 26 GURL TestToolbarModel::GetURL() const { |
| 27 return url_; | 27 return url_; |
| 28 } | 28 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 41 return icon_; | 41 return icon_; |
| 42 } | 42 } |
| 43 | 43 |
| 44 string16 TestToolbarModel::GetEVCertName() const { | 44 string16 TestToolbarModel::GetEVCertName() const { |
| 45 return ev_cert_name_; | 45 return ev_cert_name_; |
| 46 } | 46 } |
| 47 | 47 |
| 48 bool TestToolbarModel::ShouldDisplayURL() const { | 48 bool TestToolbarModel::ShouldDisplayURL() const { |
| 49 return should_display_url_; | 49 return should_display_url_; |
| 50 } | 50 } |
| OLD | NEW |