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

Unified Diff: chrome/browser/chromeos/accessibility/magnification_manager.cc

Issue 682943002: Make chrome/browser/chromeos/accessibility compile on Athena with use_ash=0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@athena_do_not_use_ash41_scroll_end_effect
Patch Set: Created 6 years, 2 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
Index: chrome/browser/chromeos/accessibility/magnification_manager.cc
diff --git a/chrome/browser/chromeos/accessibility/magnification_manager.cc b/chrome/browser/chromeos/accessibility/magnification_manager.cc
index 801d021d1a3f09eb30a7e6beb9772f0c9fabe5f7..e1231b9bab1a1c19d90460fa383b8d10b5acd4d9 100644
--- a/chrome/browser/chromeos/accessibility/magnification_manager.cc
+++ b/chrome/browser/chromeos/accessibility/magnification_manager.cc
@@ -46,7 +46,7 @@ class MagnificationManagerImpl : public MagnificationManager,
magnifier_type_pref_handler_(prefs::kAccessibilityScreenMagnifierType),
magnifier_scale_pref_handler_(
prefs::kAccessibilityScreenMagnifierScale),
- type_(ash::kDefaultMagnifierType),
+ type_(ui::kDefaultMagnifierType),
enabled_(false) {
registrar_.Add(this,
chrome::NOTIFICATION_LOGIN_OR_LOCK_WEBUI_VISIBLE,
@@ -68,7 +68,7 @@ class MagnificationManagerImpl : public MagnificationManager,
return enabled_;
}
- virtual ash::MagnifierType GetMagnifierType() const override {
+ virtual ui::MagnifierType GetMagnifierType() const override {
return type_;
}
@@ -81,7 +81,7 @@ class MagnificationManagerImpl : public MagnificationManager,
prefs->CommitPendingWrite();
}
- virtual void SetMagnifierType(ash::MagnifierType type) override {
+ virtual void SetMagnifierType(ui::MagnifierType type) override {
if (!profile_)
return;
@@ -152,7 +152,7 @@ class MagnificationManagerImpl : public MagnificationManager,
enabled_ = enabled;
- if (type_ == ash::MAGNIFIER_FULL) {
+ if (type_ == ui::MAGNIFIER_FULL) {
ash::Shell::GetInstance()->magnification_controller()->SetEnabled(
enabled_);
} else {
@@ -161,11 +161,11 @@ class MagnificationManagerImpl : public MagnificationManager,
}
}
- virtual void SetMagnifierTypeInternal(ash::MagnifierType type) {
+ virtual void SetMagnifierTypeInternal(ui::MagnifierType type) {
if (type_ == type)
return;
- type_ = ash::MAGNIFIER_FULL; // (leave out for full magnifier)
+ type_ = ui::MAGNIFIER_FULL; // (leave out for full magnifier)
}
void UpdateMagnifierFromPrefs() {
@@ -177,9 +177,9 @@ class MagnificationManagerImpl : public MagnificationManager,
const int type_integer = profile_->GetPrefs()->GetInteger(
prefs::kAccessibilityScreenMagnifierType);
- ash::MagnifierType type = ash::kDefaultMagnifierType;
- if (type_integer > 0 && type_integer <= ash::kMaxMagnifierType) {
- type = static_cast<ash::MagnifierType>(type_integer);
+ ui::MagnifierType type = ui::kDefaultMagnifierType;
+ if (type_integer > 0 && type_integer <= ui::kMaxMagnifierType) {
+ type = static_cast<ui::MagnifierType>(type_integer);
} else if (type_integer == 0) {
// Type 0 is used to disable the screen magnifier through policy. As the
// magnifier type is irrelevant in this case, it is OK to just fall back
@@ -200,7 +200,7 @@ class MagnificationManagerImpl : public MagnificationManager,
ACCESSIBILITY_TOGGLE_SCREEN_MAGNIFIER,
enabled_,
type_,
- ash::A11Y_NOTIFICATION_NONE);
+ ui::A11Y_NOTIFICATION_NONE);
#if defined(OS_CHROMEOS)
if (AccessibilityManager::Get()) {
@@ -251,7 +251,7 @@ class MagnificationManagerImpl : public MagnificationManager,
AccessibilityManager::PrefHandler magnifier_type_pref_handler_;
AccessibilityManager::PrefHandler magnifier_scale_pref_handler_;
- ash::MagnifierType type_;
+ ui::MagnifierType type_;
bool enabled_;
content::NotificationRegistrar registrar_;

Powered by Google App Engine
This is Rietveld 408576698