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

Unified Diff: ash/wm/root_window_event_filter_unittest.cc

Issue 9566020: Revert 124071 - Gestures are now possible using touch events with any ids (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 | « no previous file | ui/aura/gestures/gesture_point.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/root_window_event_filter_unittest.cc
===================================================================
--- ash/wm/root_window_event_filter_unittest.cc (revision 124450)
+++ ash/wm/root_window_event_filter_unittest.cc (working copy)
@@ -325,7 +325,7 @@
press_point = w1->bounds().CenterPoint();
aura::Window::ConvertPointToWindow(w1->parent(), root_window, &press_point);
d1.set_activate(false);
- aura::TouchEvent touchev2(ui::ET_TOUCH_PRESSED, press_point, 1);
+ aura::TouchEvent touchev2(ui::ET_TOUCH_PRESSED, press_point, 0);
root_window->DispatchTouchEvent(&touchev2);
// Window2 should still be active and focused.
@@ -547,15 +547,13 @@
aura::MouseEvent mouse_moved(
ui::ET_MOUSE_MOVED, gfx::Point(0, 0), gfx::Point(0, 0), 0x0);
- aura::TouchEvent touch_pressed1(
+ aura::TouchEvent touch_pressed(
ui::ET_TOUCH_PRESSED, gfx::Point(0, 0), 0);
- aura::TouchEvent touch_pressed2(
- ui::ET_TOUCH_PRESSED, gfx::Point(0, 0), 1);
root_window_filter->set_update_cursor_visibility(true);
root_window->DispatchMouseEvent(&mouse_moved);
EXPECT_TRUE(root_window->cursor_shown());
- root_window->DispatchTouchEvent(&touch_pressed1);
+ root_window->DispatchTouchEvent(&touch_pressed);
EXPECT_FALSE(root_window->cursor_shown());
root_window->DispatchMouseEvent(&mouse_moved);
EXPECT_TRUE(root_window->cursor_shown());
@@ -565,7 +563,7 @@
root_window->DispatchMouseEvent(&mouse_moved);
EXPECT_FALSE(root_window->cursor_shown());
root_window->ShowCursor(true);
- root_window->DispatchTouchEvent(&touch_pressed2);
+ root_window->DispatchTouchEvent(&touch_pressed);
EXPECT_TRUE(root_window->cursor_shown());
}
« no previous file with comments | « no previous file | ui/aura/gestures/gesture_point.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698