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

Unified Diff: ui/views/widget/root_view.cc

Issue 1260453006: ui: events: Add a class to hold common touch and stylus properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address build problems, add accessor and unit tests. Created 5 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
Index: ui/views/widget/root_view.cc
diff --git a/ui/views/widget/root_view.cc b/ui/views/widget/root_view.cc
index 1270bf757e4f912c9a357bf7c594251c701c035d..11ae6abf967617c153ff2d47c91876023a9f2e42 100644
--- a/ui/views/widget/root_view.cc
+++ b/ui/views/widget/root_view.cc
@@ -455,9 +455,10 @@ void RootView::OnMouseCaptureLost() {
// Synthesize a release event for UpdateCursor.
if (mouse_pressed_handler_) {
gfx::Point last_point(last_mouse_event_x_, last_mouse_event_y_);
- ui::MouseEvent release_event(ui::ET_MOUSE_RELEASED, last_point,
- last_point, ui::EventTimeForNow(),
- last_mouse_event_flags_, 0);
+ ui::MouseEvent release_event(
+ ui::ET_MOUSE_RELEASED, last_point, last_point, ui::EventTimeForNow(),
+ last_mouse_event_flags_, 0,
+ ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
UpdateCursor(release_event);
}
// We allow the view to delete us from OnMouseCaptureLost. As such,

Powered by Google App Engine
This is Rietveld 408576698