OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 module mash.shell.mojom; | 5 module mash.session.mojom; |
6 | 6 |
7 interface ScreenlockStateListener { | 7 interface ScreenlockStateListener { |
8 // This method is called when the listener is initially added with the current | 8 // This method is called when the listener is initially added with the current |
9 // lock state, and subsequently whenever the lock state changes. | 9 // lock state, and subsequently whenever the lock state changes. |
10 ScreenlockStateChanged(bool locked); | 10 ScreenlockStateChanged(bool locked); |
11 }; | 11 }; |
12 | 12 |
13 interface Shell { | 13 interface Session { |
14 Logout(); | 14 Logout(); |
15 SwitchUser(); | 15 SwitchUser(); |
16 LockScreen(); | 16 LockScreen(); |
17 UnlockScreen(); | 17 UnlockScreen(); |
18 AddScreenlockStateListener(ScreenlockStateListener listener); | 18 AddScreenlockStateListener(ScreenlockStateListener listener); |
19 }; | 19 }; |
OLD | NEW |