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

Unified Diff: ui/aura/root_window.cc

Issue 101573006: Changes MouseEvent constructor to take changed_button_flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix windows side 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
Index: ui/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index 0be87bd2219abff3bf0f72ab52db0dc3e3fb97c9..4ffd79e6414333f918bfda3f53ed337ae075d196 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -380,7 +380,8 @@ void RootWindow::DispatchMouseExitToHidingWindow(Window* window) {
}
void RootWindow::DispatchMouseExitAtPoint(const gfx::Point& point) {
- ui::MouseEvent event(ui::ET_MOUSE_EXITED, point, point, ui::EF_NONE);
+ ui::MouseEvent event(ui::ET_MOUSE_EXITED, point, point, ui::EF_NONE,
+ ui::EF_NONE);
DispatchDetails details =
DispatchMouseEnterOrExit(event, ui::ET_MOUSE_EXITED);
if (details.dispatcher_destroyed)
@@ -632,7 +633,7 @@ void RootWindow::UpdateCapture(Window* old_capture,
old_capture->delegate()) {
// Send a capture changed event with bogus location data.
ui::MouseEvent event(ui::ET_MOUSE_CAPTURE_CHANGED, gfx::Point(),
- gfx::Point(), 0);
+ gfx::Point(), 0, 0);
DispatchDetails details = DispatchEvent(old_capture, &event);
if (details.dispatcher_destroyed)
@@ -1136,7 +1137,8 @@ ui::EventDispatchDetails RootWindow::SynthesizeMouseMoveEvent() {
ui::MouseEvent event(ui::ET_MOUSE_MOVED,
host_mouse_location,
host_mouse_location,
- ui::EF_IS_SYNTHESIZED);
+ ui::EF_IS_SYNTHESIZED,
+ 0);
return OnHostMouseEventImpl(&event);
}

Powered by Google App Engine
This is Rietveld 408576698