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

Side by Side Diff: chrome/browser/ui/cocoa/background_gradient_view.mm

Issue 6849030: Add support for multi resolution icons (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix try jobs Created 9 years, 8 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698