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

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

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 #ifndef CHROME_BROWSER_UI_COCOA_DOWNLOAD_BACKGROUND_THEME_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_DOWNLOAD_BACKGROUND_THEME_H_
6 #define CHROME_BROWSER_UI_COCOA_DOWNLOAD_BACKGROUND_THEME_H_ 6 #define CHROME_BROWSER_UI_COCOA_DOWNLOAD_BACKGROUND_THEME_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/memory/scoped_nsobject.h" 10 #include "base/memory/scoped_nsobject.h"
11 #include "ui/base/theme_provider.h" 11 #include "ui/base/theme_provider.h"
12 12
13 class BackgroundTheme : public ui::ThemeProvider { 13 class BackgroundTheme : public ui::ThemeProvider {
14 public: 14 public:
15 BackgroundTheme(ui::ThemeProvider* provider); 15 BackgroundTheme(ui::ThemeProvider* provider);
16 virtual ~BackgroundTheme(); 16 virtual ~BackgroundTheme();
17 17
18 // Overridden from ui::ThemeProvider: 18 // Overridden from ui::ThemeProvider:
19 virtual SkBitmap* GetBitmapNamed(int id) const OVERRIDE; 19 virtual SkBitmap* GetBitmapNamed(int id) const OVERRIDE;
20 virtual gfx::ImageSkia* GetImageSkiaNamed(int id) const OVERRIDE; 20 virtual gfx::ImageSkia* GetImageSkiaNamed(int id) const OVERRIDE;
21 virtual SkColor GetColor(int id) const OVERRIDE; 21 virtual SkColor GetColor(int id) const OVERRIDE;
22 virtual bool GetDisplayProperty(int id, int* result) const OVERRIDE; 22 virtual bool GetDisplayProperty(int id, int* result) const OVERRIDE;
23 virtual bool ShouldUseNativeFrame() const OVERRIDE; 23 virtual bool ShouldUseNativeFrame() const OVERRIDE;
24 virtual bool HasCustomImage(int id) const OVERRIDE; 24 virtual bool HasCustomImage(int id) const OVERRIDE;
25 virtual base::RefCountedMemory* GetRawData(int id) const OVERRIDE; 25 virtual base::RefCountedMemory* GetRawData(
26 int id,
27 ui::ScaleFactor scale_factor) const OVERRIDE;
26 virtual NSImage* GetNSImageNamed(int id, bool allow_default) const OVERRIDE; 28 virtual NSImage* GetNSImageNamed(int id, bool allow_default) const OVERRIDE;
27 virtual NSColor* GetNSImageColorNamed(int id, 29 virtual NSColor* GetNSImageColorNamed(int id,
28 bool allow_default) const OVERRIDE; 30 bool allow_default) const OVERRIDE;
29 virtual NSColor* GetNSColor(int id, bool allow_default) const OVERRIDE; 31 virtual NSColor* GetNSColor(int id, bool allow_default) const OVERRIDE;
30 virtual NSColor* GetNSColorTint(int id, bool allow_default) const OVERRIDE; 32 virtual NSColor* GetNSColorTint(int id, bool allow_default) const OVERRIDE;
31 virtual NSGradient* GetNSGradient(int id) const OVERRIDE; 33 virtual NSGradient* GetNSGradient(int id) const OVERRIDE;
32 34
33 private: 35 private:
34 ui::ThemeProvider* provider_; 36 ui::ThemeProvider* provider_;
35 scoped_nsobject<NSGradient> buttonGradient_; 37 scoped_nsobject<NSGradient> buttonGradient_;
36 scoped_nsobject<NSGradient> buttonPressedGradient_; 38 scoped_nsobject<NSGradient> buttonPressedGradient_;
37 scoped_nsobject<NSColor> borderColor_; 39 scoped_nsobject<NSColor> borderColor_;
38 }; 40 };
39 41
40 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_BACKGROUND_THEME_H_ 42 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_BACKGROUND_THEME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698