OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 |
| 5 #ifndef ATHENA_SCREEN_LOCK_PUBLIC_SCREEN_LOCK_MANAGER_H_ |
| 6 #define ATHENA_SCREEN_LOCK_PUBLIC_SCREEN_LOCK_MANAGER_H_ |
| 7 |
| 8 namespace athena { |
| 9 |
| 10 // Manages screen lock and register keyboard shortcuts. |
| 11 class ScreenLockManager { |
| 12 public: |
| 13 // Creates, returns and deletes the singleton object of the ScreenLockManager |
| 14 // implementation. |
| 15 static ScreenLockManager* Create(); |
| 16 static ScreenLockManager* Get(); |
| 17 static void Shutdown(); |
| 18 |
| 19 virtual void LockScreen() = 0; |
| 20 |
| 21 protected: |
| 22 // Make d-tor protected to prevent destruction without calling Shutdown. |
| 23 virtual ~ScreenLockManager() {} |
| 24 }; |
| 25 |
| 26 } // namespace athena |
| 27 |
| 28 #endif // ATHENA_SCREEN_LOCK_PUBLIC_SCREEN_LOCK_MANAGER_H_ |
OLD | NEW |