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

Unified Diff: ash/display/mouse_cursor_event_filter_unittest.cc

Issue 101573006: Changes MouseEvent constructor to take changed_button_flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test; needs updated expectations as mouse entered wasnt sent before because of env::mouse_butto… Created 7 years 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 | « ash/autoclick/autoclick_unittest.cc ('k') | ash/drag_drop/drag_drop_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/mouse_cursor_event_filter_unittest.cc
diff --git a/ash/display/mouse_cursor_event_filter_unittest.cc b/ash/display/mouse_cursor_event_filter_unittest.cc
index 7fa79fd6f3bf97e9064138f124791071b4c3c03a..be7dac52bae7238a4d4d9e1dda5ab64ca537f4df 100644
--- a/ash/display/mouse_cursor_event_filter_unittest.cc
+++ b/ash/display/mouse_cursor_event_filter_unittest.cc
@@ -41,7 +41,7 @@ class MouseCursorEventFilterTest : public test::AshTestBase {
gfx::Point point_in_screen) {
gfx::Point location = drag_source_root->bounds().CenterPoint();
ui::MouseEvent pressed(ui::ET_MOUSE_PRESSED, location,
- location, 0);
+ location, 0, 0);
ui::Event::DispatcherApi(&pressed).set_target(drag_source_root);
event_filter()->OnMouseEvent(&pressed);
bool is_warped = event_filter()->WarpMouseCursorIfNecessary(
@@ -49,7 +49,7 @@ class MouseCursorEventFilterTest : public test::AshTestBase {
event_filter()->reset_was_mouse_warped_for_test();
ui::MouseEvent released(ui::ET_MOUSE_RELEASED, location,
- location, 0);
+ location, 0, 0);
ui::Event::DispatcherApi(&released).set_target(drag_source_root);
event_filter()->OnMouseEvent(&released);
return is_warped;
« no previous file with comments | « ash/autoclick/autoclick_unittest.cc ('k') | ash/drag_drop/drag_drop_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698