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

Side by Side Diff: chrome/browser/ui/cocoa/download/background_theme.mm

Issue 10388064: Add GetImageSkiaNamed to resource_bundle and theme_provider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits Created 8 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/download/background_theme.h" 5 #include "chrome/browser/ui/cocoa/download/background_theme.h"
6 6
7 #import "chrome/browser/themes/theme_service.h" 7 #import "chrome/browser/themes/theme_service.h"
8 8
9 BackgroundTheme::BackgroundTheme(ui::ThemeProvider* provider) : 9 BackgroundTheme::BackgroundTheme(ui::ThemeProvider* provider) :
10 provider_(provider) { 10 provider_(provider) {
(...skipping 10 matching lines...) Expand all
21 [[NSColor colorWithCalibratedWhite:0 alpha:36/255.0] retain]); 21 [[NSColor colorWithCalibratedWhite:0 alpha:36/255.0] retain]);
22 buttonGradient_.reset([[NSGradient alloc] 22 buttonGradient_.reset([[NSGradient alloc]
23 initWithColors:[NSArray arrayWithObject:bgColor]]); 23 initWithColors:[NSArray arrayWithObject:bgColor]]);
24 buttonPressedGradient_.reset([[NSGradient alloc] 24 buttonPressedGradient_.reset([[NSGradient alloc]
25 initWithColors:[NSArray arrayWithObject:clickedColor]]); 25 initWithColors:[NSArray arrayWithObject:clickedColor]]);
26 } 26 }
27 27
28 BackgroundTheme::~BackgroundTheme() {} 28 BackgroundTheme::~BackgroundTheme() {}
29 29
30 SkBitmap* BackgroundTheme::GetBitmapNamed(int id) const { 30 SkBitmap* BackgroundTheme::GetBitmapNamed(int id) const {
31 return nil; 31 return NULL;
32 }
33
34 gfx::ImageSkia* BackgroundTheme::GetImageSkiaNamed(int id) const {
35 return NULL;
32 } 36 }
33 37
34 SkColor BackgroundTheme::GetColor(int id) const { 38 SkColor BackgroundTheme::GetColor(int id) const {
35 return SkColor(); 39 return SkColor();
36 } 40 }
37 41
38 bool BackgroundTheme::GetDisplayProperty(int id, int* result) const { 42 bool BackgroundTheme::GetDisplayProperty(int id, int* result) const {
39 return false; 43 return false;
40 } 44 }
41 45
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 return buttonGradient_.get(); 82 return buttonGradient_.get();
79 case ThemeService::GRADIENT_TOOLBAR_BUTTON_PRESSED: 83 case ThemeService::GRADIENT_TOOLBAR_BUTTON_PRESSED:
80 case ThemeService::GRADIENT_TOOLBAR_BUTTON_PRESSED_INACTIVE: 84 case ThemeService::GRADIENT_TOOLBAR_BUTTON_PRESSED_INACTIVE:
81 return buttonPressedGradient_.get(); 85 return buttonPressedGradient_.get();
82 default: 86 default:
83 return provider_->GetNSGradient(id); 87 return provider_->GetNSGradient(id);
84 } 88 }
85 } 89 }
86 90
87 91
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/download/background_theme.h ('k') | chrome/browser/ui/gtk/gtk_theme_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698