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

Unified Diff: services/ui/ws/event_dispatcher.cc

Issue 2270143002: ui/events: Add changed_button_flags_ in ui::PointerEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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 | « services/ui/public/cpp/tests/window_tree_client_unittest.cc ('k') | ui/events/event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/event_dispatcher.cc
diff --git a/services/ui/ws/event_dispatcher.cc b/services/ui/ws/event_dispatcher.cc
index 06c632338126f2ff3003a0152083913836d6ee5e..5eac6b0cb5f48a496751b040f6c882020d960554 100644
--- a/services/ui/ws/event_dispatcher.cc
+++ b/services/ui/ws/event_dispatcher.cc
@@ -157,7 +157,8 @@ bool EventDispatcher::SetCaptureWindow(ServerWindow* window,
// cancels.
ui::PointerEvent event(
event_type, gfx::Point(), gfx::Point(), ui::EF_NONE, pair.first,
- ui::PointerDetails(pointer_type), ui::EventTimeForNow());
+ 0 /* changed_button_flags */, ui::PointerDetails(pointer_type),
+ ui::EventTimeForNow());
DispatchToPointerTarget(pair.second, event);
}
pointer_targets_.clear();
@@ -425,6 +426,7 @@ void EventDispatcher::UpdateTargetForPointer(int32_t pointer_id,
ui::PointerEvent exit_event(
ui::ET_POINTER_EXITED, event.location(), event.root_location(),
event.flags(), ui::PointerEvent::kMousePointerId,
+ 0 /* changed_button_flags */,
ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_MOUSE),
event.time_stamp());
DispatchToPointerTarget(pointer_targets_[pointer_id], exit_event);
« no previous file with comments | « services/ui/public/cpp/tests/window_tree_client_unittest.cc ('k') | ui/events/event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698