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

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

Issue 302453002: New animation for the origin chip URL showing/hiding. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test failure by checking for NULL extension Created 6 years, 7 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 eec3cd0e39daa79f68dce4c3d12ad4676333ef81..d05cccbe70a2d2df34e9e498d5bae1ace3d79d6c 100644
--- a/chrome/browser/ui/toolbar/toolbar_model.h
+++ b/chrome/browser/ui/toolbar/toolbar_model.h
@@ -44,7 +44,9 @@ class ToolbarModel {
// includes:
// - Some characters may be unescaped.
// - The scheme and/or trailing slash may be dropped.
- virtual base::string16 GetFormattedURL() const = 0;
+ // If |prefix_end| is non-NULL, it is set to the length of the pre-hostname
+ // portion of the resulting URL.
+ virtual base::string16 GetFormattedURL(size_t* prefix_end) const = 0;
// Some search URLs bundle a special "corpus" param that we can extract and
// display next to users' search terms in cases where we'd show the search
@@ -83,8 +85,8 @@ class ToolbarModel {
// |level| given, ignoring search term replacement state.
virtual int GetIconForSecurityLevel(SecurityLevel level) const = 0;
- // Returns the name of the EV cert holder. Only call this when the security
- // level is EV_SECURE.
+ // Returns the name of the EV cert holder. This returns an empty string if
+ // the security level is not EV_SECURE.
virtual base::string16 GetEVCertName() const = 0;
// Returns whether the URL for the current navigation entry should be

Powered by Google App Engine
This is Rietveld 408576698