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

Unified Diff: ui/aura/root_window.cc

Issue 10388198: ash: Add the SYNTHETIC flag to mouse-events generated from gestures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: EF_FROM_TOUCH Created 8 years, 7 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/aura/aura.gyp ('k') | ui/aura/shared/root_window_event_filter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index dd5fa382656bf84a87189184bedf6e574e2d7778..a78db6983ec2cbbed2f5f74cce4c1f4c988387bc 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -744,13 +744,15 @@ ui::GestureStatus RootWindow::ProcessGestureEvent(Window* target,
// Move the mouse to the new location.
if (generate_move && point_in_root != last_mouse_location_) {
MouseEvent synth(ui::ET_MOUSE_MOVED, point_in_root,
- event->root_location(), event->flags());
+ event->root_location(),
+ event->flags() | ui::EF_IS_SYNTHESIZED |
+ ui::EF_FROM_TOUCH);
if (DispatchMouseEventToTarget(&synth, target))
status = ui::GESTURE_STATUS_SYNTH_MOUSE;
}
for (const ui::EventType* type = types; *type != ui::ET_UNKNOWN;
++type) {
- int flags = event->flags();
+ int flags = event->flags() | ui::EF_IS_SYNTHESIZED | ui::EF_FROM_TOUCH;
if (event->type() == ui::ET_GESTURE_DOUBLE_TAP &&
*type == ui::ET_MOUSE_PRESSED)
flags |= ui::EF_IS_DOUBLE_CLICK;
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/shared/root_window_event_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698