accelerator_notifications.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef ASH_ACCELERATORS_ACCELERATOR_NOTIFICATIONS_H_
  5. #define ASH_ACCELERATORS_ACCELERATOR_NOTIFICATIONS_H_
  6. #include "ash/ash_export.h"
  7. namespace ash {
  8. // Identifiers for toggling accessibility notifications.
  9. ASH_EXPORT extern const char kDockedMagnifierToggleAccelNotificationId[];
  10. ASH_EXPORT extern const char kFullscreenMagnifierToggleAccelNotificationId[];
  11. ASH_EXPORT extern const char kHighContrastToggleAccelNotificationId[];
  12. // URL for keyboard shortcut help.
  13. ASH_EXPORT extern const char kKeyboardShortcutHelpPageUrl[];
  14. // Shows a warning the user is using a deprecated accelerator.
  15. ASH_EXPORT void ShowDeprecatedAcceleratorNotification(
  16. const char* notification_id,
  17. int message_id,
  18. int old_shortcut_id,
  19. int new_shortcut_id);
  20. ASH_EXPORT void ShowDockedMagnifierNotification();
  21. ASH_EXPORT void ShowDockedMagnifierDisabledByAdminNotification(
  22. bool feature_state);
  23. ASH_EXPORT void RemoveDockedMagnifierNotification();
  24. ASH_EXPORT void ShowFullscreenMagnifierNotification();
  25. ASH_EXPORT void ShowFullscreenMagnifierDisabledByAdminNotification(
  26. bool feature_state);
  27. ASH_EXPORT void RemoveFullscreenMagnifierNotification();
  28. ASH_EXPORT void ShowHighContrastNotification();
  29. ASH_EXPORT void ShowHighContrastDisabledByAdminNotification(bool feature_state);
  30. ASH_EXPORT void RemoveHighContrastNotification();
  31. ASH_EXPORT void ShowSpokenFeedbackDisabledByAdminNotification(
  32. bool feature_state);
  33. ASH_EXPORT void RemoveSpokenFeedbackNotification();
  34. } // namespace ash
  35. #endif // ASH_ACCELERATORS_ACCELERATOR_NOTIFICATIONS_H_