| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2013 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/cocoa/location_bar/mock_toolbar_model.h" |
| 6 |
| 7 MockToolbarModel::MockToolbarModel() |
| 8 : ToolbarModel(), |
| 9 input_in_progress_(false), |
| 10 would_replace_search_url_with_search_terms_(false) { |
| 11 } |
| 12 |
| 13 MockToolbarModel::~MockToolbarModel() { |
| 14 } |
| 15 |
| 16 string16 MockToolbarModel::GetText( |
| 17 bool display_search_urls_as_search_terms) const { |
| 18 return string16(); |
| 19 } |
| 20 |
| 21 GURL MockToolbarModel::GetURL() const { |
| 22 return GURL(); |
| 23 } |
| 24 |
| 25 bool MockToolbarModel::WouldReplaceSearchURLWithSearchTerms() const { |
| 26 return would_replace_search_url_with_search_terms_; |
| 27 } |
| 28 |
| 29 MockToolbarModel::SecurityLevel MockToolbarModel::GetSecurityLevel() const { |
| 30 return NONE; |
| 31 } |
| 32 |
| 33 int MockToolbarModel::GetIcon() const { |
| 34 return 0; |
| 35 } |
| 36 |
| 37 string16 MockToolbarModel::GetEVCertName() const { |
| 38 return string16(); |
| 39 } |
| 40 |
| 41 bool MockToolbarModel::ShouldDisplayURL() const { |
| 42 return false; |
| 43 } |
| 44 |
| 45 void MockToolbarModel::SetInputInProgress(bool value) { |
| 46 input_in_progress_ = value; |
| 47 } |
| 48 |
| 49 bool MockToolbarModel::GetInputInProgress() const { |
| 50 return input_in_progress_; |
| 51 } |
| OLD | NEW |