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

Side by Side Diff: chrome/common/extensions/api/screenlock_private.idl

Issue 60583003: The chrome.screenlockPrivate API allows select apps to control the ChromeOS ScreenLocker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 // Control and monitor the screen locker.
6 [platforms=("chromeos"), implemented_in="chrome/browser/chromeos/extensions/scre enlock_private_api.h", permissions=screenlockPrivate]
7 namespace screenlockPrivate {
8 callback BooleanCallback = void(boolean locked);
9
10 interface Functions {
11 // Returns true if the screen is currently locked, false otherwise.
12 static void getLocked(BooleanCallback callback);
13
14 // Set <code>locked=true</code> to lock the screen,
15 // <code>locked=false</code> to unlock it.
16 static void setLocked(boolean locked);
17
18 // Show a message to the user on the unlock UI if the screen is locked.
19 static void showMessage(DOMString message);
20 };
21
22 interface Events {
23 // Fires whenever the screen is locked or unlocked.
24 static void onChanged(boolean locked);
25 };
26 };
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/common/extensions/permissions/chrome_api_permissions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698