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

Unified Diff: chrome/browser/ui/cocoa/location_bar/origin_chip_decoration.h

Issue 273883002: Always display the origin chip, even if it won't fit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/origin_chip_decoration.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/location_bar/origin_chip_decoration.h
diff --git a/chrome/browser/ui/cocoa/location_bar/origin_chip_decoration.h b/chrome/browser/ui/cocoa/location_bar/origin_chip_decoration.h
index 2b0fee9974a9b194970cb5bfe697094b6a856442..1c7b5d7be4efeac567762acd7ccd0edda508d70f 100644
--- a/chrome/browser/ui/cocoa/location_bar/origin_chip_decoration.h
+++ b/chrome/browser/ui/cocoa/location_bar/origin_chip_decoration.h
@@ -52,6 +52,9 @@ class OriginChipDecoration : public ButtonDecoration,
// Returns whether the origin chip should be shown or not.
bool ShouldShow() const;
+ // Returns the width required to display the chip's contents.
+ CGFloat GetChipWidth() const;
+
// Contains attributes for drawing the origin string.
base::scoped_nsobject<NSMutableDictionary> attributes_;
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/origin_chip_decoration.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698