Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: ui/aura/client/window_move_client.h

Issue 10828133: Desktop Aura: Allow tab drags out of window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to tot Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_AURA_CLIENT_WINDOW_MOVE_CLIENT_H_ 5 #ifndef UI_AURA_CLIENT_WINDOW_MOVE_CLIENT_H_
6 #define UI_AURA_CLIENT_WINDOW_MOVE_CLIENT_H_ 6 #define UI_AURA_CLIENT_WINDOW_MOVE_CLIENT_H_
7 7
8 #include "ui/aura/aura_export.h" 8 #include "ui/aura/aura_export.h"
9 9
10 namespace gfx {
11 class Point;
12 }
13
10 namespace aura { 14 namespace aura {
11 class Window; 15 class Window;
12 namespace client { 16 namespace client {
13 17
14 // An interface implemented by an object that manages programatically keyed 18 // An interface implemented by an object that manages programatically keyed
15 // window moving. 19 // window moving.
16 class AURA_EXPORT WindowMoveClient { 20 class AURA_EXPORT WindowMoveClient {
17 public: 21 public:
18 // Starts a nested message loop for moving the window. 22 // Starts a nested message loop for moving the window. |drag_offset| is the
19 virtual void RunMoveLoop(Window* window) = 0; 23 // offset from the window origin to the cursor when the window was detached.
sky 2012/08/16 20:11:20 'the window was detached' -> when the drag started
24 virtual void RunMoveLoop(Window* window, const gfx::Point& drag_offset) = 0;
20 25
21 // Ends a previously started move loop. 26 // Ends a previously started move loop.
22 virtual void EndMoveLoop() = 0; 27 virtual void EndMoveLoop() = 0;
23 28
24 protected: 29 protected:
25 virtual ~WindowMoveClient() {} 30 virtual ~WindowMoveClient() {}
26 }; 31 };
27 32
28 // Sets/Gets the activation client for the specified window. 33 // Sets/Gets the activation client for the specified window.
29 AURA_EXPORT void SetWindowMoveClient(Window* window, 34 AURA_EXPORT void SetWindowMoveClient(Window* window,
30 WindowMoveClient* client); 35 WindowMoveClient* client);
31 AURA_EXPORT WindowMoveClient* GetWindowMoveClient(Window* window); 36 AURA_EXPORT WindowMoveClient* GetWindowMoveClient(Window* window);
32 37
33 } // namespace client 38 } // namespace client
34 } // namespace aura 39 } // namespace aura
35 40
36 #endif // UI_AURA_CLIENT_WINDOW_MOVE_CLIENT_H_ 41 #endif // UI_AURA_CLIENT_WINDOW_MOVE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698