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

Unified Diff: ash/wm/window_util.cc

Issue 2787363002: Moves couple of WmShell methods to standalone functions (Closed)
Patch Set: feedback and fix applist 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
« no previous file with comments | « ash/wm/window_util.h ('k') | chrome/browser/chromeos/arc/boot_phase_monitor/arc_instance_throttle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_util.cc
diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc
index 6741eb71efd85ecc2464106c5ee5fad32b69ff23..645cadffc92f62a56e29a20ecd6654e345c82e80 100644
--- a/ash/wm/window_util.cc
+++ b/ash/wm/window_util.cc
@@ -18,6 +18,8 @@
#include "ash/wm/window_properties.h"
#include "ash/wm/window_state_aura.h"
#include "ui/aura/client/aura_constants.h"
+#include "ui/aura/client/capture_client.h"
+#include "ui/aura/client/focus_client.h"
#include "ui/aura/window.h"
#include "ui/aura/window_delegate.h"
#include "ui/aura/window_event_dispatcher.h"
@@ -75,6 +77,15 @@ bool CanActivateWindow(aura::Window* window) {
return ::wm::CanActivateWindow(window);
}
+aura::Window* GetFocusedWindow() {
+ return aura::client::GetFocusClient(Shell::GetPrimaryRootWindow())
+ ->GetFocusedWindow();
+}
+
+aura::Window* GetCaptureWindow() {
+ return aura::client::GetCaptureWindow(Shell::GetPrimaryRootWindow());
+}
+
bool IsWindowUserPositionable(aura::Window* window) {
return GetWindowState(window)->IsUserPositionable();
}
« no previous file with comments | « ash/wm/window_util.h ('k') | chrome/browser/chromeos/arc/boot_phase_monitor/arc_instance_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698