OLD | NEW |
1 // Copyright (c) 2011 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 #include "chrome/browser/ui/cocoa/background_gradient_view.h" | 5 #include "chrome/browser/ui/cocoa/background_gradient_view.h" |
6 | 6 |
7 #import "chrome/browser/themes/theme_service.h" | 7 #import "chrome/browser/themes/theme_service.h" |
8 #import "chrome/browser/ui/cocoa/nsview_additions.h" | 8 #import "chrome/browser/ui/cocoa/nsview_additions.h" |
9 #import "chrome/browser/ui/cocoa/themed_window.h" | 9 #import "chrome/browser/ui/cocoa/themed_window.h" |
10 #include "grit/theme_resources.h" | 10 #include "grit/theme_resources.h" |
11 #include "grit/theme_resources_standard.h" | |
12 | 11 |
13 @interface BackgroundGradientView (Private) | 12 @interface BackgroundGradientView (Private) |
14 - (NSColor*)backgroundImageColor; | 13 - (NSColor*)backgroundImageColor; |
15 @end | 14 @end |
16 | 15 |
17 @implementation BackgroundGradientView | 16 @implementation BackgroundGradientView |
18 @synthesize showsDivider = showsDivider_; | 17 @synthesize showsDivider = showsDivider_; |
19 | 18 |
20 - (id)initWithFrame:(NSRect)frameRect { | 19 - (id)initWithFrame:(NSRect)frameRect { |
21 if ((self = [super initWithFrame:frameRect])) { | 20 if ((self = [super initWithFrame:frameRect])) { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 NSColor* color = themeProvider->GetNSImageColorNamed( | 80 NSColor* color = themeProvider->GetNSImageColorNamed( |
82 IDR_THEME_TOOLBAR_INACTIVE, true); | 81 IDR_THEME_TOOLBAR_INACTIVE, true); |
83 if (color) | 82 if (color) |
84 return color; | 83 return color; |
85 } | 84 } |
86 | 85 |
87 return themeProvider->GetNSImageColorNamed(IDR_THEME_TOOLBAR, true); | 86 return themeProvider->GetNSImageColorNamed(IDR_THEME_TOOLBAR, true); |
88 } | 87 } |
89 | 88 |
90 @end | 89 @end |
OLD | NEW |