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

Unified Diff: components/mus/ws/event_dispatcher.cc

Issue 1489923002: Wire up inset of SetUnderlaySurfaceOffsetAndExtendedHitArea (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « components/mus/ws/BUILD.gn ('k') | components/mus/ws/event_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/event_dispatcher.cc
diff --git a/components/mus/ws/event_dispatcher.cc b/components/mus/ws/event_dispatcher.cc
index 2df70cadcf6cb314cdf9ee42e91d4fa687e30194..c9f71deda563e6948ce4eb61b9a28e9ec3d38429 100644
--- a/components/mus/ws/event_dispatcher.cc
+++ b/components/mus/ws/event_dispatcher.cc
@@ -215,7 +215,7 @@ void EventDispatcher::ProcessPointerEvent(mojom::EventPtr event) {
} else {
gfx::Point location(EventLocationToPoint(*event));
pointer_target.window =
- FindDeepestVisibleWindow(root_, surface_id_, &location);
+ FindDeepestVisibleWindowForEvents(root_, surface_id_, &location);
}
DispatchToPointerTarget(pointer_target, event.Pass());
return;
@@ -227,7 +227,7 @@ void EventDispatcher::ProcessPointerEvent(mojom::EventPtr event) {
const bool is_first_pointer_down = pointer_targets_.empty();
gfx::Point location(EventLocationToPoint(*event));
ServerWindow* target =
- FindDeepestVisibleWindow(root_, surface_id_, &location);
+ FindDeepestVisibleWindowForEvents(root_, surface_id_, &location);
DCHECK(target);
if (!IsObservingWindow(target))
target->AddObserver(this);
« no previous file with comments | « components/mus/ws/BUILD.gn ('k') | components/mus/ws/event_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698