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

Unified Diff: ash/common/accelerators/accelerator_controller.cc

Issue 2761063002: Move more from WmShell to Shell (Closed)
Patch Set: merge 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.cc ('k') | ash/common/mojo_interface_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/accelerators/accelerator_controller.cc
diff --git a/ash/common/accelerators/accelerator_controller.cc b/ash/common/accelerators/accelerator_controller.cc
index 0e8cb95e5b82a79a9c3f3827f3df42ce99bb5917..7414376711b54dfdea8819259c50fff7143f37c9 100644
--- a/ash/common/accelerators/accelerator_controller.cc
+++ b/ash/common/accelerators/accelerator_controller.cc
@@ -199,14 +199,14 @@ void HandleRotatePaneFocus(FocusCycler::Direction direction) {
break;
}
}
- WmShell::Get()->focus_cycler()->RotateFocus(direction);
+ Shell::Get()->focus_cycler()->RotateFocus(direction);
}
void HandleFocusShelf() {
base::RecordAction(UserMetricsAction("Accel_Focus_Shelf"));
// TODO(jamescook): Should this be GetWmRootWindowForNewWindows()?
WmShelf* shelf = WmShelf::ForWindow(WmShell::Get()->GetPrimaryRootWindow());
- WmShell::Get()->focus_cycler()->FocusWidget(shelf->shelf_widget());
+ Shell::Get()->focus_cycler()->FocusWidget(shelf->shelf_widget());
}
void HandleLaunchAppN(int n) {
@@ -997,14 +997,14 @@ void AcceleratorController::PerformAction(AcceleratorAction action,
switch (action) {
case BRIGHTNESS_DOWN: {
BrightnessControlDelegate* delegate =
- WmShell::Get()->brightness_control_delegate();
+ Shell::Get()->brightness_control_delegate();
if (delegate)
delegate->HandleBrightnessDown(accelerator);
break;
}
case BRIGHTNESS_UP: {
BrightnessControlDelegate* delegate =
- WmShell::Get()->brightness_control_delegate();
+ Shell::Get()->brightness_control_delegate();
if (delegate)
delegate->HandleBrightnessUp(accelerator);
break;
@@ -1044,14 +1044,14 @@ void AcceleratorController::PerformAction(AcceleratorAction action,
break;
case KEYBOARD_BRIGHTNESS_DOWN: {
KeyboardBrightnessControlDelegate* delegate =
- WmShell::Get()->keyboard_brightness_control_delegate();
+ Shell::Get()->keyboard_brightness_control_delegate();
if (delegate)
delegate->HandleKeyboardBrightnessDown(accelerator);
break;
}
case KEYBOARD_BRIGHTNESS_UP: {
KeyboardBrightnessControlDelegate* delegate =
- WmShell::Get()->keyboard_brightness_control_delegate();
+ Shell::Get()->keyboard_brightness_control_delegate();
if (delegate)
delegate->HandleKeyboardBrightnessUp(accelerator);
break;
« no previous file with comments | « ash/aura/wm_shell_aura.cc ('k') | ash/common/mojo_interface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698