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

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

Issue 481433006: Support targeting for gestures in ViewTargeter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: whitespace Created 6 years, 4 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 97ce1d5cb2cbbc157b093dc482b30ac941528540..533d69bd875dfe6db4d2c452539e622fef74a24d 100644
--- a/ui/views/widget/root_view.h
+++ b/ui/views/widget/root_view.h
@@ -17,9 +17,11 @@
namespace views {
namespace test {
+class ViewTargeterTest;
class WidgetTest;
}
+class ViewTargeter;
class Widget;
// This is a views-internal API and should not be used externally.
@@ -123,7 +125,9 @@ class VIEWS_EXPORT RootView : public View,
private:
friend class ::views::View;
+ friend class ::views::ViewTargeter;
friend class ::views::Widget;
+ friend class ::views::test::ViewTargeterTest;
friend class ::views::test::WidgetTest;
// Input ---------------------------------------------------------------------
@@ -187,10 +191,13 @@ class VIEWS_EXPORT RootView : public View,
int last_mouse_event_x_;
int last_mouse_event_y_;
- // The view currently handling gesture events. When set, this handler receives
- // all gesture events.
+ // The View currently handling gesture events.
View* gesture_handler_;
+ // If true, then gesture events received from Widget should be dispatched to
+ // |gesture_handler_|.
+ bool dispatch_to_gesture_handler_;
sadrul 2014/08/26 16:21:44 Is the main purpose here to stop the bubbling of t
tdanderson 2014/08/26 20:21:15 Yes, that's pretty much the purpose of it. Changed
+
scoped_ptr<internal::PreEventDispatchHandler> pre_dispatch_handler_;
scoped_ptr<internal::PostEventDispatchHandler> post_dispatch_handler_;

Powered by Google App Engine
This is Rietveld 408576698