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

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

Issue 11642014: Re-introduce the partial magnifier (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix (comment #4) 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/chromeos/accessibility/magnification_manager.h
diff --git a/chrome/browser/chromeos/accessibility/magnification_manager.h b/chrome/browser/chromeos/accessibility/magnification_manager.h
index 680b7fc8bbb21591942b4115be5c6a55763c3ed3..4952a0f25ef0e6b3280c164a8ed3419702458b54 100644
--- a/chrome/browser/chromeos/accessibility/magnification_manager.h
+++ b/chrome/browser/chromeos/accessibility/magnification_manager.h
@@ -29,15 +29,19 @@ class MagnificationManager {
// Returns the existing instance. If there is no instance, returns NULL.
static MagnificationManager* Get();
+ // Returns if the screen magnifier is enabled.
+ virtual bool IsMagnifierEnabled() const = 0;
Daniel Erat 2013/01/08 00:28:49 nit: please add blank lines between these method n
yoshiki 2013/01/09 03:03:15 Done.
// Returns the current type of the screen magnifier.
- virtual ash::MagnifierType GetMagnifierType() = 0;
+ virtual ash::MagnifierType GetMagnifierType() const = 0;
+ // Enable the screen magnifier.
+ virtual void SetMagnifierEnabled(bool enabled) = 0;
// Changes the type of the screen magnifier.
- virtual void SetMagnifier(ash::MagnifierType type) = 0;
+ virtual void SetMagnifierType(ash::MagnifierType type) = 0;
// Saves the magnifier scale to the pref.
virtual void SaveScreenMagnifierScale(double scale) = 0;
// Loads the magnifier scale from the pref.
- virtual double GetSavedScreenMagnifierScale() = 0;
+ virtual double GetSavedScreenMagnifierScale() const = 0;
protected:
virtual ~MagnificationManager() {}

Powered by Google App Engine
This is Rietveld 408576698