Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / toolbar / test_toolbar_model.cc
blob1d1126360800dc0ef05c0bc8ed35d17cd516c79d
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
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/toolbar/test_toolbar_model.h"
7 #include "grit/theme_resources.h"
9 TestToolbarModel::TestToolbarModel()
10 : ToolbarModel(),
11 omit_url_due_to_origin_chip_(false),
12 perform_search_term_replacement_(false),
13 security_level_(NONE),
14 icon_(IDR_LOCATION_BAR_HTTP),
15 should_display_url_(true) {}
17 TestToolbarModel::~TestToolbarModel() {}
19 base::string16 TestToolbarModel::GetText() const {
20 return text_;
23 base::string16 TestToolbarModel::GetCorpusNameForMobile() const {
24 return base::string16();
27 GURL TestToolbarModel::GetURL() const {
28 return url_;
31 bool TestToolbarModel::WouldOmitURLDueToOriginChip() const {
32 return omit_url_due_to_origin_chip_;
35 bool TestToolbarModel::WouldPerformSearchTermReplacement(
36 bool ignore_editing) const {
37 return perform_search_term_replacement_;
40 ToolbarModel::SecurityLevel TestToolbarModel::GetSecurityLevel(
41 bool ignore_editing) const {
42 return security_level_;
45 int TestToolbarModel::GetIcon() const {
46 return icon_;
49 int TestToolbarModel::GetIconForSecurityLevel(SecurityLevel level) const {
50 return icon_;
53 base::string16 TestToolbarModel::GetEVCertName() const {
54 return ev_cert_name_;
57 bool TestToolbarModel::ShouldDisplayURL() const {
58 return should_display_url_;