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

Unified Diff: ui/aura/client/window_move_client.h

Issue 10909043: Cancel drag if display configuration changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix, adjust test screen size Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: ui/aura/client/window_move_client.h
diff --git a/ui/aura/client/window_move_client.h b/ui/aura/client/window_move_client.h
index 048e572b747ea273c21637c2839652f1f4d6de33..2d2a8cb167c8642ea4be2c07e33c6603bdcc3221 100644
--- a/ui/aura/client/window_move_client.h
+++ b/ui/aura/client/window_move_client.h
@@ -15,13 +15,21 @@ namespace aura {
class Window;
namespace client {
+enum WindowMoveResult {
+ MOVE_SUCCESSFUL, // Moving window was successful.
+ MOVE_CANCELED // Moving window was canceled.
+};
+
// An interface implemented by an object that manages programatically keyed
// window moving.
class AURA_EXPORT WindowMoveClient {
public:
// Starts a nested message loop for moving the window. |drag_offset| is the
// offset from the window origin to the cursor when the drag was started.
- virtual void RunMoveLoop(Window* window, const gfx::Point& drag_offset) = 0;
+ // Returns MOVE_SUCCESSFUL if the move has completed successfully, or
+ // MOVE_CANCELED otherwise.
+ virtual WindowMoveResult RunMoveLoop(Window* window,
+ const gfx::Point& drag_offset) = 0;
// Ends a previously started move loop.
virtual void EndMoveLoop() = 0;

Powered by Google App Engine
This is Rietveld 408576698