screen_rotation_animator_observer.h 902 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2017 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_ROTATOR_SCREEN_ROTATION_ANIMATOR_OBSERVER_H_
  5. #define ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_OBSERVER_H_
  6. #include "ash/ash_export.h"
  7. namespace ash {
  8. class ScreenRotationAnimator;
  9. class ASH_EXPORT ScreenRotationAnimatorObserver {
  10. public:
  11. ScreenRotationAnimatorObserver() {}
  12. // This will be called when the screen is copied before rotation.
  13. virtual void OnScreenCopiedBeforeRotation() = 0;
  14. // This will be called when the animation is ended or aborted.
  15. virtual void OnScreenRotationAnimationFinished(
  16. ScreenRotationAnimator* animator,
  17. bool canceled) = 0;
  18. protected:
  19. virtual ~ScreenRotationAnimatorObserver() {}
  20. };
  21. } // namespace ash
  22. #endif // ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_OBSERVER_H_