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_DRAG_WINDOW_RESIZER_H_ | 5 #ifndef ASH_WM_DRAG_WINDOW_RESIZER_H_ |
6 #define ASH_WM_DRAG_WINDOW_RESIZER_H_ | 6 #define ASH_WM_DRAG_WINDOW_RESIZER_H_ |
7 | 7 |
8 #include "ash/wm/window_resizer.h" | 8 #include "ash/wm/window_resizer.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "ui/gfx/point.h" | 12 #include "ui/gfx/point.h" |
13 | 13 |
14 namespace ash { | 14 namespace ash { |
15 namespace internal { | |
16 | 15 |
17 class DragWindowController; | 16 class DragWindowController; |
18 | 17 |
19 // DragWindowResizer is a decorator of WindowResizer and adds the ability to | 18 // DragWindowResizer is a decorator of WindowResizer and adds the ability to |
20 // drag windows across displays. | 19 // drag windows across displays. |
21 class ASH_EXPORT DragWindowResizer : public WindowResizer { | 20 class ASH_EXPORT DragWindowResizer : public WindowResizer { |
22 public: | 21 public: |
23 virtual ~DragWindowResizer(); | 22 virtual ~DragWindowResizer(); |
24 | 23 |
25 // Creates a new DragWindowResizer. The caller takes ownership of the | 24 // Creates a new DragWindowResizer. The caller takes ownership of the |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 gfx::Point last_mouse_location_; | 56 gfx::Point last_mouse_location_; |
58 | 57 |
59 // Current instance for use by the DragWindowResizerTest. | 58 // Current instance for use by the DragWindowResizerTest. |
60 static DragWindowResizer* instance_; | 59 static DragWindowResizer* instance_; |
61 | 60 |
62 base::WeakPtrFactory<DragWindowResizer> weak_ptr_factory_; | 61 base::WeakPtrFactory<DragWindowResizer> weak_ptr_factory_; |
63 | 62 |
64 DISALLOW_COPY_AND_ASSIGN(DragWindowResizer); | 63 DISALLOW_COPY_AND_ASSIGN(DragWindowResizer); |
65 }; | 64 }; |
66 | 65 |
67 } // namespace internal | |
68 } // namespace ash | 66 } // namespace ash |
69 | 67 |
70 #endif // ASH_WM_DRAG_WINDOW_RESIZER_H_ | 68 #endif // ASH_WM_DRAG_WINDOW_RESIZER_H_ |
OLD | NEW |