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

Unified Diff: chrome/browser/ui/cocoa/info_bubble_view.mm

Issue 10827029: [Mac] Website settings: Implement custom tab appearance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix up visuals, and address rsesek's comments. Created 8 years, 5 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/info_bubble_view.mm
diff --git a/chrome/browser/ui/cocoa/info_bubble_view.mm b/chrome/browser/ui/cocoa/info_bubble_view.mm
index a82e0405b90fe3507e4f2f7523493411f2bb709f..bd49e0dc7a422d45c9bef564a5268c300d19ee79 100644
--- a/chrome/browser/ui/cocoa/info_bubble_view.mm
+++ b/chrome/browser/ui/cocoa/info_bubble_view.mm
@@ -11,11 +11,13 @@
@synthesize arrowLocation = arrowLocation_;
@synthesize alignment = alignment_;
+@synthesize backgroundColor = backgroundColor_;
- (id)initWithFrame:(NSRect)frameRect {
if ((self = [super initWithFrame:frameRect])) {
arrowLocation_ = info_bubble::kTopLeft;
alignment_ = info_bubble::kAlignArrowToAnchor;
+ [self setBackgroundColor:[NSColor colorWithCalibratedWhite:1.0 alpha:0.9]];
}
return self;
}
@@ -62,7 +64,7 @@
[bezier lineToPoint:NSMakePoint(arrowStart.x + info_bubble::kBubbleArrowWidth,
arrowStart.y)];
[bezier closePath];
- [[NSColor colorWithCalibratedWhite:1.0 alpha:0.9] set];
+ [backgroundColor_ set];
[bezier fill];
}

Powered by Google App Engine
This is Rietveld 408576698