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

Unified Diff: ash/wm/window_util.h

Issue 2787363002: Moves couple of WmShell methods to standalone functions (Closed)
Patch Set: merge Created 3 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/window_util.h
diff --git a/ash/wm/window_util.h b/ash/wm/window_util.h
index 7def41561f269eaf5b24986418da9785d9852013..380cc90d1cb4a31ea3cfaeef4b616fab10cc2933 100644
--- a/ash/wm/window_util.h
+++ b/ash/wm/window_util.h
@@ -29,6 +29,7 @@ ASH_EXPORT void DeactivateWindow(aura::Window* window);
ASH_EXPORT bool IsActiveWindow(aura::Window* window);
ASH_EXPORT aura::Window* GetActiveWindow();
ASH_EXPORT bool CanActivateWindow(aura::Window* window);
+ASH_EXPORT aura::Window* GetFocusedWindow();
// Retrieves the activatable window for |window|. If |window| is activatable,
// this will just return it, otherwise it will climb the parent/transient parent
@@ -37,6 +38,8 @@ ASH_EXPORT bool CanActivateWindow(aura::Window* window);
// this is probably what you're looking for.
ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window);
+ASH_EXPORT aura::Window* GetCaptureWindow();
James Cook 2017/03/31 19:29:52 nit: Can you write a comment for this?
sky 2017/03/31 20:15:14 I kind of figured it was obvious (similar to lack
+
// Returns true if |window|'s location can be controlled by the user.
ASH_EXPORT bool IsWindowUserPositionable(aura::Window* window);

Powered by Google App Engine
This is Rietveld 408576698