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

Unified Diff: ash/accessibility_delegate.h

Issue 77453013: Add an accessibility alert for incorrect use of some accelerators. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits Created 7 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/accelerators/accelerator_table.cc ('k') | ash/default_accessibility_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accessibility_delegate.h
diff --git a/ash/accessibility_delegate.h b/ash/accessibility_delegate.h
index 1f0f349ec5c9396ed9a36040b80ba76b2e01cba2..7bfd5b4428e99876e511fa378ed1039877119286 100644
--- a/ash/accessibility_delegate.h
+++ b/ash/accessibility_delegate.h
@@ -15,6 +15,11 @@ enum AccessibilityNotificationVisibility {
A11Y_NOTIFICATION_SHOW,
};
+enum AccessibilityAlert {
+ A11Y_ALERT_NONE,
+ A11Y_ALERT_WINDOW_NEEDED
+};
+
// A deletate class to control accessibility features.
class ASH_EXPORT AccessibilityDelegate {
public:
@@ -70,6 +75,12 @@ class ASH_EXPORT AccessibilityDelegate {
// Gets a saved value of the zoom scale of full screen magnifier. If a value
// is not saved, return a negative value.
virtual double GetSavedScreenMagnifierScale() = 0;
+
+ // Triggers an accessibility alert to give the user feedback.
+ virtual void TriggerAccessibilityAlert(AccessibilityAlert alert) = 0;
+
+ // Gets the last accessibility alert that was triggered.
+ virtual AccessibilityAlert GetLastAccessibilityAlert() = 0;
};
} // namespace ash
« no previous file with comments | « ash/accelerators/accelerator_table.cc ('k') | ash/default_accessibility_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698