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 views { | |
11 class Widget; | |
12 } | |
13 | |
14 namespace ash { | 10 namespace ash { |
15 | 11 |
16 // Fills the given widget with the lock screen view and displays it. | 12 // Creates and displays the lock screen. Returns true if the lock screen was |
| 13 // displayed. |
17 // | 14 // |
18 // The lock screen communicates with the backend C++ via a mojo API. | 15 // The lock screen communicates with the backend C++ via a mojo API. |
19 ASH_EXPORT void ShowLockScreenInWidget(views::Widget* widget); | 16 ASH_EXPORT bool ShowLockScreen(); |
20 | 17 |
21 } // namespace ash | 18 } // namespace ash |
22 | 19 |
23 #endif // ASH_LOGIN_UI_LOCK_SCREEN_H_ | 20 #endif // ASH_LOGIN_UI_LOCK_SCREEN_H_ |
OLD | NEW |