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

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

Issue 10915140: Add the partial screen magnifier to Chrome OS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 years, 1 month 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/shell.cc ('k') | chrome/browser/chromeos/accessibility/accessibility_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/accessibility/accessibility_util.h
diff --git a/chrome/browser/chromeos/accessibility/accessibility_util.h b/chrome/browser/chromeos/accessibility/accessibility_util.h
index e85d3dd7b09764818e85e93a8427f7b39fc42744..87c814874f542f055f7f5eb6a0c3afa879ceaabf 100644
--- a/chrome/browser/chromeos/accessibility/accessibility_util.h
+++ b/chrome/browser/chromeos/accessibility/accessibility_util.h
@@ -23,8 +23,14 @@ void EnableSpokenFeedback(bool enabled, content::WebUI* login_web_ui);
// Enable or disable the high contrast mode for Chrome.
void EnableHighContrast(bool enabled);
-// Enable or disable the screen magnifier.
-void EnableScreenMagnifier(bool enabled);
+enum ScreenMagnifierType {
+ MAGNIFIER_OFF,
+ MAGNIFIER_FULL,
+ MAGNIFIER_PARTIAL,
+};
+
+// Set the type of screen magnifier, or disable it.
+void SetScreenMagnifier(ScreenMagnifierType type);
// Enable or disable the virtual keyboard.
void EnableVirtualKeyboard(bool enabled);
@@ -42,8 +48,14 @@ bool IsSpokenFeedbackEnabled();
// Returns true if High Contrast is enabled, or false if not.
bool IsHighContrastEnabled();
-// Returns true if Screen Magnifier is enabled, or false if not.
-bool IsScreenMagnifierEnabled();
+// Returns the current state of the screen magnifier.
+ScreenMagnifierType GetScreenMagnifierType();
+
+// Translates from a string to ScreenMagnifierType.
+ScreenMagnifierType ScreenMagnifierTypeFromName(const char type_name[]);
+
+// Translates from a ScreenMagnifierType to type string.
+const char* ScreenMagnifierNameFromType(ScreenMagnifierType type);
// Speak the given text if the accessibility pref is already set.
void MaybeSpeak(const std::string& utterance);
« no previous file with comments | « ash/shell.cc ('k') | chrome/browser/chromeos/accessibility/accessibility_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698