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

Unified Diff: ui/native_theme/native_theme_win.h

Issue 11421204: Use native theme colors for textfields; etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nix cursor color; adjust textfield functions; add read-only theme colors. Created 8 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
Index: ui/native_theme/native_theme_win.h
diff --git a/ui/native_theme/native_theme_win.h b/ui/native_theme/native_theme_win.h
index 1e83d1565bb17a9d0652dc4cd0b0bfb3295271bf..c0481af913cb327c89baec6fe164ddf9637d6008 100644
--- a/ui/native_theme/native_theme_win.h
+++ b/ui/native_theme/native_theme_win.h
@@ -11,6 +11,7 @@
// For more information on visual style parts and states, see:
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/userex/topics/partsandstates.asp
+#include <map>
#include <windows.h>
#include <uxtheme.h>
@@ -96,7 +97,7 @@ class NATIVE_THEME_EXPORT NativeThemeWin : public NativeTheme {
bool fill_content_area,
bool draw_edges) const;
- // NativeTheme Implementation:
+ // NativeTheme implementation:
virtual gfx::Size GetPartSize(Part part,
State state,
const ExtraParams& extra) const OVERRIDE;
@@ -314,6 +315,9 @@ class NATIVE_THEME_EXPORT NativeThemeWin : public NativeTheme {
int prop_id,
int *value);
+ // gfx::SysColorChangeListener implementation:
+ virtual void OnSysColorChange() OVERRIDE;
+
// Function pointers into uxtheme.dll.
DrawThemeBackgroundPtr draw_theme_;
DrawThemeBackgroundExPtr draw_theme_ex_;
@@ -332,6 +336,9 @@ class NATIVE_THEME_EXPORT NativeThemeWin : public NativeTheme {
// A cache of open theme handles.
mutable HANDLE theme_handles_[LAST];
+ // A map of cached and updated system colors.
+ mutable std::map<int, SkColor> system_colors_;
+
DISALLOW_COPY_AND_ASSIGN(NativeThemeWin);
};

Powered by Google App Engine
This is Rietveld 408576698