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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc

Issue 2712963003: mustash: Use ui::chromeos::EventRewriter in mus (Closed)
Patch Set: Fix build issues. Created 3 years, 9 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/desktop_aura/desktop_window_tree_host_win.cc
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
index 2756595317ec58f3f2557095edcd14550485c8d4..fd25fc60ae0bd0331902c8d0ece1610699c563d1 100644
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
@@ -832,7 +832,7 @@ void DesktopWindowTreeHostWin::HandleNativeBlur(HWND focused_window) {
}
bool DesktopWindowTreeHostWin::HandleMouseEvent(const ui::MouseEvent& event) {
- SendEventToProcessor(const_cast<ui::MouseEvent*>(&event));
+ SendEventToSink(const_cast<ui::MouseEvent*>(&event));
return event.handled();
}
@@ -862,11 +862,11 @@ void DesktopWindowTreeHostWin::HandleTouchEvent(
static_cast<View*>(NULL));
target_event.set_location(gfx::Point(target_location));
target_event.set_root_location(target_event.location());
- target->SendEventToProcessor(&target_event);
+ target->SendEventToSink(&target_event);
return;
}
}
- SendEventToProcessor(const_cast<ui::TouchEvent*>(&event));
+ SendEventToSink(const_cast<ui::TouchEvent*>(&event));
}
bool DesktopWindowTreeHostWin::HandleIMEMessage(UINT message,
@@ -922,7 +922,7 @@ void DesktopWindowTreeHostWin::PostHandleMSG(UINT message,
bool DesktopWindowTreeHostWin::HandleScrollEvent(
const ui::ScrollEvent& event) {
- SendEventToProcessor(const_cast<ui::ScrollEvent*>(&event));
+ SendEventToSink(const_cast<ui::ScrollEvent*>(&event));
return event.handled();
}

Powered by Google App Engine
This is Rietveld 408576698