OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/frame/frame_border_hit_test_controller.h" | 5 #include "ash/frame/frame_border_hit_test_controller.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "ash/ash_constants.h" | 9 #include "ash/ash_constants.h" |
| 10 #include "ash/common/wm/window_state_observer.h" |
10 #include "ash/frame/caption_buttons/frame_caption_button_container_view.h" | 11 #include "ash/frame/caption_buttons/frame_caption_button_container_view.h" |
11 #include "ash/wm/common/window_state_observer.h" | |
12 #include "ash/wm/resize_handle_window_targeter.h" | 12 #include "ash/wm/resize_handle_window_targeter.h" |
13 #include "ui/aura/env.h" | 13 #include "ui/aura/env.h" |
14 #include "ui/aura/window.h" | 14 #include "ui/aura/window.h" |
15 #include "ui/aura/window_observer.h" | 15 #include "ui/aura/window_observer.h" |
16 #include "ui/aura/window_targeter.h" | 16 #include "ui/aura/window_targeter.h" |
17 #include "ui/base/hit_test.h" | 17 #include "ui/base/hit_test.h" |
18 #include "ui/views/widget/widget.h" | 18 #include "ui/views/widget/widget.h" |
19 #include "ui/views/widget/widget_delegate.h" | 19 #include "ui/views/widget/widget_delegate.h" |
20 #include "ui/views/window/non_client_view.h" | 20 #include "ui/views/window/non_client_view.h" |
21 | 21 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 point_in_caption_button_container); | 78 point_in_caption_button_container); |
79 if (caption_button_component != HTNOWHERE) | 79 if (caption_button_component != HTNOWHERE) |
80 return caption_button_component; | 80 return caption_button_component; |
81 } | 81 } |
82 | 82 |
83 // Caption is a safe default. | 83 // Caption is a safe default. |
84 return HTCAPTION; | 84 return HTCAPTION; |
85 } | 85 } |
86 | 86 |
87 } // namespace ash | 87 } // namespace ash |
OLD | NEW |