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

Side by Side Diff: chrome/browser/cocoa/bubble_view.mm

Issue 3173043: Move theme files in chrome/browser/ into a themes/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698