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

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 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 | « ui/aura/remote_root_window_host_win.cc ('k') | ui/aura/root_window_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 493f60ff5da5b665afc83ac1960f1bf181386d40..a819ef00a9f2fc14a1cd0062da192a55ef791988 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);
}
« no previous file with comments | « ui/aura/remote_root_window_host_win.cc ('k') | ui/aura/root_window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698