Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: chrome/browser/ui/toolbar/test_toolbar_model.h

Issue 105613002: Remove unused parameter to ToolbarModel::GetText. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comments. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_MODEL_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_MODEL_H_ 6 #define CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_MODEL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "chrome/browser/ui/toolbar/toolbar_model.h" 10 #include "chrome/browser/ui/toolbar/toolbar_model.h"
11 11
12 // A ToolbarModel that is backed by instance variables, which are initialized 12 // A ToolbarModel that is backed by instance variables, which are initialized
13 // with some basic values that can be changed with the provided setters. This 13 // with some basic values that can be changed with the provided setters. This
14 // should be used only for testing. 14 // should be used only for testing.
15 class TestToolbarModel : public ToolbarModel { 15 class TestToolbarModel : public ToolbarModel {
16 public: 16 public:
17 TestToolbarModel(); 17 TestToolbarModel();
18 virtual ~TestToolbarModel(); 18 virtual ~TestToolbarModel();
19 virtual string16 GetText(bool allow_search_term_replacement) const OVERRIDE; 19 virtual string16 GetText() const OVERRIDE;
20 virtual string16 GetCorpusNameForMobile() const OVERRIDE; 20 virtual string16 GetCorpusNameForMobile() const OVERRIDE;
21 virtual GURL GetURL() const OVERRIDE; 21 virtual GURL GetURL() const OVERRIDE;
22 virtual bool WouldPerformSearchTermReplacement( 22 virtual bool WouldPerformSearchTermReplacement(
23 bool ignore_editing) const OVERRIDE; 23 bool ignore_editing) const OVERRIDE;
24 virtual SecurityLevel GetSecurityLevel(bool ignore_editing) const OVERRIDE; 24 virtual SecurityLevel GetSecurityLevel(bool ignore_editing) const OVERRIDE;
25 virtual int GetIcon() const OVERRIDE; 25 virtual int GetIcon() const OVERRIDE;
26 virtual string16 GetEVCertName() const OVERRIDE; 26 virtual string16 GetEVCertName() const OVERRIDE;
27 virtual bool ShouldDisplayURL() const OVERRIDE; 27 virtual bool ShouldDisplayURL() const OVERRIDE;
28 28
29 void set_text(const string16& text) { text_ = text; } 29 void set_text(const string16& text) { text_ = text; }
(...skipping 18 matching lines...) Expand all
48 bool should_replace_url_; 48 bool should_replace_url_;
49 SecurityLevel security_level_; 49 SecurityLevel security_level_;
50 int icon_; 50 int icon_;
51 string16 ev_cert_name_; 51 string16 ev_cert_name_;
52 bool should_display_url_; 52 bool should_display_url_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(TestToolbarModel); 54 DISALLOW_COPY_AND_ASSIGN(TestToolbarModel);
55 }; 55 };
56 56
57 #endif // CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_MODEL_H_ 57 #endif // CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_edit_model.cc ('k') | chrome/browser/ui/toolbar/test_toolbar_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698