OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
6 #define CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 // Sets the delegate used by the stub implementation. Ownership of |delegate| | 59 // Sets the delegate used by the stub implementation. Ownership of |delegate| |
60 // remains with the caller. | 60 // remains with the caller. |
61 virtual void SetStubDelegate(StubDelegate* delegate) = 0; | 61 virtual void SetStubDelegate(StubDelegate* delegate) = 0; |
62 | 62 |
63 // Adds and removes the observer. | 63 // Adds and removes the observer. |
64 virtual void AddObserver(Observer* observer) = 0; | 64 virtual void AddObserver(Observer* observer) = 0; |
65 virtual void RemoveObserver(Observer* observer) = 0; | 65 virtual void RemoveObserver(Observer* observer) = 0; |
66 virtual bool HasObserver(const Observer* observer) const = 0; | 66 virtual bool HasObserver(const Observer* observer) const = 0; |
67 | 67 |
| 68 // Returns the most recent screen-lock state received from session_manager. |
| 69 // This mirrors the last Observer::ScreenIsLocked() or ScreenIsUnlocked() |
| 70 // call. |
| 71 virtual bool IsScreenLocked() const = 0; |
| 72 |
68 // Kicks off an attempt to emit the "login-prompt-visible" upstart signal. | 73 // Kicks off an attempt to emit the "login-prompt-visible" upstart signal. |
69 virtual void EmitLoginPromptVisible() = 0; | 74 virtual void EmitLoginPromptVisible() = 0; |
70 | 75 |
71 // Restarts a job referenced by |pid| with the provided command line. | 76 // Restarts a job referenced by |pid| with the provided command line. |
72 virtual void RestartJob(int pid, const std::string& command_line) = 0; | 77 virtual void RestartJob(int pid, const std::string& command_line) = 0; |
73 | 78 |
74 // Starts the session for the user. | 79 // Starts the session for the user. |
75 virtual void StartSession(const std::string& user_email) = 0; | 80 virtual void StartSession(const std::string& user_email) = 0; |
76 | 81 |
77 // Stops the current session. | 82 // Stops the current session. |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 // Create() should be used instead. | 200 // Create() should be used instead. |
196 SessionManagerClient(); | 201 SessionManagerClient(); |
197 | 202 |
198 private: | 203 private: |
199 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); | 204 DISALLOW_COPY_AND_ASSIGN(SessionManagerClient); |
200 }; | 205 }; |
201 | 206 |
202 } // namespace chromeos | 207 } // namespace chromeos |
203 | 208 |
204 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ | 209 #endif // CHROMEOS_DBUS_SESSION_MANAGER_CLIENT_H_ |
OLD | NEW |