| 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 "components/toolbar/test_toolbar_model.h" | 5 #include "components/toolbar/test_toolbar_model.h" |
| 6 | 6 |
| 7 #include "components/grit/components_scaled_resources.h" | 7 #include "components/grit/components_scaled_resources.h" |
| 8 #include "ui/gfx/vector_icons_public.h" | 8 #include "ui/gfx/vector_icons_public.h" |
| 9 | 9 |
| 10 TestToolbarModel::TestToolbarModel() | 10 TestToolbarModel::TestToolbarModel() |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 TestToolbarModel::~TestToolbarModel() {} | 21 TestToolbarModel::~TestToolbarModel() {} |
| 22 | 22 |
| 23 base::string16 TestToolbarModel::GetText() const { | 23 base::string16 TestToolbarModel::GetText() const { |
| 24 return text_; | 24 return text_; |
| 25 } | 25 } |
| 26 | 26 |
| 27 base::string16 TestToolbarModel::GetFormattedURL(size_t* prefix_end) const { | 27 base::string16 TestToolbarModel::GetFormattedURL(size_t* prefix_end) const { |
| 28 return text_; | 28 return text_; |
| 29 } | 29 } |
| 30 | 30 |
| 31 base::string16 TestToolbarModel::GetCorpusNameForMobile() const { | |
| 32 return base::string16(); | |
| 33 } | |
| 34 | |
| 35 GURL TestToolbarModel::GetURL() const { | 31 GURL TestToolbarModel::GetURL() const { |
| 36 return url_; | 32 return url_; |
| 37 } | 33 } |
| 38 | 34 |
| 39 bool TestToolbarModel::WouldPerformSearchTermReplacement( | 35 bool TestToolbarModel::WouldPerformSearchTermReplacement( |
| 40 bool ignore_editing) const { | 36 bool ignore_editing) const { |
| 41 return perform_search_term_replacement_; | 37 return perform_search_term_replacement_; |
| 42 } | 38 } |
| 43 | 39 |
| 44 security_state::SecurityStateModel::SecurityLevel | 40 security_state::SecurityStateModel::SecurityLevel |
| (...skipping 12 matching lines...) Expand all Loading... |
| 57 | 53 |
| 58 base::string16 TestToolbarModel::GetEVCertName() const { | 54 base::string16 TestToolbarModel::GetEVCertName() const { |
| 59 return (security_level_ == security_state::SecurityStateModel::EV_SECURE) | 55 return (security_level_ == security_state::SecurityStateModel::EV_SECURE) |
| 60 ? ev_cert_name_ | 56 ? ev_cert_name_ |
| 61 : base::string16(); | 57 : base::string16(); |
| 62 } | 58 } |
| 63 | 59 |
| 64 bool TestToolbarModel::ShouldDisplayURL() const { | 60 bool TestToolbarModel::ShouldDisplayURL() const { |
| 65 return should_display_url_; | 61 return should_display_url_; |
| 66 } | 62 } |
| OLD | NEW |