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

Unified Diff: ash/wm/common/wm_toplevel_window_event_handler.h

Issue 2002243002: Gets mash to use WmToplevelWindowEventHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 years, 7 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
« no previous file with comments | « no previous file | mash/wm/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/common/wm_toplevel_window_event_handler.h
diff --git a/ash/wm/common/wm_toplevel_window_event_handler.h b/ash/wm/common/wm_toplevel_window_event_handler.h
index 832cc7742738f3a202f7f6a335230b2b165a076a..fb2626c576c40a762aa365ed2e0eaf4ef327456c 100644
--- a/ash/wm/common/wm_toplevel_window_event_handler.h
+++ b/ash/wm/common/wm_toplevel_window_event_handler.h
@@ -68,6 +68,9 @@ class ASH_WM_COMMON_EXPORT WmToplevelWindowEventHandler
// If there is a drag in progress it is reverted, otherwise does nothing.
void RevertDrag();
+ // Returns true if there is a drag in progress.
+ bool is_drag_in_progress() const { return window_resizer_.get() != nullptr; }
+
private:
class ScopedWindowResizer;
« no previous file with comments | « no previous file | mash/wm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698