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/public/cpp/shell_window_ids.h" | 7 #include "ash/public/cpp/shell_window_ids.h" |
8 #include "ash/root_window_controller.h" | 8 #include "ash/root_window_controller.h" |
9 #include "ash/wm/window_state_aura.h" | 9 #include "ash/wm/window_state.h" |
10 #include "ash/wm/workspace/workspace_window_resizer.h" | 10 #include "ash/wm/workspace/workspace_window_resizer.h" |
11 #include "ash/wm_window.h" | 11 #include "ash/wm_window.h" |
12 #include "ui/aura/window.h" | 12 #include "ui/aura/window.h" |
13 #include "ui/aura/window_delegate.h" | 13 #include "ui/aura/window_delegate.h" |
14 #include "ui/base/cursor/cursor.h" | 14 #include "ui/base/cursor/cursor.h" |
15 #include "ui/base/hit_test.h" | 15 #include "ui/base/hit_test.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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 const gfx::Point& location_in_screen, | 597 const gfx::Point& location_in_screen, |
598 int component) const { | 598 int component) const { |
599 gfx::Point window_loc = ConvertPointFromScreen(window, location_in_screen); | 599 gfx::Point window_loc = ConvertPointFromScreen(window, location_in_screen); |
600 const int window_component = | 600 const int window_component = |
601 window->delegate() ? window->delegate()->GetNonClientComponent(window_loc) | 601 window->delegate() ? window->delegate()->GetNonClientComponent(window_loc) |
602 : HTNOWHERE; | 602 : HTNOWHERE; |
603 return window_component == component; | 603 return window_component == component; |
604 } | 604 } |
605 | 605 |
606 } // namespace ash | 606 } // namespace ash |
OLD | NEW |