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 UI_WM_PUBLIC_WINDOW_MOVE_CLIENT_H_ | 5 #ifndef UI_WM_PUBLIC_WINDOW_MOVE_CLIENT_H_ |
6 #define UI_WM_PUBLIC_WINDOW_MOVE_CLIENT_H_ | 6 #define UI_WM_PUBLIC_WINDOW_MOVE_CLIENT_H_ |
7 | 7 |
8 #include "ui/aura/aura_export.h" | 8 #include "ui/aura/aura_export.h" |
9 #include "ui/gfx/geometry/vector2d.h" | 9 #include "ui/gfx/geometry/vector2d.h" |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... | |
34 // offset from the window origin to the cursor when the drag was started. | 34 // offset from the window origin to the cursor when the drag was started. |
35 // Returns MOVE_SUCCESSFUL if the move has completed successfully, or | 35 // Returns MOVE_SUCCESSFUL if the move has completed successfully, or |
36 // MOVE_CANCELED otherwise. | 36 // MOVE_CANCELED otherwise. |
37 virtual WindowMoveResult RunMoveLoop(Window* window, | 37 virtual WindowMoveResult RunMoveLoop(Window* window, |
38 const gfx::Vector2d& drag_offset, | 38 const gfx::Vector2d& drag_offset, |
39 WindowMoveSource source) = 0; | 39 WindowMoveSource source) = 0; |
40 | 40 |
41 // Ends a previously started move loop. | 41 // Ends a previously started move loop. |
42 virtual void EndMoveLoop() = 0; | 42 virtual void EndMoveLoop() = 0; |
43 | 43 |
44 protected: | |
Tom (Use chromium acct)
2016/10/12 00:55:19
I needed to do this because DesktopWindowTreeHostX
| |
45 virtual ~WindowMoveClient() {} | 44 virtual ~WindowMoveClient() {} |
46 }; | 45 }; |
47 | 46 |
48 // Sets/Gets the activation client for the specified window. | 47 // Sets/Gets the activation client for the specified window. |
49 AURA_EXPORT void SetWindowMoveClient(Window* window, | 48 AURA_EXPORT void SetWindowMoveClient(Window* window, |
50 WindowMoveClient* client); | 49 WindowMoveClient* client); |
51 AURA_EXPORT WindowMoveClient* GetWindowMoveClient(Window* window); | 50 AURA_EXPORT WindowMoveClient* GetWindowMoveClient(Window* window); |
52 | 51 |
53 } // namespace client | 52 } // namespace client |
54 } // namespace aura | 53 } // namespace aura |
55 | 54 |
56 #endif // UI_WM_PUBLIC_WINDOW_MOVE_CLIENT_H_ | 55 #endif // UI_WM_PUBLIC_WINDOW_MOVE_CLIENT_H_ |
OLD | NEW |