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

Unified Diff: ash/magnifier/magnification_controller.cc

Issue 2738133003: Promotes a handful of members 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/default_wallpaper_delegate.cc ('k') | ash/mus/context_menu_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/magnifier/magnification_controller.cc
diff --git a/ash/magnifier/magnification_controller.cc b/ash/magnifier/magnification_controller.cc
index 78c2cabdf8d41bd74e01c4ee1a611e4e8c30fc97..a26f7d2aa83d2b225a2b52e4a20f4026f91c49ce 100644
--- a/ash/magnifier/magnification_controller.cc
+++ b/ash/magnifier/magnification_controller.cc
@@ -10,7 +10,6 @@
#include "ash/common/accelerators/accelerator_controller.h"
#include "ash/common/accessibility_delegate.h"
#include "ash/common/system/tray/system_tray_delegate.h"
-#include "ash/common/wm_shell.h"
#include "ash/display/root_window_transformers.h"
#include "ash/host/ash_window_tree_host.h"
#include "ash/host/root_window_transformer.h"
@@ -566,7 +565,8 @@ void MagnificationControllerImpl::SetScale(float scale, bool animate) {
return;
ValidateScale(&scale);
- WmShell::Get()->accessibility_delegate()->SaveScreenMagnifierScale(scale);
+ Shell::GetInstance()->accessibility_delegate()->SaveScreenMagnifierScale(
+ scale);
RedrawKeepingMousePosition(scale, animate);
}
@@ -597,9 +597,9 @@ void MagnificationControllerImpl::SetEnabled(bool enabled) {
if (!is_enabled_ && input_method)
input_method->AddObserver(this);
- WmShell* wm_shell = WmShell::Get();
+ Shell* shell = Shell::GetInstance();
float scale =
- wm_shell->accessibility_delegate()->GetSavedScreenMagnifierScale();
+ shell->accessibility_delegate()->GetSavedScreenMagnifierScale();
if (scale <= 0.0f)
scale = kInitialMagnifiedScale;
ValidateScale(&scale);
@@ -610,7 +610,7 @@ void MagnificationControllerImpl::SetEnabled(bool enabled) {
is_enabled_ = enabled;
RedrawKeepingMousePosition(scale, true);
- wm_shell->accessibility_delegate()->SaveScreenMagnifierScale(scale);
+ shell->accessibility_delegate()->SaveScreenMagnifierScale(scale);
} else {
// Do nothing, if already disabled.
if (!is_enabled_)
« no previous file with comments | « ash/default_wallpaper_delegate.cc ('k') | ash/mus/context_menu_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698