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

Unified Diff: ui/aura/root_window.cc

Issue 10831361: Draggable region support for frameless app window on CrOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix build Created 8 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/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index 57b96684bd41fa2872f5ac1ea2fbfa05bda83ffa..d34a20a3177cfcfb0bee5b1cdfc89c03604a28f3 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -823,7 +823,7 @@ bool RootWindow::OnHostScrollEvent(ui::ScrollEvent* event) {
Window* target = mouse_pressed_handler_ ?
mouse_pressed_handler_ : client::GetCaptureWindow(this);
if (!target)
- target = GetEventHandlerForPoint(event->location());
+ target = GetEventHandlerForPoint(event->location(), event->type());
if (target && target->delegate()) {
int flags = event->flags();
@@ -880,7 +880,7 @@ bool RootWindow::OnHostTouchEvent(ui::TouchEvent* event) {
} else {
// We only come here when the first contact was within the root window.
if (!target) {
- target = GetEventHandlerForPoint(event->location());
+ target = GetEventHandlerForPoint(event->location(), event->type());
if (!target)
return false;
}
@@ -950,7 +950,7 @@ bool RootWindow::DispatchMouseEventImpl(ui::MouseEvent* event) {
Window* target = mouse_pressed_handler_ ?
mouse_pressed_handler_ : client::GetCaptureWindow(this);
if (!target)
- target = GetEventHandlerForPoint(event->location());
+ target = GetEventHandlerForPoint(event->location(), event->type());
return DispatchMouseEventToTarget(event, target);
}

Powered by Google App Engine
This is Rietveld 408576698