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

Unified Diff: ash/mus/accelerators/accelerator_controller_registrar.cc

Issue 2886253002: mash: remove more shell/shelf WmWindow usage. (Closed)
Patch Set: Fix WmShelf::ForWindow. Created 3 years, 7 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/metrics/user_metrics_recorder.cc ('k') | ash/mus/bridge/shell_port_mash.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 16ba092cc0c72e3ec494fee56c885b276cc2fb11..6f0c197457fcecd7f455ed1eb961d1e051720e60 100644
--- a/ash/mus/accelerators/accelerator_controller_registrar.cc
+++ b/ash/mus/accelerators/accelerator_controller_registrar.cc
@@ -92,12 +92,12 @@ ui::mojom::EventResult AcceleratorControllerRegistrar::OnAccelerator(
accelerator);
if (HandleWindowCycleAccelerator(accelerator))
return ui::mojom::EventResult::HANDLED;
- WmWindow* target_window = WmWindow::Get(wm::GetFocusedWindow());
+ aura::Window* target_window = wm::GetFocusedWindow();
if (!target_window)
- target_window = Shell::GetWmRootWindowForNewWindows();
+ target_window = Shell::GetRootWindowForNewWindows();
DCHECK(target_window);
- if (router_->ProcessAccelerator(target_window, *(event.AsKeyEvent()),
- accelerator)) {
+ if (router_->ProcessAccelerator(WmWindow::Get(target_window),
+ *(event.AsKeyEvent()), accelerator)) {
return ui::mojom::EventResult::HANDLED;
}
if (accelerator_controller->IsActionForAcceleratorEnabled(accelerator)) {
« no previous file with comments | « ash/metrics/user_metrics_recorder.cc ('k') | ash/mus/bridge/shell_port_mash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698