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

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

Issue 2126103003: Change chrome:// favicons in tabstrip based on theming. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 5 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
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/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(const ui::ThemeProvider* provider); 15 BackgroundTheme(const ui::ThemeProvider* provider);
16 ~BackgroundTheme() override; 16 ~BackgroundTheme() override;
17 17
18 // Overridden from ui::ThemeProvider: 18 // Overridden from ui::ThemeProvider:
19 bool UsingSystemTheme() const override; 19 bool UsingSystemTheme() const override;
20 gfx::ImageSkia* GetImageSkiaNamed(int id) const override; 20 gfx::ImageSkia* GetImageSkiaNamed(int id) const override;
21 SkColor GetColor(int id) const override; 21 SkColor GetColor(int id) const override;
22 color_utils::HSL GetTint(int id) const override;
22 int GetDisplayProperty(int id) const override; 23 int GetDisplayProperty(int id) const override;
23 bool ShouldUseNativeFrame() const override; 24 bool ShouldUseNativeFrame() const override;
24 bool HasCustomImage(int id) const override; 25 bool HasCustomImage(int id) const override;
25 base::RefCountedMemory* GetRawData(int id, ui::ScaleFactor scale_factor) 26 base::RefCountedMemory* GetRawData(int id, ui::ScaleFactor scale_factor)
26 const override; 27 const override;
27 bool InIncognitoMode() const override; 28 bool InIncognitoMode() const override;
28 bool HasCustomColor(int id) const override; 29 bool HasCustomColor(int id) const override;
29 NSImage* GetNSImageNamed(int id) const override; 30 NSImage* GetNSImageNamed(int id) const override;
30 NSColor* GetNSImageColorNamed(int id) const override; 31 NSColor* GetNSImageColorNamed(int id) const override;
31 NSColor* GetNSColor(int id) const override; 32 NSColor* GetNSColor(int id) const override;
32 NSColor* GetNSColorTint(int id) const override; 33 NSColor* GetNSColorTint(int id) const override;
33 NSGradient* GetNSGradient(int id) const override; 34 NSGradient* GetNSGradient(int id) const override;
34 bool ShouldIncreaseContrast() const override; 35 bool ShouldIncreaseContrast() const override;
35 36
36 private: 37 private:
37 const ui::ThemeProvider* provider_; 38 const ui::ThemeProvider* provider_;
38 base::scoped_nsobject<NSGradient> buttonGradient_; 39 base::scoped_nsobject<NSGradient> buttonGradient_;
39 base::scoped_nsobject<NSGradient> buttonPressedGradient_; 40 base::scoped_nsobject<NSGradient> buttonPressedGradient_;
40 base::scoped_nsobject<NSColor> borderColor_; 41 base::scoped_nsobject<NSColor> borderColor_;
41 }; 42 };
42 43
43 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_BACKGROUND_THEME_H_ 44 #endif // CHROME_BROWSER_UI_COCOA_DOWNLOAD_BACKGROUND_THEME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698