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

Side by Side Diff: ui/base/default_theme_provider.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
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.cc ('k') | ui/base/default_theme_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 UI_BASE_DEFAULT_THEME_PROVIDER_H_ 5 #ifndef UI_BASE_DEFAULT_THEME_PROVIDER_H_
6 #define UI_BASE_DEFAULT_THEME_PROVIDER_H_ 6 #define UI_BASE_DEFAULT_THEME_PROVIDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "ui/base/theme_provider.h" 13 #include "ui/base/theme_provider.h"
14 #include "ui/base/ui_base_export.h" 14 #include "ui/base/ui_base_export.h"
15 15
16 namespace ui { 16 namespace ui {
17 class ResourceBundle; 17 class ResourceBundle;
18 } 18 }
19 19
20 namespace ui { 20 namespace ui {
21 21
22 class UI_BASE_EXPORT DefaultThemeProvider : public ThemeProvider { 22 class UI_BASE_EXPORT DefaultThemeProvider : public ThemeProvider {
23 public: 23 public:
24 DefaultThemeProvider(); 24 DefaultThemeProvider();
25 ~DefaultThemeProvider() override; 25 ~DefaultThemeProvider() override;
26 26
27 // Overridden from ui::ThemeProvider: 27 // Overridden from ui::ThemeProvider:
28 gfx::ImageSkia* GetImageSkiaNamed(int id) const override; 28 gfx::ImageSkia* GetImageSkiaNamed(int id) const override;
29 SkColor GetColor(int id) const override; 29 SkColor GetColor(int id) const override;
30 color_utils::HSL GetTint(int id) const override;
30 int GetDisplayProperty(int id) const override; 31 int GetDisplayProperty(int id) const override;
31 bool ShouldUseNativeFrame() const override; 32 bool ShouldUseNativeFrame() const override;
32 bool HasCustomImage(int id) const override; 33 bool HasCustomImage(int id) const override;
33 base::RefCountedMemory* GetRawData(int id, ui::ScaleFactor scale_factor) 34 base::RefCountedMemory* GetRawData(int id, ui::ScaleFactor scale_factor)
34 const override; 35 const override;
35 36
36 #if defined(OS_MACOSX) 37 #if defined(OS_MACOSX)
37 bool UsingSystemTheme() const override; 38 bool UsingSystemTheme() const override;
38 bool InIncognitoMode() const override; 39 bool InIncognitoMode() const override;
39 bool HasCustomColor(int id) const override; 40 bool HasCustomColor(int id) const override;
40 NSImage* GetNSImageNamed(int id) const override; 41 NSImage* GetNSImageNamed(int id) const override;
41 NSColor* GetNSImageColorNamed(int id) const override; 42 NSColor* GetNSImageColorNamed(int id) const override;
42 NSColor* GetNSColor(int id) const override; 43 NSColor* GetNSColor(int id) const override;
43 NSColor* GetNSColorTint(int id) const override; 44 NSColor* GetNSColorTint(int id) const override;
44 NSGradient* GetNSGradient(int id) const override; 45 NSGradient* GetNSGradient(int id) const override;
45 bool ShouldIncreaseContrast() const override; 46 bool ShouldIncreaseContrast() const override;
46 #endif 47 #endif
47 48
48 private: 49 private:
49 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider); 50 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider);
50 }; 51 };
51 52
52 } // namespace ui 53 } // namespace ui
53 54
54 #endif // UI_BASE_DEFAULT_THEME_PROVIDER_H_ 55 #endif // UI_BASE_DEFAULT_THEME_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.cc ('k') | ui/base/default_theme_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698