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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_COCOA_DOWNLOAD_BACKGROUND_THEME_H_
6 #define CHROME_BROWSER_UI_COCOA_DOWNLOAD_BACKGROUND_THEME_H_
8 #import <Cocoa/Cocoa.h>
10 #include "base/mac/scoped_nsobject.h"
11 #include "ui/base/theme_provider.h"
13 class BackgroundTheme
: public ui::ThemeProvider
{
15 BackgroundTheme(ui::ThemeProvider
* provider
);
16 ~BackgroundTheme() override
;
18 // Overridden from ui::ThemeProvider:
19 bool UsingSystemTheme() const override
;
20 gfx::ImageSkia
* GetImageSkiaNamed(int id
) const override
;
21 SkColor
GetColor(int id
) const override
;
22 int GetDisplayProperty(int id
) const override
;
23 bool ShouldUseNativeFrame() const override
;
24 bool HasCustomImage(int id
) const override
;
25 base::RefCountedMemory
* GetRawData(int id
, ui::ScaleFactor scale_factor
)
27 NSImage
* GetNSImageNamed(int id
) const override
;
28 NSColor
* GetNSImageColorNamed(int id
) const override
;
29 NSColor
* GetNSColor(int id
) const override
;
30 NSColor
* GetNSColorTint(int id
) const override
;
31 NSGradient
* GetNSGradient(int id
) const override
;
34 ui::ThemeProvider
* provider_
;
35 base::scoped_nsobject
<NSGradient
> buttonGradient_
;
36 base::scoped_nsobject
<NSGradient
> buttonPressedGradient_
;
37 base::scoped_nsobject
<NSColor
> borderColor_
;
40 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_BACKGROUND_THEME_H_