OLD | NEW |
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/mac/scoped_nsobject.h" | 10 #include "base/mac/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 bool UsingSystemTheme() const OVERRIDE; | 19 virtual bool UsingSystemTheme() 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 int GetDisplayProperty(int id) const OVERRIDE; | 22 virtual int GetDisplayProperty(int id) 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( | 25 virtual base::RefCountedMemory* GetRawData( |
26 int id, | 26 int id, |
27 ui::ScaleFactor scale_factor) const OVERRIDE; | 27 ui::ScaleFactor scale_factor) const override; |
28 virtual NSImage* GetNSImageNamed(int id) const OVERRIDE; | 28 virtual NSImage* GetNSImageNamed(int id) const override; |
29 virtual NSColor* GetNSImageColorNamed(int id) const OVERRIDE; | 29 virtual NSColor* GetNSImageColorNamed(int id) const override; |
30 virtual NSColor* GetNSColor(int id) const OVERRIDE; | 30 virtual NSColor* GetNSColor(int id) const override; |
31 virtual NSColor* GetNSColorTint(int id) const OVERRIDE; | 31 virtual NSColor* GetNSColorTint(int id) const override; |
32 virtual NSGradient* GetNSGradient(int id) const OVERRIDE; | 32 virtual NSGradient* GetNSGradient(int id) const override; |
33 | 33 |
34 private: | 34 private: |
35 ui::ThemeProvider* provider_; | 35 ui::ThemeProvider* provider_; |
36 base::scoped_nsobject<NSGradient> buttonGradient_; | 36 base::scoped_nsobject<NSGradient> buttonGradient_; |
37 base::scoped_nsobject<NSGradient> buttonPressedGradient_; | 37 base::scoped_nsobject<NSGradient> buttonPressedGradient_; |
38 base::scoped_nsobject<NSColor> borderColor_; | 38 base::scoped_nsobject<NSColor> borderColor_; |
39 }; | 39 }; |
40 | 40 |
41 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_BACKGROUND_THEME_H_ | 41 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_BACKGROUND_THEME_H_ |
OLD | NEW |