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

Unified Diff: ash/wm/workspace/multi_window_resize_controller.cc

Issue 178493003: aura: Make Window::HitTest() a private method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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: ash/wm/workspace/multi_window_resize_controller.cc
diff --git a/ash/wm/workspace/multi_window_resize_controller.cc b/ash/wm/workspace/multi_window_resize_controller.cc
index edae6de385fe8267f1e1a3e515596194df92c98e..a23ed48a2556f92a746fa1c942c71474def6b848 100644
--- a/ash/wm/workspace/multi_window_resize_controller.cc
+++ b/ash/wm/workspace/multi_window_resize_controller.cc
@@ -539,7 +539,7 @@ bool MultiWindowResizeController::IsOverWindow(
gfx::Point window_loc(location_in_screen);
aura::Window::ConvertPointToTarget(
window->GetRootWindow(), window, &window_loc);
- return window->HitTest(window_loc) &&
+ return window->ContainsPoint(window_loc) &&
window->delegate()->GetNonClientComponent(window_loc) == component;
}

Powered by Google App Engine
This is Rietveld 408576698