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

Unified Diff: ui/native_theme/native_theme_mac.h

Issue 2483683002: Try to get rid of all direct references to particular native themes. (Closed)
Patch Set: Created 4 years, 1 month 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/native_theme/native_theme_dark_aura.cc ('k') | ui/native_theme/native_theme_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_mac.h
diff --git a/ui/native_theme/native_theme_mac.h b/ui/native_theme/native_theme_mac.h
index ec48119d26442030155d1a14ee8235f45d4becfb..8f870ea00b915981694a0d337b4b4a22531edfae 100644
--- a/ui/native_theme/native_theme_mac.h
+++ b/ui/native_theme/native_theme_mac.h
@@ -27,8 +27,6 @@ class NATIVE_THEME_EXPORT NativeThemeMac : public NativeThemeBase {
COUNT
};
- static NativeThemeMac* instance();
-
// Adjusts an SkColor based on the current system control tint. For example,
// if the current tint is "graphite", this function maps the provided value to
// an appropriate gray.
@@ -68,6 +66,10 @@ class NATIVE_THEME_EXPORT NativeThemeMac : public NativeThemeBase {
bool round_right,
bool focus);
+ protected:
+ friend class NativeTheme;
+ static NativeThemeMac* instance();
+
private:
NativeThemeMac();
~NativeThemeMac() override;
« no previous file with comments | « ui/native_theme/native_theme_dark_aura.cc ('k') | ui/native_theme/native_theme_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698