| 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" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 public: | 21 public: |
| 22 virtual ~DragWindowResizer(); | 22 virtual ~DragWindowResizer(); |
| 23 | 23 |
| 24 // Creates a new DragWindowResizer. The caller takes ownership of the | 24 // Creates a new DragWindowResizer. The caller takes ownership of the |
| 25 // returned object. The ownership of |next_window_resizer| is taken by the | 25 // returned object. The ownership of |next_window_resizer| is taken by the |
| 26 // returned object. Returns NULL if not resizable. | 26 // returned object. Returns NULL if not resizable. |
| 27 static DragWindowResizer* Create(WindowResizer* next_window_resizer, | 27 static DragWindowResizer* Create(WindowResizer* next_window_resizer, |
| 28 wm::WindowState* window_state); | 28 wm::WindowState* window_state); |
| 29 | 29 |
| 30 // WindowResizer: | 30 // WindowResizer: |
| 31 virtual void Drag(const gfx::Point& location, int event_flags) OVERRIDE; | 31 virtual void Drag(const gfx::Point& location, int event_flags) override; |
| 32 virtual void CompleteDrag() OVERRIDE; | 32 virtual void CompleteDrag() override; |
| 33 virtual void RevertDrag() OVERRIDE; | 33 virtual void RevertDrag() override; |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 FRIEND_TEST_ALL_PREFIXES(DragWindowResizerTest, DragWindowController); | 36 FRIEND_TEST_ALL_PREFIXES(DragWindowResizerTest, DragWindowController); |
| 37 | 37 |
| 38 // Creates DragWindowResizer that adds the ability of dragging windows across | 38 // Creates DragWindowResizer that adds the ability of dragging windows across |
| 39 // displays to |next_window_resizer|. This object takes the ownership of | 39 // displays to |next_window_resizer|. This object takes the ownership of |
| 40 // |next_window_resizer|. | 40 // |next_window_resizer|. |
| 41 explicit DragWindowResizer(WindowResizer* next_window_resizer, | 41 explicit DragWindowResizer(WindowResizer* next_window_resizer, |
| 42 wm::WindowState* window_state); | 42 wm::WindowState* window_state); |
| 43 | 43 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 59 static DragWindowResizer* instance_; | 59 static DragWindowResizer* instance_; |
| 60 | 60 |
| 61 base::WeakPtrFactory<DragWindowResizer> weak_ptr_factory_; | 61 base::WeakPtrFactory<DragWindowResizer> weak_ptr_factory_; |
| 62 | 62 |
| 63 DISALLOW_COPY_AND_ASSIGN(DragWindowResizer); | 63 DISALLOW_COPY_AND_ASSIGN(DragWindowResizer); |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace ash | 66 } // namespace ash |
| 67 | 67 |
| 68 #endif // ASH_WM_DRAG_WINDOW_RESIZER_H_ | 68 #endif // ASH_WM_DRAG_WINDOW_RESIZER_H_ |
| OLD | NEW |