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

Unified Diff: ash/common/accelerators/debug_commands.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/common/accelerators/accelerator_controller.cc ('k') | ash/common/focus_cycler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/accelerators/debug_commands.cc
diff --git a/ash/common/accelerators/debug_commands.cc b/ash/common/accelerators/debug_commands.cc
index fda6a1ed45b78675fc1555bbd6cd4bf6095141ca..b4269f23b5fa8cf2ed41a594891f3c2c1ad23b8c 100644
--- a/ash/common/accelerators/debug_commands.cc
+++ b/ash/common/accelerators/debug_commands.cc
@@ -17,6 +17,7 @@
#include "ash/root_window_controller.h"
#include "ash/shell.h"
#include "ash/wm/window_properties.h"
+#include "ash/wm/window_util.h"
#include "base/command_line.h"
#include "base/metrics/user_metrics.h"
#include "base/metrics/user_metrics_action.h"
@@ -43,7 +44,7 @@ void HandlePrintLayerHierarchy() {
}
void HandlePrintViewHierarchy() {
- WmWindow* active_window = WmShell::Get()->GetActiveWindow();
+ WmWindow* active_window = WmWindow::Get(wm::GetActiveWindow());
if (!active_window)
return;
views::Widget* widget = active_window->GetInternalWidget();
@@ -76,7 +77,7 @@ void PrintWindowHierarchy(const WmWindow* active_window,
}
void HandlePrintWindowHierarchy() {
- WmWindow* active_window = WmShell::Get()->GetActiveWindow();
+ WmWindow* active_window = WmWindow::Get(wm::GetActiveWindow());
WmWindow::Windows roots = WmShell::Get()->GetAllRootWindows();
for (size_t i = 0; i < roots.size(); ++i) {
std::ostringstream out;
« no previous file with comments | « ash/common/accelerators/accelerator_controller.cc ('k') | ash/common/focus_cycler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698