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

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

Issue 2761373002: Move yet 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 36aa5bf310a4776643e1c33ebee0d5b7ee94767b..926149fe8c8e414a9fe4d2a4d680dabaf54fce40 100644
--- a/ash/common/accelerators/accelerator_controller.cc
+++ b/ash/common/accelerators/accelerator_controller.cc
@@ -85,7 +85,7 @@ class DeprecatedAcceleratorNotificationDelegate
bool HasClickedListener() override { return true; }
void Click() override {
- if (!WmShell::Get()->session_controller()->IsUserSessionBlocked())
+ if (!Shell::Get()->session_controller()->IsUserSessionBlocked())
Shell::Get()->shell_delegate()->OpenKeyboardShortcutHelpPage();
}
@@ -499,12 +499,12 @@ void HandleGetHelp() {
}
bool CanHandleLock() {
- return WmShell::Get()->session_controller()->CanLockScreen();
+ return Shell::Get()->session_controller()->CanLockScreen();
}
void HandleLock() {
base::RecordAction(UserMetricsAction("Accel_LockScreen_L"));
- WmShell::Get()->session_controller()->LockScreen();
+ Shell::Get()->session_controller()->LockScreen();
}
void HandleShowStylusTools() {
@@ -531,7 +531,7 @@ void HandleSuspend() {
bool CanHandleCycleUser() {
return Shell::Get()->shell_delegate()->IsMultiProfilesEnabled() &&
- WmShell::Get()->session_controller()->NumberOfLoggedInUsers() > 1;
+ Shell::Get()->session_controller()->NumberOfLoggedInUsers() > 1;
}
void HandleCycleUser(CycleUserDirection direction) {
@@ -545,7 +545,7 @@ void HandleCycleUser(CycleUserDirection direction) {
base::RecordAction(UserMetricsAction("Accel_Switch_To_Previous_User"));
break;
}
- WmShell::Get()->session_controller()->CycleActiveUser(direction);
+ Shell::Get()->session_controller()->CycleActiveUser(direction);
}
bool CanHandleToggleCapsLock(const ui::Accelerator& accelerator,
@@ -1225,12 +1225,12 @@ AcceleratorController::GetAcceleratorProcessingRestriction(int action) {
actions_allowed_in_pinned_mode_.end()) {
return RESTRICTION_PREVENT_PROCESSING_AND_PROPAGATION;
}
- if (!wm_shell->session_controller()->IsActiveUserSessionStarted() &&
+ if (!Shell::Get()->session_controller()->IsActiveUserSessionStarted() &&
actions_allowed_at_login_screen_.find(action) ==
actions_allowed_at_login_screen_.end()) {
return RESTRICTION_PREVENT_PROCESSING;
}
- if (wm_shell->session_controller()->IsScreenLocked() &&
+ if (Shell::Get()->session_controller()->IsScreenLocked() &&
actions_allowed_at_lock_screen_.find(action) ==
actions_allowed_at_lock_screen_.end()) {
return RESTRICTION_PREVENT_PROCESSING;
« 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