| 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/common/wm/workspace/multi_window_resize_controller.h" | 5 #include "ash/common/wm/workspace/multi_window_resize_controller.h" |
| 6 | 6 |
| 7 #include "ash/common/shell_window_ids.h" |
| 7 #include "ash/common/wm/wm_lookup.h" | 8 #include "ash/common/wm/wm_lookup.h" |
| 8 #include "ash/common/wm/wm_root_window_controller.h" | 9 #include "ash/common/wm/wm_root_window_controller.h" |
| 9 #include "ash/common/wm/wm_shell_window_ids.h" | |
| 10 #include "ash/common/wm/wm_window.h" | 10 #include "ash/common/wm/wm_window.h" |
| 11 #include "ash/common/wm/workspace/workspace_window_resizer.h" | 11 #include "ash/common/wm/workspace/workspace_window_resizer.h" |
| 12 #include "grit/ash_resources.h" | 12 #include "grit/ash_resources.h" |
| 13 #include "ui/base/cursor/cursor.h" | 13 #include "ui/base/cursor/cursor.h" |
| 14 #include "ui/base/hit_test.h" | 14 #include "ui/base/hit_test.h" |
| 15 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
| 16 #include "ui/display/screen.h" | 16 #include "ui/display/screen.h" |
| 17 #include "ui/gfx/canvas.h" | 17 #include "ui/gfx/canvas.h" |
| 18 #include "ui/gfx/image/image.h" | 18 #include "ui/gfx/image/image.h" |
| 19 #include "ui/views/view.h" | 19 #include "ui/views/view.h" |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 | 533 |
| 534 bool MultiWindowResizeController::IsOverComponent( | 534 bool MultiWindowResizeController::IsOverComponent( |
| 535 wm::WmWindow* window, | 535 wm::WmWindow* window, |
| 536 const gfx::Point& location_in_screen, | 536 const gfx::Point& location_in_screen, |
| 537 int component) const { | 537 int component) const { |
| 538 gfx::Point window_loc = window->ConvertPointFromScreen(location_in_screen); | 538 gfx::Point window_loc = window->ConvertPointFromScreen(location_in_screen); |
| 539 return window->GetNonClientComponent(window_loc) == component; | 539 return window->GetNonClientComponent(window_loc) == component; |
| 540 } | 540 } |
| 541 | 541 |
| 542 } // namespace ash | 542 } // namespace ash |
| OLD | NEW |