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

Side by Side Diff: chrome/browser/cocoa/background_gradient_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, 3 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 #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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698