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

Side by Side Diff: ui/base/default_theme_provider.h

Issue 15240002: Cross-platform DefaultThemeProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comment. Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.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_VIEWS_WIDGET_DEFAULT_THEME_PROVIDER_H_ 5 #ifndef UI_BASE_DEFAULT_THEME_PROVIDER_H_
6 #define UI_VIEWS_WIDGET_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/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "ui/base/theme_provider.h" 12 #include "ui/base/theme_provider.h"
13 #include "ui/views/views_export.h" 13 #include "ui/base/ui_export.h"
14 14
15 namespace ui { 15 namespace ui {
16 class ResourceBundle; 16 class ResourceBundle;
17 } 17 }
18 using ui::ResourceBundle;
19 18
20 namespace views { 19 namespace ui {
21 20
22 class VIEWS_EXPORT DefaultThemeProvider : public ui::ThemeProvider { 21 class UI_EXPORT DefaultThemeProvider : public ThemeProvider {
23 public: 22 public:
24 DefaultThemeProvider(); 23 DefaultThemeProvider();
25 virtual ~DefaultThemeProvider(); 24 virtual ~DefaultThemeProvider();
26 25
27 // Overridden from ui::ThemeProvider: 26 // Overridden from ui::ThemeProvider:
28 virtual gfx::ImageSkia* GetImageSkiaNamed(int id) const OVERRIDE; 27 virtual gfx::ImageSkia* GetImageSkiaNamed(int id) const OVERRIDE;
29 virtual SkColor GetColor(int id) const OVERRIDE; 28 virtual SkColor GetColor(int id) const OVERRIDE;
30 virtual bool GetDisplayProperty(int id, int* result) const OVERRIDE; 29 virtual bool GetDisplayProperty(int id, int* result) const OVERRIDE;
31 virtual bool ShouldUseNativeFrame() const OVERRIDE; 30 virtual bool ShouldUseNativeFrame() const OVERRIDE;
32 virtual bool HasCustomImage(int id) const OVERRIDE; 31 virtual bool HasCustomImage(int id) const OVERRIDE;
33 virtual base::RefCountedMemory* GetRawData( 32 virtual base::RefCountedMemory* GetRawData(
34 int id, 33 int id,
35 ui::ScaleFactor scale_factor) const OVERRIDE; 34 ui::ScaleFactor scale_factor) const OVERRIDE;
36 35
36 #if defined(OS_MACOSX) && !defined(TOOLKIT_VIEWS)
37 virtual NSImage* GetNSImageNamed(int id, bool allow_default) const OVERRIDE;
38 virtual NSColor* GetNSImageColorNamed(int id,
39 bool allow_default) const OVERRIDE;
40 virtual NSColor* GetNSColor(int id, bool allow_default) const OVERRIDE;
41 virtual NSColor* GetNSColorTint(int id, bool allow_default) const OVERRIDE;
42 virtual NSGradient* GetNSGradient(int id) const OVERRIDE;
43 #elif defined(OS_POSIX) && !defined(TOOLKIT_VIEWS) && !defined(OS_ANDROID)
44 virtual GdkPixbuf* GetRTLEnabledPixbufNamed(int id) const OVERRIDE;
45 #endif
46
37 private: 47 private:
38 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider); 48 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider);
39 }; 49 };
40 50
41 } // namespace views 51 } // namespace ui
42 52
43 #endif // UI_VIEWS_WIDGET_DEFAULT_THEME_PROVIDER_H_ 53 #endif // UI_BASE_DEFAULT_THEME_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | ui/base/default_theme_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698