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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/screenlock_private.idl
diff --git a/chrome/common/extensions/api/screenlock_private.idl b/chrome/common/extensions/api/screenlock_private.idl
new file mode 100644
index 0000000000000000000000000000000000000000..24af89b0bd61bdcfd4382dbb0bb05909a255b3ea
--- /dev/null
+++ b/chrome/common/extensions/api/screenlock_private.idl
@@ -0,0 +1,26 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Control and monitor the screen locker.
+[platforms=("chromeos"), implemented_in="chrome/browser/chromeos/extensions/screenlock_private_api.h", permissions=screenlockPrivate]
+namespace screenlockPrivate {
+ callback BooleanCallback = void(boolean locked);
+
+ interface Functions {
+ // Returns true if the screen is currently locked, false otherwise.
+ static void getLocked(BooleanCallback callback);
+
+ // Set <code>locked=true</code> to lock the screen,
+ // <code>locked=false</code> to unlock it.
+ static void setLocked(boolean locked);
+
+ // Show a message to the user on the unlock UI if the screen is locked.
+ static void showMessage(DOMString message);
+ };
+
+ interface Events {
+ // Fires whenever the screen is locked or unlocked.
+ static void onChanged(boolean locked);
+ };
+};
« 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