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

Unified Diff: ui/views/widget/root_view.h

Issue 239093007: Update Windows UI on system color changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and rebase. 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/widget/root_view.h
diff --git a/ui/views/widget/root_view.h b/ui/views/widget/root_view.h
index ea8da5fdd9217ddfc022793b814d0526e89bfcc7..df9a4529ff983650f81d2e3d9683befd41a4d056 100644
--- a/ui/views/widget/root_view.h
+++ b/ui/views/widget/root_view.h
@@ -9,6 +9,7 @@
#include "base/memory/ref_counted.h"
#include "ui/events/event_processor.h"
+#include "ui/native_theme/native_theme.h"
#include "ui/views/focus/focus_manager.h"
#include "ui/views/focus/focus_search.h"
#include "ui/views/view.h"
@@ -45,7 +46,8 @@ class PreEventDispatchHandler;
//
class VIEWS_EXPORT RootView : public View,
public FocusTraversable,
- public ui::EventProcessor {
+ public ui::EventProcessor,
+ public ui::NativeThemeObserver {
public:
static const char kViewClassName[];
@@ -109,6 +111,9 @@ class VIEWS_EXPORT RootView : public View,
virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
virtual void UpdateParentLayer() OVERRIDE;
+ // Overridden from ui::NativeThemeObserver:
+ virtual void OnNativeThemeChange() OVERRIDE;
+
protected:
virtual void DispatchGestureEvent(ui::GestureEvent* event);

Powered by Google App Engine
This is Rietveld 408576698