Index: ash/wm/toplevel_window_event_handler.h |
diff --git a/ash/wm/toplevel_window_event_handler.h b/ash/wm/toplevel_window_event_handler.h |
index 5d9caf88526c53c16ecebb03205b9dc623e38c32..5bef16e962910646e00ab92be61fa058b3f0e0ec 100644 |
--- a/ash/wm/toplevel_window_event_handler.h |
+++ b/ash/wm/toplevel_window_event_handler.h |
@@ -58,7 +58,12 @@ class ASH_EXPORT ToplevelWindowEventHandler |
enum DragCompletionStatus { |
DRAG_COMPLETE, |
- DRAG_REVERT |
+ DRAG_REVERT, |
+ |
+ // To be used when WindowResizer::GetTarget() is destroyed. Neither |
+ // completes nor reverts the drag because both access the WindowResizer's |
+ // window. |
+ DRAG_RESIZER_WINDOW_DESTROYED |
}; |
// Attempts to start a drag if one is not already in progress. Returns true if |
@@ -68,8 +73,9 @@ class ASH_EXPORT ToplevelWindowEventHandler |
int window_component, |
aura::client::WindowMoveSource source); |
- // Finishes the drag. |
- void CompleteDrag(DragCompletionStatus status); |
+ // Completes the drag if one is in progress. Returns true if the drag was |
+ // completed. |
varkha
2014/07/08 14:48:37
nit: s/"completed"/"completed or reverted" since i
|
+ bool CompleteDrag(DragCompletionStatus status); |
void HandleMousePressed(aura::Window* target, ui::MouseEvent* event); |
void HandleMouseReleased(aura::Window* target, ui::MouseEvent* event); |