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

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

Issue 10783015: Add ability to store hidpi theme images in data pack (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 45
46 bool BackgroundTheme::ShouldUseNativeFrame() const { 46 bool BackgroundTheme::ShouldUseNativeFrame() const {
47 return false; 47 return false;
48 } 48 }
49 49
50 bool BackgroundTheme::HasCustomImage(int id) const { 50 bool BackgroundTheme::HasCustomImage(int id) const {
51 return false; 51 return false;
52 } 52 }
53 53
54 base::RefCountedMemory* BackgroundTheme::GetRawData(int id) const { 54 base::RefCountedMemory* BackgroundTheme::GetRawData(
55 int id,
56 ui::ScaleFactor scale_factor) const {
55 return NULL; 57 return NULL;
56 } 58 }
57 59
58 NSImage* BackgroundTheme::GetNSImageNamed(int id, bool allow_default) const { 60 NSImage* BackgroundTheme::GetNSImageNamed(int id, bool allow_default) const {
59 return nil; 61 return nil;
60 } 62 }
61 63
62 NSColor* BackgroundTheme::GetNSImageColorNamed(int id, 64 NSColor* BackgroundTheme::GetNSImageColorNamed(int id,
63 bool allow_default) const { 65 bool allow_default) const {
64 return nil; 66 return nil;
(...skipping 17 matching lines...) Expand all
82 return buttonGradient_.get(); 84 return buttonGradient_.get();
83 case ThemeService::GRADIENT_TOOLBAR_BUTTON_PRESSED: 85 case ThemeService::GRADIENT_TOOLBAR_BUTTON_PRESSED:
84 case ThemeService::GRADIENT_TOOLBAR_BUTTON_PRESSED_INACTIVE: 86 case ThemeService::GRADIENT_TOOLBAR_BUTTON_PRESSED_INACTIVE:
85 return buttonPressedGradient_.get(); 87 return buttonPressedGradient_.get();
86 default: 88 default:
87 return provider_->GetNSGradient(id); 89 return provider_->GetNSGradient(id);
88 } 90 }
89 } 91 }
90 92
91 93
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/download/background_theme.h ('k') | chrome/browser/ui/webui/theme_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698