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

Unified Diff: chrome/browser/ui/ash/chrome_shell_delegate.cc

Issue 11821053: Revert 176087 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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/ui/ash/chrome_shell_delegate.cc
===================================================================
--- chrome/browser/ui/ash/chrome_shell_delegate.cc (revision 176100)
+++ chrome/browser/ui/ash/chrome_shell_delegate.cc (working copy)
@@ -355,38 +355,22 @@
#endif
}
-bool ChromeShellDelegate::IsMagnifierEnabled() const {
-#if defined(OS_CHROMEOS)
- DCHECK(chromeos::MagnificationManager::Get());
- return chromeos::MagnificationManager::Get()->IsMagnifierEnabled();
-#else
- return false;
-#endif
-}
-
ash::MagnifierType ChromeShellDelegate::GetMagnifierType() const {
#if defined(OS_CHROMEOS)
DCHECK(chromeos::MagnificationManager::Get());
return chromeos::MagnificationManager::Get()->GetMagnifierType();
#else
- return ash::kDefaultMagnifierType;
+ return ash::MAGNIFIER_OFF;
#endif
}
-void ChromeShellDelegate::SetMagnifierEnabled(bool enabled) {
+void ChromeShellDelegate::SetMagnifier(ash::MagnifierType type) {
#if defined(OS_CHROMEOS)
DCHECK(chromeos::MagnificationManager::Get());
- return chromeos::MagnificationManager::Get()->SetMagnifierEnabled(enabled);
+ return chromeos::MagnificationManager::Get()->SetMagnifier(type);
#endif
}
-void ChromeShellDelegate::SetMagnifierType(ash::MagnifierType type) {
-#if defined(OS_CHROMEOS)
- DCHECK(chromeos::MagnificationManager::Get());
- return chromeos::MagnificationManager::Get()->SetMagnifierType(type);
-#endif
-}
-
bool ChromeShellDelegate::ShouldAlwaysShowAccessibilityMenu() const {
#if defined(OS_CHROMEOS)
if (!IsUserLoggedIn())
« no previous file with comments | « chrome/browser/ui/ash/chrome_shell_delegate.h ('k') | chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698