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

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

Issue 244893004: Improve some naming (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 6 years, 8 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
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_THEME_PROVIDER_H_ 5 #ifndef UI_BASE_THEME_PROVIDER_H_
6 #define UI_BASE_THEME_PROVIDER_H_ 6 #define UI_BASE_THEME_PROVIDER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "third_party/skia/include/core/SkColor.h" 9 #include "third_party/skia/include/core/SkColor.h"
10 #include "ui/base/layout.h" 10 #include "ui/base/layout.h"
(...skipping 29 matching lines...) Expand all
40 // 40 //
41 // ThemeProvider is an abstract class that defines the API that should be 41 // ThemeProvider is an abstract class that defines the API that should be
42 // implemented to provide bitmaps and color information for a given theme. 42 // implemented to provide bitmaps and color information for a given theme.
43 // 43 //
44 //////////////////////////////////////////////////////////////////////////////// 44 ////////////////////////////////////////////////////////////////////////////////
45 45
46 class UI_BASE_EXPORT ThemeProvider { 46 class UI_BASE_EXPORT ThemeProvider {
47 public: 47 public:
48 virtual ~ThemeProvider(); 48 virtual ~ThemeProvider();
49 49
50 // Whether we're using the native theme (which may or may not be the 50 // Whether we're using the system theme (which may or may not be the
51 // same as the default theme). 51 // same as the default theme).
52 virtual bool UsingNativeTheme() const = 0; 52 virtual bool UsingSystemTheme() const = 0;
53 53
54 // Get the image specified by |id|. An implementation of ThemeProvider should 54 // Get the image specified by |id|. An implementation of ThemeProvider should
55 // have its own source of ids (e.g. an enum, or external resource bundle). 55 // have its own source of ids (e.g. an enum, or external resource bundle).
56 virtual gfx::ImageSkia* GetImageSkiaNamed(int id) const = 0; 56 virtual gfx::ImageSkia* GetImageSkiaNamed(int id) const = 0;
57 57
58 // Get the color specified by |id|. 58 // Get the color specified by |id|.
59 virtual SkColor GetColor(int id) const = 0; 59 virtual SkColor GetColor(int id) const = 0;
60 60
61 // Get the property (e.g. an alignment expressed in an enum, or a width or 61 // Get the property (e.g. an alignment expressed in an enum, or a width or
62 // height) specified by |id|. 62 // height) specified by |id|.
(...skipping 29 matching lines...) Expand all
92 virtual NSColor* GetNSColorTint(int id) const = 0; 92 virtual NSColor* GetNSColorTint(int id) const = 0;
93 93
94 // Gets the NSGradient with the specified |id|. 94 // Gets the NSGradient with the specified |id|.
95 virtual NSGradient* GetNSGradient(int id) const = 0; 95 virtual NSGradient* GetNSGradient(int id) const = 0;
96 #endif 96 #endif
97 }; 97 };
98 98
99 } // namespace ui 99 } // namespace ui
100 100
101 #endif // UI_BASE_THEME_PROVIDER_H_ 101 #endif // UI_BASE_THEME_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698