accessibility_observer.h 863 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2016 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_ACCESSIBILITY_ACCESSIBILITY_OBSERVER_H_
  5. #define ASH_ACCESSIBILITY_ACCESSIBILITY_OBSERVER_H_
  6. #include "ash/ash_export.h"
  7. #include "base/observer_list_types.h"
  8. namespace ash {
  9. class ASH_EXPORT AccessibilityObserver : public base::CheckedObserver {
  10. public:
  11. // Called when any accessibility status changes.
  12. virtual void OnAccessibilityStatusChanged() = 0;
  13. // Called when the accessibility controller is being shutdown. Provides an
  14. // opportunity for observers to remove themselves.
  15. virtual void OnAccessibilityControllerShutdown() {}
  16. protected:
  17. ~AccessibilityObserver() override = default;
  18. };
  19. } // namespace ash
  20. #endif // ASH_ACCESSIBILITY_ACCESSIBILITY_OBSERVER_H_