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

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: rebase 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 // Override the toolbar model to allow |GetInputInProgress| and
12 // |WouldReplaceSearchURLWithSearchTerms| to be customized.
Scott Hess - ex-Googler 2013/02/27 15:22:10 Since you're pulling this out to be shared ... is
sail 2013/02/27 18:48:18 Done. Added chrome::testing:: to match run_loop_te
13 class MockToolbarModel : public ToolbarModel {
14 public:
15 MockToolbarModel();
16 virtual ~MockToolbarModel();
17
18 virtual string16 GetText(
19 bool display_search_urls_as_search_terms) const OVERRIDE;
20 virtual GURL GetURL() const OVERRIDE;
21 virtual bool WouldReplaceSearchURLWithSearchTerms() const OVERRIDE;
22 virtual SecurityLevel GetSecurityLevel() const OVERRIDE;
23 virtual int GetIcon() const OVERRIDE;
24 virtual string16 GetEVCertName() const OVERRIDE;
25 virtual bool ShouldDisplayURL() const OVERRIDE;
26 virtual void SetInputInProgress(bool value) OVERRIDE;
27 virtual bool GetInputInProgress() const OVERRIDE;
28
29 void set_would_replace_search_url_with_search_terms(bool value) {
30 would_replace_search_url_with_search_terms_ = value;
31 }
32
33 private:
34 bool input_in_progress_;
35 bool would_replace_search_url_with_search_terms_;
36 };
37
38 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_MOCK_TOOLBAR_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698