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

Unified Diff: ui/views/view_observer.h

Issue 2744463002: Add VectorIconButton functionality to ImageButton. (Closed)
Patch Set: WIP: use observer Created 3 years, 9 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/view_observer.h
diff --git a/ui/views/view_observer.h b/ui/views/view_observer.h
index c1d69f92cc313e4d73fdb4b6b1124a54ef588e50..745c9f275a0fc8fa52e0921dedceff488619a35f 100644
--- a/ui/views/view_observer.h
+++ b/ui/views/view_observer.h
@@ -7,6 +7,10 @@
#include "ui/views/views_export.h"
+namespace ui {
+class NativeTheme;
+}
+
namespace views {
class View;
@@ -33,6 +37,10 @@ class VIEWS_EXPORT ViewObserver {
// parent view. |view| is the child view being moved.
virtual void OnChildViewReordered(View* view) {}
+ virtual void OnThemeChanged(View* view) {}
+
+ virtual void OnNativeThemeChanged(View* view, const ui::NativeTheme* theme) {}
+
protected:
virtual ~ViewObserver() {}
};

Powered by Google App Engine
This is Rietveld 408576698