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

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

Issue 11415025: A11y: Introduce High Contrast Mode and Screen Magnifier to ubar tray. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
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 87c814874f542f055f7f5eb6a0c3afa879ceaabf..bfada23293c1622da61f25e829a78c5393ed3052 100644
--- a/chrome/browser/chromeos/accessibility/accessibility_util.h
+++ b/chrome/browser/chromeos/accessibility/accessibility_util.h
@@ -6,6 +6,9 @@
#define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_UTIL_H_
#include <string>
+#include "ash/magnifier/magnifier_constants.h"
+
+class Browser;
namespace content {
class WebUI;
@@ -23,14 +26,8 @@ void EnableSpokenFeedback(bool enabled, content::WebUI* login_web_ui);
// Enable or disable the high contrast mode for Chrome.
void EnableHighContrast(bool enabled);
-enum ScreenMagnifierType {
- MAGNIFIER_OFF,
- MAGNIFIER_FULL,
- MAGNIFIER_PARTIAL,
-};
-
// Set the type of screen magnifier, or disable it.
-void SetScreenMagnifier(ScreenMagnifierType type);
+void SetScreenMagnifier(ash::ScreenMagnifierType type);
// Enable or disable the virtual keyboard.
void EnableVirtualKeyboard(bool enabled);
@@ -49,17 +46,20 @@ bool IsSpokenFeedbackEnabled();
bool IsHighContrastEnabled();
// Returns the current state of the screen magnifier.
-ScreenMagnifierType GetScreenMagnifierType();
+ash::ScreenMagnifierType GetScreenMagnifierType();
// Translates from a string to ScreenMagnifierType.
-ScreenMagnifierType ScreenMagnifierTypeFromName(const char type_name[]);
+ash::ScreenMagnifierType ScreenMagnifierTypeFromName(const char type_name[]);
// Translates from a ScreenMagnifierType to type string.
-const char* ScreenMagnifierNameFromType(ScreenMagnifierType type);
+const char* ScreenMagnifierNameFromType(ash::ScreenMagnifierType type);
// Speak the given text if the accessibility pref is already set.
void MaybeSpeak(const std::string& utterance);
+// Show the accessibility help tab on the browser.
+void ShowAccessibilityHelp(Browser* browser);
+
} // namespace accessibility
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698