| 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 #import "chrome/browser/browser_theme_provider.h" | |
| 8 #import "chrome/browser/cocoa/themed_window.h" | 7 #import "chrome/browser/cocoa/themed_window.h" |
| 8 #import "chrome/browser/themes/browser_theme_provider.h" |
| 9 #include "grit/theme_resources.h" | 9 #include "grit/theme_resources.h" |
| 10 | 10 |
| 11 #define kToolbarTopOffset 12 | 11 #define kToolbarTopOffset 12 |
| 12 #define kToolbarMaxHeight 100 | 12 #define kToolbarMaxHeight 100 |
| 13 | 13 |
| 14 @implementation BackgroundGradientView | 14 @implementation BackgroundGradientView |
| 15 @synthesize showsDivider = showsDivider_; | 15 @synthesize showsDivider = showsDivider_; |
| 16 | 16 |
| 17 - (id)initWithFrame:(NSRect)frameRect { | 17 - (id)initWithFrame:(NSRect)frameRect { |
| 18 self = [super initWithFrame:frameRect]; | 18 self = [super initWithFrame:frameRect]; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 BOOL isKey = [[self window] isKeyWindow]; | 72 BOOL isKey = [[self window] isKeyWindow]; |
| 73 ThemeProvider* themeProvider = [[self window] themeProvider]; | 73 ThemeProvider* themeProvider = [[self window] themeProvider]; |
| 74 if (!themeProvider) | 74 if (!themeProvider) |
| 75 return [NSColor blackColor]; | 75 return [NSColor blackColor]; |
| 76 return themeProvider->GetNSColor( | 76 return themeProvider->GetNSColor( |
| 77 isKey ? BrowserThemeProvider::COLOR_TOOLBAR_STROKE : | 77 isKey ? BrowserThemeProvider::COLOR_TOOLBAR_STROKE : |
| 78 BrowserThemeProvider::COLOR_TOOLBAR_STROKE_INACTIVE, true); | 78 BrowserThemeProvider::COLOR_TOOLBAR_STROKE_INACTIVE, true); |
| 79 } | 79 } |
| 80 | 80 |
| 81 @end | 81 @end |
| OLD | NEW |