summaryrefslogtreecommitdiffstats
path: root/chromium/ash/wm/lock_state_observer.h
blob: d247e828347b0c10bec388d3682f07a727698b9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_WM_LOCK_STATE_OBSERVER_H_
#define ASH_WM_LOCK_STATE_OBSERVER_H_

#include "ash/ash_export.h"

namespace ash {

// Interface for classes that want to be notified by LockStateController when
// session-related events occur.
class ASH_EXPORT LockStateObserver {
 public:
  enum EventType {
    EVENT_PRELOCK_ANIMATION_STARTED,
    EVENT_LOCK_ANIMATION_STARTED,
    EVENT_LOCK_ANIMATION_FINISHED,
  };

  virtual void OnLockStateEvent(EventType event) = 0;
  virtual ~LockStateObserver() {}
};

}  // namespace ash

#endif  // ASH_WM_LOCK_STATE_OBSERVER_H_