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 #include "chrome/browser/cocoa/background_gradient_view.h" | 5 #include "chrome/browser/cocoa/background_gradient_view.h" |
6 | 6 |
7 #define kToolbarTopOffset 12 | 7 #define kToolbarTopOffset 12 |
8 #define kToolbarMaxHeight 100 | 8 #define kToolbarMaxHeight 128 |
9 | 9 |
10 @implementation BackgroundGradientView | 10 @implementation BackgroundGradientView |
11 @synthesize showsDivider = showsDivider_; | 11 @synthesize showsDivider = showsDivider_; |
12 | 12 |
13 - (id)initWithFrame:(NSRect)frameRect { | 13 - (id)initWithFrame:(NSRect)frameRect { |
14 self = [super initWithFrame:frameRect]; | 14 self = [super initWithFrame:frameRect]; |
15 if (self != nil) { | 15 if (self != nil) { |
16 showsDivider_ = YES; | 16 showsDivider_ = YES; |
17 } | 17 } |
18 return self; | 18 return self; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 NSRectFillUsingOperation(borderRect, NSCompositeSourceOver); | 75 NSRectFillUsingOperation(borderRect, NSCompositeSourceOver); |
76 } | 76 } |
77 } | 77 } |
78 | 78 |
79 - (NSColor*)strokeColor { | 79 - (NSColor*)strokeColor { |
80 return [[self gtm_theme] strokeColorForStyle:GTMThemeStyleToolBar | 80 return [[self gtm_theme] strokeColorForStyle:GTMThemeStyleToolBar |
81 state:[[self window] isKeyWindow]]; | 81 state:[[self window] isKeyWindow]]; |
82 } | 82 } |
83 | 83 |
84 @end | 84 @end |
OLD | NEW |