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

Unified Diff: ash/aura/wm_shell_aura.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/aura/wm_shell_aura.h ('k') | ash/common/accelerators/accelerator_commands.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_shell_aura.cc
diff --git a/ash/aura/wm_shell_aura.cc b/ash/aura/wm_shell_aura.cc
index 60f0263827790778d82b1c6f95b8bd6c00cde002..ece50c26e2059bc037ac646b19bdae3a951e8687 100644
--- a/ash/aura/wm_shell_aura.cc
+++ b/ash/aura/wm_shell_aura.cc
@@ -35,8 +35,6 @@
#include "ash/wm/window_util.h"
#include "ash/wm/workspace/workspace_event_handler_aura.h"
#include "base/memory/ptr_util.h"
-#include "ui/aura/client/capture_client.h"
-#include "ui/aura/client/focus_client.h"
#include "ui/aura/env.h"
#include "ui/display/manager/display_manager.h"
@@ -79,23 +77,6 @@ Config WmShellAura::GetConfig() const {
return Config::CLASSIC;
}
-WmWindow* WmShellAura::GetFocusedWindow() {
- return WmWindow::Get(
- aura::client::GetFocusClient(Shell::GetPrimaryRootWindow())
- ->GetFocusedWindow());
-}
-
-WmWindow* WmShellAura::GetActiveWindow() {
- return WmWindow::Get(wm::GetActiveWindow());
-}
-
-WmWindow* WmShellAura::GetCaptureWindow() {
- // Ash shares capture client among all RootWindowControllers, so we need only
- // check the primary root.
- return WmWindow::Get(
- aura::client::GetCaptureWindow(Shell::GetPrimaryRootWindow()));
-}
-
WmWindow* WmShellAura::GetPrimaryRootWindow() {
return WmWindow::Get(
Shell::GetInstance()->window_tree_host_manager()->GetPrimaryRootWindow());
« no previous file with comments | « ash/aura/wm_shell_aura.h ('k') | ash/common/accelerators/accelerator_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698