OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #ifndef ASH_WM_DOCK_DOCK_WINDOW_RESIZER_H_ | 5 #ifndef ASH_WM_DOCK_DOCK_WINDOW_RESIZER_H_ |
6 #define ASH_WM_DOCK_DOCK_WINDOW_RESIZER_H_ | 6 #define ASH_WM_DOCK_DOCK_WINDOW_RESIZER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/wm/dock/dock_types.h" | 10 #include "ash/wm/dock/dock_types.h" |
11 #include "ash/wm/window_resizer.h" | 11 #include "ash/wm/window_resizer.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 | 15 |
16 namespace gfx { | 16 namespace gfx { |
17 class Point; | 17 class Point; |
18 class Rect; | 18 class Rect; |
19 } | 19 } |
20 | 20 |
21 namespace aura { | |
22 class RootWindow; | |
23 } | |
24 | |
25 namespace ash { | 21 namespace ash { |
26 class DockedWindowLayoutManager; | 22 class DockedWindowLayoutManager; |
27 | 23 |
28 // DockWindowResizer is used by ToplevelWindowEventFilter to handle dragging, | 24 // DockWindowResizer is used by ToplevelWindowEventFilter to handle dragging, |
29 // moving or resizing of a window while it is docked to the side of a screen. | 25 // moving or resizing of a window while it is docked to the side of a screen. |
30 class ASH_EXPORT DockedWindowResizer : public WindowResizer { | 26 class ASH_EXPORT DockedWindowResizer : public WindowResizer { |
31 public: | 27 public: |
32 ~DockedWindowResizer() override; | 28 ~DockedWindowResizer() override; |
33 | 29 |
34 // Creates a new DockWindowResizer. The caller takes ownership of the | 30 // Creates a new DockWindowResizer. The caller takes ownership of the |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 bool was_bounds_changed_by_user_; | 92 bool was_bounds_changed_by_user_; |
97 | 93 |
98 base::WeakPtrFactory<DockedWindowResizer> weak_ptr_factory_; | 94 base::WeakPtrFactory<DockedWindowResizer> weak_ptr_factory_; |
99 | 95 |
100 DISALLOW_COPY_AND_ASSIGN(DockedWindowResizer); | 96 DISALLOW_COPY_AND_ASSIGN(DockedWindowResizer); |
101 }; | 97 }; |
102 | 98 |
103 } // namespace ash | 99 } // namespace ash |
104 | 100 |
105 #endif // ASH_WM_DOCK_DOCK_WINDOW_RESIZER_H_ | 101 #endif // ASH_WM_DOCK_DOCK_WINDOW_RESIZER_H_ |
OLD | NEW |