lock_state_observer.h 731 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2013 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_WM_LOCK_STATE_OBSERVER_H_
  5. #define ASH_WM_LOCK_STATE_OBSERVER_H_
  6. #include "ash/ash_export.h"
  7. namespace ash {
  8. // Interface for classes that want to be notified by LockStateController when
  9. // session-related events occur.
  10. class ASH_EXPORT LockStateObserver {
  11. public:
  12. enum EventType {
  13. EVENT_PRELOCK_ANIMATION_STARTED,
  14. EVENT_LOCK_ANIMATION_STARTED,
  15. EVENT_LOCK_ANIMATION_FINISHED,
  16. };
  17. virtual void OnLockStateEvent(EventType event) = 0;
  18. virtual ~LockStateObserver() {}
  19. };
  20. } // namespace ash
  21. #endif // ASH_WM_LOCK_STATE_OBSERVER_H_