Index: ui/views/linux_ui/system_theme_change_observer.h |
diff --git a/ui/views/linux_ui/system_theme_change_observer.h b/ui/views/linux_ui/system_theme_change_observer.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..92348d881218c9da03c6450179eb14e1e184bba0 |
--- /dev/null |
+++ b/ui/views/linux_ui/system_theme_change_observer.h |
@@ -0,0 +1,23 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef UI_VIEWS_LINUX_UI_SYSTEM_THEME_CHANGE_OBSERVER_H_ |
+#define UI_VIEWS_LINUX_UI_SYSTEM_THEME_CHANGE_OBSERVER_H_ |
+ |
+#include "ui/views/views_export.h" |
+ |
+namespace views { |
+ |
+// Observers which are notified when the system theme changes. |
+class VIEWS_EXPORT SystemThemeChangeObserver { |
msw
2014/04/22 18:02:13
nit: I think this should become NativeThemeObserve
|
+ public: |
+ virtual ~SystemThemeChangeObserver() {} |
+ |
+ // Called whenever the underlying platform changes its theme. |
+ virtual void OnSystemThemeChanged() = 0; |
+}; |
+ |
+} // namespace views |
+ |
+#endif // UI_VIEWS_LINUX_UI_SYSTEM_THEME_CHANGE_OBSERVER_H_ |