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

Unified Diff: chrome/browser/ui/toolbar/toolbar_model.h

Issue 11040055: Adds a FakeToolbarModel for use in testing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/toolbar/toolbar_model.h
diff --git a/chrome/browser/ui/toolbar/toolbar_model.h b/chrome/browser/ui/toolbar/toolbar_model.h
index 939ad2e39990a87afa81e1d2a4c2dddfbbbcf0f9..9bfe7a3ebc21ce638cc58e86199a47423837c3d4 100644
--- a/chrome/browser/ui/toolbar/toolbar_model.h
+++ b/chrome/browser/ui/toolbar/toolbar_model.h
@@ -41,7 +41,7 @@ class ToolbarModel {
};
explicit ToolbarModel(ToolbarModelDelegate* delegate);
- ~ToolbarModel();
+ virtual ~ToolbarModel();
// Returns the text for the current page's URL. This will have been formatted
// for display to the user:
@@ -50,30 +50,30 @@ class ToolbarModel {
// - if |display_search_urls_as_search_terms| is true, the query will be
// extracted from search URLs for the user's default search engine and those
// will be displayed in place of the URL.
- string16 GetText(bool display_search_urls_as_search_terms) const;
+ virtual string16 GetText(bool display_search_urls_as_search_terms) const;
// Returns the URL of the current navigation entry.
- GURL GetURL() const;
+ virtual GURL GetURL() const;
// Returns true if a call to GetText(true) would successfully replace the URL
// with search terms.
- bool WouldReplaceSearchURLWithSearchTerms() const;
+ virtual bool WouldReplaceSearchURLWithSearchTerms() const;
// Returns the security level that the toolbar should display.
- SecurityLevel GetSecurityLevel() const;
+ virtual SecurityLevel GetSecurityLevel() const;
// Returns the resource_id of the icon to show to the left of the address,
// based on the current URL. This doesn't cover specialized icons while the
// user is editing; see OmniboxView::GetIcon().
- int GetIcon() const;
+ virtual int GetIcon() const;
// Returns the name of the EV cert holder. Only call this when the security
// level is EV_SECURE.
- string16 GetEVCertName() const;
+ virtual string16 GetEVCertName() const;
// Returns whether the URL for the current navigation entry should be
// in the location bar.
- bool ShouldDisplayURL() const;
+ virtual bool ShouldDisplayURL() const;
// Getter/setter of whether the text in location bar is currently being
// edited.

Powered by Google App Engine
This is Rietveld 408576698