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

Unified Diff: ui/base/theme_provider.h

Issue 1492423003: Rejigger ThemeService: move exposure of ThemeProvider interface to a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix that unittest Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/default_theme_provider_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/theme_provider.h
diff --git a/ui/base/theme_provider.h b/ui/base/theme_provider.h
index eeab83d796cec946111e04a1a112a835362bbe46..7ad97da224558c38b3a40adbf6c42edbf3c824c2 100644
--- a/ui/base/theme_provider.h
+++ b/ui/base/theme_provider.h
@@ -47,10 +47,6 @@ class UI_BASE_EXPORT ThemeProvider {
public:
virtual ~ThemeProvider();
- // Whether we're using the system theme (which may or may not be the
- // same as the default theme).
- virtual bool UsingSystemTheme() const = 0;
-
// Get the image specified by |id|. An implementation of ThemeProvider should
// have its own source of ids (e.g. an enum, or external resource bundle).
virtual gfx::ImageSkia* GetImageSkiaNamed(int id) const = 0;
@@ -78,6 +74,12 @@ class UI_BASE_EXPORT ThemeProvider {
ui::ScaleFactor scale_factor) const = 0;
#if defined(OS_MACOSX)
+ // Whether we're using the system theme (which may or may not be the
+ // same as the default theme).
+ // TODO(estade): this should probably just be part of ThemeService and not
+ // ThemeProvider, but it's used in many places on OSX.
+ virtual bool UsingSystemTheme() const = 0;
+
// Gets the NSImage with the specified |id|.
virtual NSImage* GetNSImageNamed(int id) const = 0;
« no previous file with comments | « ui/base/default_theme_provider_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698