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

Unified Diff: ui/aura/remote_root_window_host_win.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/remote_root_window_host_win.cc
diff --git a/ui/aura/remote_root_window_host_win.cc b/ui/aura/remote_root_window_host_win.cc
index 593da6f524fc01a5a28928365fbd889316445363..eb278bb7353b4289990fda4b3f2269db4ae289ce 100644
--- a/ui/aura/remote_root_window_host_win.cc
+++ b/ui/aura/remote_root_window_host_win.cc
@@ -494,7 +494,7 @@ void RemoteRootWindowHostWin::OnMouseMoved(int32 x, int32 y, int32 flags) {
return;
gfx::Point location(x, y);
- ui::MouseEvent event(ui::ET_MOUSE_MOVED, location, location, flags);
+ ui::MouseEvent event(ui::ET_MOUSE_MOVED, location, location, flags, 0);
delegate_->OnHostMouseEvent(&event);
}
@@ -505,7 +505,8 @@ void RemoteRootWindowHostWin::OnMouseButton(
ui::EventType type,
ui::EventFlags flags) {
gfx::Point location(x, y);
- ui::MouseEvent mouse_event(type, location, location, flags);
+ // TODO: this needs to pass in changed flags.
+ ui::MouseEvent mouse_event(type, location, location, flags, 0);
SetEventFlags(flags | key_event_flags());
if (type == ui::ET_MOUSEWHEEL) {

Powered by Google App Engine
This is Rietveld 408576698