Index: ash/wm/session_lock_state_controller.h |
diff --git a/ash/wm/session_state_controller.h b/ash/wm/session_lock_state_controller.h |
similarity index 75% |
rename from ash/wm/session_state_controller.h |
rename to ash/wm/session_lock_state_controller.h |
index c457c70c896a696c1f42a69213c7f79350c1483c..9b44cc1aa19334e4a0dc133757e8724a1f3dc9cd 100644 |
--- a/ash/wm/session_state_controller.h |
+++ b/ash/wm/session_lock_state_controller.h |
@@ -2,13 +2,13 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef ASH_WM_SESSION_STATE_CONTROLLER_H_ |
-#define ASH_WM_SESSION_STATE_CONTROLLER_H_ |
+#ifndef ASH_WM_SESSION_LOCK_STATE_CONTROLLER_H_ |
+#define ASH_WM_SESSION_LOCK_STATE_CONTROLLER_H_ |
#include "ash/ash_export.h" |
#include "ash/shell_observer.h" |
+#include "ash/wm/session_lock_state_observer.h" |
#include "ash/wm/session_state_animator.h" |
-#include "ash/wm/session_state_observer.h" |
#include "base/basictypes.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/observer_list.h" |
@@ -29,26 +29,26 @@ namespace ash { |
namespace test { |
class PowerButtonControllerTest; |
-class SessionStateControllerImpl2Test; |
+class SessionLockStateControllerImpl2Test; |
} |
-// Performs system-related functions on behalf of SessionStateController. |
-class ASH_EXPORT SessionStateControllerDelegate { |
+// Performs system-related functions on behalf of SessionLockStateController. |
+class ASH_EXPORT SessionLockStateControllerDelegate { |
public: |
- SessionStateControllerDelegate() {} |
- virtual ~SessionStateControllerDelegate() {} |
+ SessionLockStateControllerDelegate() {} |
+ virtual ~SessionLockStateControllerDelegate() {} |
virtual void RequestLockScreen() = 0; |
virtual void RequestShutdown() = 0; |
private: |
- DISALLOW_COPY_AND_ASSIGN(SessionStateControllerDelegate); |
+ DISALLOW_COPY_AND_ASSIGN(SessionLockStateControllerDelegate); |
}; |
// Displays onscreen animations and locks or suspends the system in response to |
// the power button being pressed or released. |
-class ASH_EXPORT SessionStateController : public aura::RootWindowObserver, |
- public ShellObserver { |
+class ASH_EXPORT SessionLockStateController : public aura::RootWindowObserver, |
+ public ShellObserver { |
public: |
// Amount of time that the power button needs to be held before we lock the |
// screen. |
@@ -71,10 +71,10 @@ class ASH_EXPORT SessionStateController : public aura::RootWindowObserver, |
// the animation time to finish. |
static const int kShutdownRequestDelayMs; |
- SessionStateController(); |
- virtual ~SessionStateController(); |
+ SessionLockStateController(); |
+ virtual ~SessionLockStateController(); |
- void SetDelegate(SessionStateControllerDelegate* delegate); |
+ void SetDelegate(SessionLockStateControllerDelegate* delegate); |
// Starts locking (with slow animation) that can be cancelled. |
// After locking and |kLockToShutdownTimeoutMs| StartShutdownAnimation() |
@@ -123,24 +123,24 @@ class ASH_EXPORT SessionStateController : public aura::RootWindowObserver, |
// Callback is guaranteed to be called once and then discarded. |
virtual void SetLockScreenDisplayedCallback(base::Closure& callback) = 0; |
- virtual void AddObserver(SessionStateObserver* observer); |
- virtual void RemoveObserver(SessionStateObserver* observer); |
- virtual bool HasObserver(SessionStateObserver* observer); |
+ virtual void AddObserver(SessionLockStateObserver* observer); |
+ virtual void RemoveObserver(SessionLockStateObserver* observer); |
+ virtual bool HasObserver(SessionLockStateObserver* observer); |
protected: |
friend class test::PowerButtonControllerTest; |
- friend class test::SessionStateControllerImpl2Test; |
+ friend class test::SessionLockStateControllerImpl2Test; |
scoped_ptr<internal::SessionStateAnimator> animator_; |
- scoped_ptr<SessionStateControllerDelegate> delegate_; |
+ scoped_ptr<SessionLockStateControllerDelegate> delegate_; |
- ObserverList<SessionStateObserver> observers_; |
+ ObserverList<SessionLockStateObserver> observers_; |
private: |
- DISALLOW_COPY_AND_ASSIGN(SessionStateController); |
+ DISALLOW_COPY_AND_ASSIGN(SessionLockStateController); |
}; |
} // namespace ash |
-#endif // ASH_WM_SESSION_STATE_CONTROLLER_H_ |
+#endif // ASH_WM_SESSION_LOCK_STATE_CONTROLLER_H_ |