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 "chrome/browser/cocoa/bubble_view.h" | 5 #import "chrome/browser/cocoa/bubble_view.h" |
6 | 6 |
7 #include "chrome/browser/browser_theme_provider.h" | |
8 #import "chrome/browser/cocoa/themed_window.h" | 7 #import "chrome/browser/cocoa/themed_window.h" |
| 8 #include "chrome/browser/themes/browser_theme_provider.h" |
9 #import "third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h" | 9 #import "third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h" |
10 #import "third_party/GTM/AppKit/GTMNSColor+Luminance.h" | 10 #import "third_party/GTM/AppKit/GTMNSColor+Luminance.h" |
11 | 11 |
12 // The roundedness of the edges of our bubble. | 12 // The roundedness of the edges of our bubble. |
13 const int kBubbleCornerRadius = 4.0f; | 13 const int kBubbleCornerRadius = 4.0f; |
14 const float kWindowEdge = 0.7f; | 14 const float kWindowEdge = 0.7f; |
15 | 15 |
16 @implementation BubbleView | 16 @implementation BubbleView |
17 | 17 |
18 // Designated initializer. |provider| is the window from which we get the | 18 // Designated initializer. |provider| is the window from which we get the |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 textColor, NSForegroundColorAttributeName, | 111 textColor, NSForegroundColorAttributeName, |
112 textFont, NSFontAttributeName, | 112 textFont, NSFontAttributeName, |
113 textShadow.get(), NSShadowAttributeName, | 113 textShadow.get(), NSShadowAttributeName, |
114 nil]; | 114 nil]; |
115 [content_ drawAtPoint:NSMakePoint(kBubbleViewTextPositionX, | 115 [content_ drawAtPoint:NSMakePoint(kBubbleViewTextPositionX, |
116 kBubbleViewTextPositionY) | 116 kBubbleViewTextPositionY) |
117 withAttributes:textDict]; | 117 withAttributes:textDict]; |
118 } | 118 } |
119 | 119 |
120 @end | 120 @end |
OLD | NEW |