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

Unified Diff: ash/mus/accelerators/accelerator_controller_registrar.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/wm_shell.h ('k') | ash/mus/bridge/wm_shell_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/accelerators/accelerator_controller_registrar.cc
diff --git a/ash/mus/accelerators/accelerator_controller_registrar.cc b/ash/mus/accelerators/accelerator_controller_registrar.cc
index 278d9742e4b5c509493fb685ed9b1241638d51ff..34ada8354bc6115684f312179f97ad83acb6dc48 100644
--- a/ash/mus/accelerators/accelerator_controller_registrar.cc
+++ b/ash/mus/accelerators/accelerator_controller_registrar.cc
@@ -9,11 +9,12 @@
#include "ash/common/accelerators/accelerator_controller.h"
#include "ash/common/accelerators/accelerator_router.h"
#include "ash/common/wm/window_cycle_controller.h"
-#include "ash/common/wm_shell.h"
+#include "ash/common/wm_window.h"
#include "ash/mus/accelerators/accelerator_ids.h"
#include "ash/mus/window_manager.h"
#include "ash/public/interfaces/event_properties.mojom.h"
#include "ash/shell.h"
+#include "ash/wm/window_util.h"
#include "base/logging.h"
#include "services/ui/common/accelerator_util.h"
#include "services/ui/public/cpp/property_type_converters.h"
@@ -91,7 +92,7 @@ ui::mojom::EventResult AcceleratorControllerRegistrar::OnAccelerator(
accelerator);
if (HandleWindowCycleAccelerator(accelerator))
return ui::mojom::EventResult::HANDLED;
- WmWindow* target_window = WmShell::Get()->GetFocusedWindow();
+ WmWindow* target_window = WmWindow::Get(wm::GetFocusedWindow());
if (!target_window)
target_window = Shell::GetWmRootWindowForNewWindows();
DCHECK(target_window);
« no previous file with comments | « ash/common/wm_shell.h ('k') | ash/mus/bridge/wm_shell_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698