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

Unified Diff: ash/autoclick/autoclick_controller.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 | « no previous file | ash/autoclick/autoclick_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/autoclick/autoclick_controller.cc
diff --git a/ash/autoclick/autoclick_controller.cc b/ash/autoclick/autoclick_controller.cc
index 9b49ca29099949a71d6927e2d5f6712ad9fc1f19..ec8977bdb9c05392a7dd35f2b399d09203a173ce 100644
--- a/ash/autoclick/autoclick_controller.cc
+++ b/ash/autoclick/autoclick_controller.cc
@@ -191,11 +191,13 @@ void AutoclickControllerImpl::DoAutoclick() {
ui::MouseEvent press_event(ui::ET_MOUSE_PRESSED,
click_location,
click_location,
- mouse_event_flags_ | ui::EF_LEFT_MOUSE_BUTTON);
+ mouse_event_flags_ | ui::EF_LEFT_MOUSE_BUTTON,
+ ui::EF_LEFT_MOUSE_BUTTON);
ui::MouseEvent release_event(ui::ET_MOUSE_RELEASED,
click_location,
click_location,
- mouse_event_flags_ | ui::EF_LEFT_MOUSE_BUTTON);
+ mouse_event_flags_ | ui::EF_LEFT_MOUSE_BUTTON,
+ ui::EF_LEFT_MOUSE_BUTTON);
dispatcher->AsRootWindowHostDelegate()->OnHostMouseEvent(&press_event);
dispatcher->AsRootWindowHostDelegate()->OnHostMouseEvent(&release_event);
« no previous file with comments | « no previous file | ash/autoclick/autoclick_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698