| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 ASH_LOGIN_UI_LOCK_SCREEN_H_ | 5 #ifndef ASH_LOGIN_UI_LOCK_SCREEN_H_ |
| 6 #define ASH_LOGIN_UI_LOCK_SCREEN_H_ | 6 #define ASH_LOGIN_UI_LOCK_SCREEN_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 | 9 |
| 10 namespace ash { | 10 namespace ash { |
| 11 | 11 |
| 12 // TODO(jdufault): There's some internal state here so put ShowLockScreen and |
| 13 // DestroyLockScreen inside a (static) class, ie, ash::LockScreen::Show() and |
| 14 // ash::LockScreen::Destroy(). |
| 15 |
| 12 // Creates and displays the lock screen. Returns true if the lock screen was | 16 // Creates and displays the lock screen. Returns true if the lock screen was |
| 13 // displayed. | 17 // displayed. |
| 14 // | 18 // |
| 15 // The lock screen communicates with the backend C++ via a mojo API. | 19 // The lock screen communicates with the backend C++ via a mojo API. |
| 16 ASH_EXPORT bool ShowLockScreen(); | 20 ASH_EXPORT bool ShowLockScreen(); |
| 17 | 21 |
| 22 // Destroys the lock screen. There must be an existing lock screen instance. |
| 23 ASH_EXPORT void DestroyLockScreen(); |
| 24 |
| 18 } // namespace ash | 25 } // namespace ash |
| 19 | 26 |
| 20 #endif // ASH_LOGIN_UI_LOCK_SCREEN_H_ | 27 #endif // ASH_LOGIN_UI_LOCK_SCREEN_H_ |
| OLD | NEW |