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