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

Unified Diff: ash/wm/dock/docked_window_resizer.h

Issue 1800793003: Check if the resizer has been deleted during drag start. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: ash/wm/dock/docked_window_resizer.h
diff --git a/ash/wm/dock/docked_window_resizer.h b/ash/wm/dock/docked_window_resizer.h
index 4d5dbde0bcf4f3873788df58349d04867ebaa2f4..ad0e02bf1b04797c6ebcd9999f055b0466124c3e 100644
--- a/ash/wm/dock/docked_window_resizer.h
+++ b/ash/wm/dock/docked_window_resizer.h
@@ -54,7 +54,9 @@ class ASH_EXPORT DockedWindowResizer : public WindowResizer {
// Tracks the window's initial position and attachment at the start of a drag
// and informs the DockLayoutManager that a drag has started if necessary.
- void StartedDragging();
+ // |resizer| can be used to check if the resizer has been deleted during
+ // StartedDragging.
+ void StartedDragging(base::WeakPtr<DockedWindowResizer>& resizer);
// Informs the DockLayoutManager that the drag is complete if it was informed
// of the drag start. |move_result| specifies if the drag was completed or
« no previous file with comments | « no previous file | ash/wm/dock/docked_window_resizer.cc » ('j') | ash/wm/toplevel_window_event_handler_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698