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

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/mock_toolbar_model.h

Issue 12315069: Mac: Update zoom bubble UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 7 years, 9 months 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 | Annotate | Revision Log
OLDNEW
(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 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_MOCK_TOOLBAR_MODEL_H_
6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_MOCK_TOOLBAR_MODEL_H_
7
8 #include "chrome/browser/ui/toolbar/toolbar_model.h"
9 #include "base/compiler_specific.h"
10
11 namespace chrome {
12 namespace testing {
13
14 // Override the toolbar model to allow |GetInputInProgress| and
15 // |WouldReplaceSearchURLWithSearchTerms| to be customized.
16 class MockToolbarModel : public ToolbarModel {
17 public:
18 MockToolbarModel();
19 virtual ~MockToolbarModel();
20
21 virtual string16 GetText(
22 bool display_search_urls_as_search_terms) const OVERRIDE;
23 virtual GURL GetURL() const OVERRIDE;
24 virtual bool WouldReplaceSearchURLWithSearchTerms() const OVERRIDE;
25 virtual SecurityLevel GetSecurityLevel() const OVERRIDE;
26 virtual int GetIcon() const OVERRIDE;
27 virtual string16 GetEVCertName() const OVERRIDE;
28 virtual bool ShouldDisplayURL() const OVERRIDE;
29 virtual void SetInputInProgress(bool value) OVERRIDE;
30 virtual bool GetInputInProgress() const OVERRIDE;
31
32 void set_would_replace_search_url_with_search_terms(bool value) {
33 would_replace_search_url_with_search_terms_ = value;
34 }
35
36 private:
37 bool input_in_progress_;
38 bool would_replace_search_url_with_search_terms_;
39 };
40
41 } // namespace testing
42 } // namespace chrome
43
44 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_MOCK_TOOLBAR_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698