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

Unified Diff: ui/views/widget/root_view_unittest.cc

Issue 404213003: [WIP] Allow scroll events to permanently change the default gesture handler in RootView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: friend test Created 6 years, 5 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_unittest.cc
diff --git a/ui/views/widget/root_view_unittest.cc b/ui/views/widget/root_view_unittest.cc
index 049d765793bcbde0f995a99ee0b1936b2f4f2627..5748bdcaf7e149adb695b078e33d0d1b171f29b8 100644
--- a/ui/views/widget/root_view_unittest.cc
+++ b/ui/views/widget/root_view_unittest.cc
@@ -201,17 +201,13 @@ TEST_F(RootViewTest, ContextMenuFromLongPress) {
// |parent_view| should not show a context menu as a result of a long press on
// |gesture_handling_child_view|.
- ui::GestureEvent begin1(5, 5, 0, base::TimeDelta(),
- ui::GestureEventDetails(ui::ET_GESTURE_BEGIN, 0, 0));
- ui::EventDispatchDetails details = root_view->OnEventFromSource(&begin1);
-
ui::GestureEvent long_press1(
5,
5,
0,
base::TimeDelta(),
ui::GestureEventDetails(ui::ET_GESTURE_LONG_PRESS, 0, 0));
- details = root_view->OnEventFromSource(&long_press1);
+ ui::EventDispatchDetails details = root_view->OnEventFromSource(&long_press1);
ui::GestureEvent end1(5,
5,
@@ -226,10 +222,6 @@ TEST_F(RootViewTest, ContextMenuFromLongPress) {
// |parent_view| should show a context menu as a result of a long press on
// |other_child_view|.
- ui::GestureEvent begin2(25, 5, 0, base::TimeDelta(),
- ui::GestureEventDetails(ui::ET_GESTURE_BEGIN, 0, 0));
- details = root_view->OnEventFromSource(&begin2);
-
ui::GestureEvent long_press2(
25,
5,

Powered by Google App Engine
This is Rietveld 408576698