Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / ash / accessibility_delegate.h
index 037a40f..410ea7a 100644 (file)
@@ -18,10 +18,11 @@ enum AccessibilityNotificationVisibility {
 
 enum AccessibilityAlert {
   A11Y_ALERT_NONE,
-  A11Y_ALERT_WINDOW_NEEDED
+  A11Y_ALERT_WINDOW_NEEDED,
+  A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED
 };
 
-// A deletate class to control accessibility features.
+// A delegate class to control and query accessibility features.
 class ASH_EXPORT AccessibilityDelegate {
  public:
   virtual ~AccessibilityDelegate() {}
@@ -45,7 +46,7 @@ class ASH_EXPORT AccessibilityDelegate {
   // Invoked to change the type of the screen magnifier.
   virtual void SetMagnifierType(MagnifierType type) = 0;
 
-  // Returns true if the screen magnifier is enabled or not.
+  // Returns true if the screen magnifier is enabled.
   virtual bool IsMagnifierEnabled() const = 0;
 
   // Returns the current screen magnifier mode.
@@ -54,7 +55,7 @@ class ASH_EXPORT AccessibilityDelegate {
   // Invoked to enable Large Cursor.
   virtual void SetLargeCursorEnabled(bool enabled) = 0;
 
-  // Returns ture if Large Cursor is enabled or not.
+  // Returns ture if Large Cursor is enabled.
   virtual bool IsLargeCursorEnabled() const = 0;
 
   // Invoked to enable autoclick.
@@ -72,6 +73,9 @@ class ASH_EXPORT AccessibilityDelegate {
   // Returns true when the accessibility menu should be shown.
   virtual bool ShouldShowAccessibilityMenu() const = 0;
 
+  // Returns true if a braille display is connected to the system.
+  virtual bool IsBrailleDisplayConnected() const = 0;
+
   // Cancel all current and queued speech immediately.
   virtual void SilenceSpokenFeedback() const = 0;
 
@@ -88,10 +92,15 @@ class ASH_EXPORT AccessibilityDelegate {
   // Gets the last accessibility alert that was triggered.
   virtual AccessibilityAlert GetLastAccessibilityAlert() = 0;
 
+  // Plays an earcon. Earcons are brief and distinctive sounds that indicate
+  // when their mapped event has occurred. The sound key enums can be found in
+  // chromeos/audio/chromeos_sounds.h.
+  virtual void PlayEarcon(int sound_key) = 0;
+
   // Initiates play of shutdown sound and returns it's duration.
   virtual base::TimeDelta PlayShutdownSound() const = 0;
 };
 
 }  // namespace ash
 
-#endif  // ASH_ACCESSIBILITYDELEGATE_H_
+#endif  // ASH_ACCESSIBILITY_DELEGATE_H_