OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #import "chrome/browser/ui/cocoa/theme_install_bubble_view.h" | 7 #import "chrome/browser/ui/cocoa/theme_install_bubble_view.h" |
8 | 8 |
9 #include "app/l10n_util_mac.h" | 9 #include "app/l10n_util_mac.h" |
10 #include "base/scoped_nsobject.h" | 10 #include "base/scoped_nsobject.h" |
| 11 #include "chrome/common/notification_service.h" |
11 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
12 | 13 |
13 namespace { | 14 namespace { |
14 | 15 |
15 // The alpha of the bubble. | 16 // The alpha of the bubble. |
16 static const float kBubbleAlpha = 0.75; | 17 static const float kBubbleAlpha = 0.75; |
17 | 18 |
18 // The roundedness of the edges of our bubble. | 19 // The roundedness of the edges of our bubble. |
19 static const int kBubbleCornerRadius = 4; | 20 static const int kBubbleCornerRadius = 4; |
20 | 21 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 178 |
178 [[[NSColor blackColor] colorWithAlphaComponent:kBubbleAlpha] set]; | 179 [[[NSColor blackColor] colorWithAlphaComponent:kBubbleAlpha] set]; |
179 [[NSBezierPath bezierPathWithRoundedRect:grayRect_ | 180 [[NSBezierPath bezierPathWithRoundedRect:grayRect_ |
180 xRadius:kBubbleCornerRadius | 181 xRadius:kBubbleCornerRadius |
181 yRadius:kBubbleCornerRadius] fill]; | 182 yRadius:kBubbleCornerRadius] fill]; |
182 | 183 |
183 [message_.get() drawInRect:textRect_]; | 184 [message_.get() drawInRect:textRect_]; |
184 } | 185 } |
185 | 186 |
186 @end | 187 @end |
OLD | NEW |