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

Unified Diff: ui/views/view.h

Issue 2500623002: Add ViewObserver to View for view updates (Closed)
Patch Set: Add DevToolsobserver to View for view updates 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
Index: ui/views/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index 050548f0120ac7c90a3e5630966e5177208db8cf..9b1227ceac4dc407044da0d4cb39d7853038d0af 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -70,6 +70,7 @@ namespace views {
class Background;
class Border;
class ContextMenuController;
+class DevToolsObserver;
class DragController;
class FocusManager;
class FocusTraversable;
@@ -1002,6 +1003,10 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
virtual int GetLineScrollIncrement(ScrollView* scroll_view,
bool is_horizontal, bool is_positive);
+ // DevTools Observer ---------------------------------------------------------
+
+ void SetDevToolsObserver(DevToolsObserver* devtools_observer);
sadrul 2016/11/15 17:21:49 set_devtools_observer and inline the impl in here
Sarmad Hashmi 2016/11/15 17:54:56 Done.
+
protected:
// Used to track a drag. RootView passes this into
// ProcessMousePressed/Dragged.
@@ -1577,6 +1582,10 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// so we can't use a scoped_ptr. It's dereferenced in the destructor.
NativeViewAccessibility* native_view_accessibility_;
+ // Observers -------------------------------------------------------------
+
+ DevToolsObserver* devtools_observer_;
+
DISALLOW_COPY_AND_ASSIGN(View);
};
« no previous file with comments | « ui/views/devtools_observer.h ('k') | ui/views/view.cc » ('j') | ui/views/view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698