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

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

Issue 1909453004: [Mac][Material Design] Adjust EV chip to match Material Design spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix problems. Created 4 years, 8 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/cocoa/location_bar/bubble_decoration.h
diff --git a/chrome/browser/ui/cocoa/location_bar/bubble_decoration.h b/chrome/browser/ui/cocoa/location_bar/bubble_decoration.h
index 623b95a4f5764aac7e83232b6245594d60be3ac8..c0c7375cda6f36c9439faaaa41750a008db3a552 100644
--- a/chrome/browser/ui/cocoa/location_bar/bubble_decoration.h
+++ b/chrome/browser/ui/cocoa/location_bar/bubble_decoration.h
@@ -27,6 +27,9 @@ class BubbleDecoration : public LocationBarDecoration {
void SetImage(NSImage* image);
void SetLabel(NSString* label);
void SetTextColor(NSColor* text_color);
+ NSFont* GetFont() const override;
tapted 2016/04/27 02:37:39 nit: should be with the other LocationBarDecoratio
shrike 2016/04/27 16:35:17 Done.
+ void SetFont(NSFont* font);
+ void SetBaselineOffset(CGFloat offset);
virtual ui::NinePartImageIds GetBubbleImageIds() = 0;
// Implement |LocationBarDecoration|.
@@ -59,6 +62,9 @@ class BubbleDecoration : public LocationBarDecoration {
// Contains attribute for drawing |label_|.
base::scoped_nsobject<NSMutableDictionary> attributes_;
+ // Contains any baseline adjustment for the text.
+ CGFloat baseline_offset_;
+
DISALLOW_COPY_AND_ASSIGN(BubbleDecoration);
};

Powered by Google App Engine
This is Rietveld 408576698