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

Unified Diff: chrome/browser/ui/cocoa/location_bar/ev_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 nits. 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/ev_bubble_decoration.h
diff --git a/chrome/browser/ui/cocoa/location_bar/ev_bubble_decoration.h b/chrome/browser/ui/cocoa/location_bar/ev_bubble_decoration.h
index a69c72fdcf0103b1e1cf403d02a37c715bb59dad..97cd4b8e8dba47c3dddd44198d3980a874e16ec3 100644
--- a/chrome/browser/ui/cocoa/location_bar/ev_bubble_decoration.h
+++ b/chrome/browser/ui/cocoa/location_bar/ev_bubble_decoration.h
@@ -33,9 +33,14 @@ class EVBubbleDecoration : public BubbleDecoration {
// fits, else it will set an elided version.
void SetFullLabel(NSString* full_label);
-
// Implement |LocationBarDecoration|.
CGFloat GetWidthForSpace(CGFloat width) override;
+
+ // Perform custom drawing for Material Design.
+ void DrawWithBackgroundInFrame(NSRect background_frame,
+ NSRect frame,
+ NSView* control_view) override;
+
bool IsDraggable() override;
NSPasteboard* GetDragPasteboard() override;
NSImage* GetDragImage() override;

Powered by Google App Engine
This is Rietveld 408576698