OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/scoped_nsobject.h" | 9 #include "base/scoped_nsobject.h" |
10 #include "chrome/common/notification_service.h" | 10 #include "content/common/notification_service.h" |
11 #include "grit/generated_resources.h" | 11 #include "grit/generated_resources.h" |
12 #include "ui/base/l10n/l10n_util_mac.h" | 12 #include "ui/base/l10n/l10n_util_mac.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 // The alpha of the bubble. | 16 // The alpha of the bubble. |
17 static const float kBubbleAlpha = 0.75; | 17 static const float kBubbleAlpha = 0.75; |
18 | 18 |
19 // The roundedness of the edges of our bubble. | 19 // The roundedness of the edges of our bubble. |
20 static const int kBubbleCornerRadius = 4; | 20 static const int kBubbleCornerRadius = 4; |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 178 |
179 [[[NSColor blackColor] colorWithAlphaComponent:kBubbleAlpha] set]; | 179 [[[NSColor blackColor] colorWithAlphaComponent:kBubbleAlpha] set]; |
180 [[NSBezierPath bezierPathWithRoundedRect:grayRect_ | 180 [[NSBezierPath bezierPathWithRoundedRect:grayRect_ |
181 xRadius:kBubbleCornerRadius | 181 xRadius:kBubbleCornerRadius |
182 yRadius:kBubbleCornerRadius] fill]; | 182 yRadius:kBubbleCornerRadius] fill]; |
183 | 183 |
184 [message_.get() drawInRect:textRect_]; | 184 [message_.get() drawInRect:textRect_]; |
185 } | 185 } |
186 | 186 |
187 @end | 187 @end |
OLD | NEW |