Chromium Code Reviews| 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 b5b9ce8f8867a472ddf231ee02e5f04765e0c953..a123813009a803ea0eaec280a7a0f3c172631d09 100644 |
| --- a/chrome/browser/ui/cocoa/info_bubble_view.mm |
| +++ b/chrome/browser/ui/cocoa/info_bubble_view.mm |
| @@ -19,6 +19,7 @@ |
| arrowLocation_ = info_bubble::kTopLeft; |
| alignment_ = info_bubble::kAlignArrowToAnchor; |
| cornerFlags_ = info_bubble::kRoundedAllCorners; |
| + backgroundColor_.reset([NSColor whiteColor]); |
|
Scott Hess - ex-Googler
2012/10/12 23:02:47
I think [NSColor whiteColor] logically returns an
beaudoin
2012/10/13 00:20:55
Done.
|
| } |
| return self; |
| } |
| @@ -71,7 +72,7 @@ |
| [bezier lineToPoint:NSMakePoint(arrowStart.x + info_bubble::kBubbleArrowWidth, |
| arrowStart.y)]; |
| [bezier closePath]; |
| - [[NSColor whiteColor] set]; |
| + [backgroundColor_ set]; |
| [bezier fill]; |
| } |
| @@ -86,4 +87,12 @@ |
| return arrowTip; |
| } |
| +- (NSColor*)backgroundColor { |
| + return backgroundColor_; |
| +} |
| + |
| +- (void)setBackgroundColor:(NSColor*)backgroundColor { |
| + backgroundColor_.reset([backgroundColor retain]); |
| +} |
| + |
| @end |