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

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: comments addressed 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
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/root_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..247210724916578ddb843855df6826288eae4c0b 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 RootViewTargeter;
class Widget;
// This is a views-internal API and should not be used externally.
@@ -122,8 +124,10 @@ class VIEWS_EXPORT RootView : public View,
virtual View::DragInfo* GetDragInfo() OVERRIDE;
private:
+ friend class ::views::RootViewTargeter;
friend class ::views::View;
friend class ::views::Widget;
+ friend class ::views::test::ViewTargeterTest;
friend class ::views::test::WidgetTest;
// Input ---------------------------------------------------------------------
@@ -168,6 +172,9 @@ class VIEWS_EXPORT RootView : public View,
// Input ---------------------------------------------------------------------
+ // TODO(tdanderson): Consider moving the input-related members into
+ // ViewTargeter / RootViewTargeter.
+
// The view currently handing down - drag - up
View* mouse_pressed_handler_;
@@ -187,10 +194,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 are permitted to be
+ // re-targeted and re-dispatched while they remain unhandled.
+ bool allow_gesture_event_retargeting_;
+
scoped_ptr<internal::PreEventDispatchHandler> pre_dispatch_handler_;
scoped_ptr<internal::PostEventDispatchHandler> post_dispatch_handler_;
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/root_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698