| 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/aura/wm_window_aura.h" | 10 #include "ash/wm/aura/wm_window_aura.h" |
| 11 #include "ash/wm/common/workspace/workspace_window_resizer.h" |
| 11 #include "ash/wm/window_animations.h" | 12 #include "ash/wm/window_animations.h" |
| 12 #include "ash/wm/window_state_aura.h" | 13 #include "ash/wm/window_state_aura.h" |
| 13 #include "ash/wm/workspace/workspace_event_handler.h" | 14 #include "ash/wm/workspace/workspace_event_handler.h" |
| 14 #include "ash/wm/workspace/workspace_window_resizer.h" | |
| 15 #include "grit/ash_resources.h" | 15 #include "grit/ash_resources.h" |
| 16 #include "ui/aura/client/screen_position_client.h" | 16 #include "ui/aura/client/screen_position_client.h" |
| 17 #include "ui/aura/window.h" | 17 #include "ui/aura/window.h" |
| 18 #include "ui/aura/window_delegate.h" | 18 #include "ui/aura/window_delegate.h" |
| 19 #include "ui/aura/window_event_dispatcher.h" | 19 #include "ui/aura/window_event_dispatcher.h" |
| 20 #include "ui/base/hit_test.h" | 20 #include "ui/base/hit_test.h" |
| 21 #include "ui/base/resource/resource_bundle.h" | 21 #include "ui/base/resource/resource_bundle.h" |
| 22 #include "ui/display/screen.h" | 22 #include "ui/display/screen.h" |
| 23 #include "ui/events/event_targeter.h" | 23 #include "ui/events/event_targeter.h" |
| 24 #include "ui/events/event_utils.h" | 24 #include "ui/events/event_utils.h" |
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 bool MultiWindowResizeController::IsOverComponent( | 576 bool MultiWindowResizeController::IsOverComponent( |
| 577 aura::Window* window, | 577 aura::Window* window, |
| 578 const gfx::Point& location_in_screen, | 578 const gfx::Point& location_in_screen, |
| 579 int component) const { | 579 int component) const { |
| 580 gfx::Point window_loc(location_in_screen); | 580 gfx::Point window_loc(location_in_screen); |
| 581 ::wm::ConvertPointFromScreen(window, &window_loc); | 581 ::wm::ConvertPointFromScreen(window, &window_loc); |
| 582 return window->delegate()->GetNonClientComponent(window_loc) == component; | 582 return window->delegate()->GetNonClientComponent(window_loc) == component; |
| 583 } | 583 } |
| 584 | 584 |
| 585 } // namespace ash | 585 } // namespace ash |
| OLD | NEW |