| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 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. | 
|  | 4 | 
|  | 5 #include "chrome/browser/ui/toolbar/test_toolbar_model.h" | 
|  | 6 | 
|  | 7 TestToolbarModel::TestToolbarModel() | 
|  | 8     : ToolbarModel(), | 
|  | 9       should_replace_url_(false), | 
|  | 10       security_level_(NONE), | 
|  | 11       icon_(0), | 
|  | 12       should_display_url_(true), | 
|  | 13       input_in_progress_(false) {} | 
|  | 14 | 
|  | 15 TestToolbarModel::~TestToolbarModel() {} | 
|  | 16 | 
|  | 17 string16 TestToolbarModel::GetText( | 
|  | 18     bool display_search_urls_as_search_terms) const { | 
|  | 19   return text_; | 
|  | 20 } | 
|  | 21 | 
|  | 22 GURL TestToolbarModel::GetURL() const { | 
|  | 23   return url_; | 
|  | 24 } | 
|  | 25 | 
|  | 26 bool TestToolbarModel::WouldReplaceSearchURLWithSearchTerms() const { | 
|  | 27   return should_replace_url_; | 
|  | 28 } | 
|  | 29 | 
|  | 30 ToolbarModel::SecurityLevel TestToolbarModel::GetSecurityLevel() const { | 
|  | 31   return security_level_; | 
|  | 32 } | 
|  | 33 | 
|  | 34 int TestToolbarModel::GetIcon() const { | 
|  | 35   return icon_; | 
|  | 36 } | 
|  | 37 | 
|  | 38 string16 TestToolbarModel::GetEVCertName() const { | 
|  | 39   return ev_cert_name_; | 
|  | 40 } | 
|  | 41 | 
|  | 42 bool TestToolbarModel::ShouldDisplayURL() const { | 
|  | 43   return should_display_url_; | 
|  | 44 } | 
|  | 45 | 
|  | 46 void TestToolbarModel::SetInputInProgress(bool value) { | 
|  | 47   input_in_progress_ = value; | 
|  | 48 } | 
|  | 49 | 
|  | 50 bool TestToolbarModel::GetInputInProgress() const { | 
|  | 51   return input_in_progress_; | 
|  | 52 } | 
| OLD | NEW | 
|---|