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

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

Issue 10834279: Give request-to-act badges a grey background, and increase spacing to make it fit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Call the right superclass method Created 8 years, 3 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/location_bar_decoration.h
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h b/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h
index 67f5231216868fb31488c7cb4c5584417f8b0e46..6028ad59787ac94cd8c0159ca2382e4253aee7ee 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h
@@ -39,6 +39,15 @@ class LocationBarDecoration {
// generated from an earlier call to |GetWidthForSpace()|.
virtual void DrawInFrame(NSRect frame, NSView* control_view);
+ // Draw the decoration in the frame provided, possibly including a
+ // background that fills |background_frame|. The frame will be
+ // generated from an earlier call to |GetWidthForSpace()|, and the
+ // |background_frame| will include the column of pixels exactly
+ // between two decorations.
+ virtual void DrawWithBackgroundInFrame(NSRect background_frame,
+ NSRect frame,
+ NSView* control_view);
+
// Returns the tooltip for this decoration, return |nil| for no tooltip.
virtual NSString* GetToolTip();

Powered by Google App Engine
This is Rietveld 408576698