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

Unified Diff: chrome/browser/chromeos/login/wizard_accessibility_helper.h

Issue 5839003: Fix to enable toggling accessibility using Ctrl+Alt+Z (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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/login/wizard_accessibility_helper.h
===================================================================
--- chrome/browser/chromeos/login/wizard_accessibility_helper.h (revision 69334)
+++ chrome/browser/chromeos/login/wizard_accessibility_helper.h (working copy)
@@ -37,7 +37,7 @@
// Enables Accessibility by setting the accessibility pref and registers
// all views in the view buffer to raise accessibility notifications,
// including the specified |view_tree|.
- void EnableAccessibility(views::View* view_tree);
+ void EnableAccessibilityForView(views::View* view_tree);
// Enables accessibility for the specified |view_tree| if the
// accessibility pref is already set. Otherwise the |view_tree| is
@@ -54,6 +54,11 @@
// Unregisters all accessibility notifications
void UnregisterNotifications();
+ // Toggles accessibility support. If |view_tree| is null, only the
+ // access preference setting is toggled. |view_tree| has no effect while
+ // disabling accessibility.
+ void ToggleAccessibility(views::View* view_tree);
+
private:
friend struct DefaultSingletonTraits<WizardAccessibilityHelper>;
@@ -63,6 +68,10 @@
void RegisterNotifications();
+ bool IsAccessibilityEnabled();
+
+ void SetAccessibilityEnabled(bool);
oshima 2010/12/16 00:36:53 specify arg name
+
static scoped_ptr<views::Accelerator> accelerator_;
void AddViewToBuffer(views::View* view_tree);

Powered by Google App Engine
This is Rietveld 408576698