Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: ash/login/ui/lock_screen.h

Issue 2896093003: cros: Make sure views-based lock screen is destroyed after it is dismissed. (Closed)
Patch Set: Address comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/login/ui/lock_contents_view.cc ('k') | ash/login/ui/lock_screen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « ash/login/ui/lock_contents_view.cc ('k') | ash/login/ui/lock_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698