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