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 #ifndef ASH_WM_COMMON_PANELS_PANEL_WINDOW_RESIZER_H_ | 5 #ifndef ASH_WM_COMMON_PANELS_PANEL_WINDOW_RESIZER_H_ |
6 #define ASH_WM_COMMON_PANELS_PANEL_WINDOW_RESIZER_H_ | 6 #define ASH_WM_COMMON_PANELS_PANEL_WINDOW_RESIZER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/wm/common/ash_wm_common_export.h" | 10 #include "ash/ash_export.h" |
11 #include "ash/wm/common/window_resizer.h" | 11 #include "ash/wm/common/window_resizer.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 | 14 |
15 namespace gfx { | 15 namespace gfx { |
16 class Rect; | 16 class Rect; |
17 class Point; | 17 class Point; |
18 } | 18 } |
19 | 19 |
20 namespace ash { | 20 namespace ash { |
21 | 21 |
22 // PanelWindowResizer is used by ToplevelWindowEventFilter to handle dragging, | 22 // PanelWindowResizer is used by ToplevelWindowEventFilter to handle dragging, |
23 // moving or resizing panel window. These can be attached and detached from the | 23 // moving or resizing panel window. These can be attached and detached from the |
24 // launcher. | 24 // launcher. |
25 class ASH_WM_COMMON_EXPORT PanelWindowResizer : public WindowResizer { | 25 class ASH_EXPORT PanelWindowResizer : public WindowResizer { |
26 public: | 26 public: |
27 ~PanelWindowResizer() override; | 27 ~PanelWindowResizer() override; |
28 | 28 |
29 // Creates a new PanelWindowResizer. The caller takes ownership of the | 29 // Creates a new PanelWindowResizer. The caller takes ownership of the |
30 // returned object. The ownership of |next_window_resizer| is taken by the | 30 // returned object. The ownership of |next_window_resizer| is taken by the |
31 // returned object. Returns NULL if not resizable. | 31 // returned object. Returns NULL if not resizable. |
32 static PanelWindowResizer* Create(WindowResizer* next_window_resizer, | 32 static PanelWindowResizer* Create(WindowResizer* next_window_resizer, |
33 wm::WindowState* window_state); | 33 wm::WindowState* window_state); |
34 | 34 |
35 // WindowResizer: | 35 // WindowResizer: |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 const bool was_attached_; | 78 const bool was_attached_; |
79 | 79 |
80 base::WeakPtrFactory<PanelWindowResizer> weak_ptr_factory_; | 80 base::WeakPtrFactory<PanelWindowResizer> weak_ptr_factory_; |
81 | 81 |
82 DISALLOW_COPY_AND_ASSIGN(PanelWindowResizer); | 82 DISALLOW_COPY_AND_ASSIGN(PanelWindowResizer); |
83 }; | 83 }; |
84 | 84 |
85 } // namespace ash | 85 } // namespace ash |
86 | 86 |
87 #endif // ASH_WM_COMMON_PANELS_PANEL_WINDOW_RESIZER_H_ | 87 #endif // ASH_WM_COMMON_PANELS_PANEL_WINDOW_RESIZER_H_ |
OLD | NEW |