| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/wm/workspace/multi_window_resize_controller.h" | 5 #include "ash/wm/workspace/multi_window_resize_controller.h" |
| 6 | 6 |
| 7 #include "ash/screen_util.h" | 7 #include "ash/screen_util.h" |
| 8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
| 9 #include "ash/shell_window_ids.h" | 9 #include "ash/shell_window_ids.h" |
| 10 #include "ash/wm/coordinate_conversion.h" | 10 #include "ash/wm/coordinate_conversion.h" |
| (...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 bool MultiWindowResizeController::IsOverWindow( | 532 bool MultiWindowResizeController::IsOverWindow( |
| 533 aura::Window* window, | 533 aura::Window* window, |
| 534 const gfx::Point& location_in_screen, | 534 const gfx::Point& location_in_screen, |
| 535 int component) const { | 535 int component) const { |
| 536 if (!window->delegate()) | 536 if (!window->delegate()) |
| 537 return false; | 537 return false; |
| 538 | 538 |
| 539 gfx::Point window_loc(location_in_screen); | 539 gfx::Point window_loc(location_in_screen); |
| 540 aura::Window::ConvertPointToTarget( | 540 aura::Window::ConvertPointToTarget( |
| 541 window->GetRootWindow(), window, &window_loc); | 541 window->GetRootWindow(), window, &window_loc); |
| 542 return window->HitTest(window_loc) && | 542 return window->ContainsPoint(window_loc) && |
| 543 window->delegate()->GetNonClientComponent(window_loc) == component; | 543 window->delegate()->GetNonClientComponent(window_loc) == component; |
| 544 } | 544 } |
| 545 | 545 |
| 546 } // namespace internal | 546 } // namespace internal |
| 547 } // namespace ash | 547 } // namespace ash |
| OLD | NEW |