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

Unified Diff: chrome/common/extensions/api/experimental.managedMode.json

Issue 9566007: Initial Managed Mode extension API, supporting querying the setting and a stub for enabling the mod… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Updated checkout again Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/common_resources.grd ('k') | chrome/common/extensions/api/extension_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/experimental.managedMode.json
===================================================================
--- chrome/common/extensions/api/experimental.managedMode.json (revision 0)
+++ chrome/common/extensions/api/experimental.managedMode.json (revision 0)
@@ -0,0 +1,57 @@
+[
+ {
+ "namespace": "experimental.managedMode",
+ "dependencies": ["types"],
+ "functions": [
+ {
+ "name": "enter",
+ "type": "function",
+ "description": "Shows a confirmation dialog, then puts the browser into managed mode. The callback parameter will be true if managed mode was entered successfully, false if the user cancelled the confirmation. If managed mode is already on, trying to enter it again will have no effect.",
+ "parameters": [
+ {
+ "type": "function",
+ "name": "callback",
+ "optional": true,
+ "parameters": [
+ {
+ "name": "result",
+ "type": "object",
+ "description": "The result of the attempt to enter managed mode.",
+ "properties": {
+ "success": {
+ "description": "True if managed mode was entered successfully, false if the user cancelled the confirmation.",
+ "type": "boolean"
+ }
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "get",
+ "type": "function",
+ "description": "Gets the value of the setting describing whether managed mode is in effect.",
+ "parameters": [
+ {
+ "type": "function",
+ "name": "callback",
+ "parameters": [
+ {
+ "name": "details",
+ "type": "object",
+ "description": "Details of the currently effective value.",
+ "properties": {
+ "value": {
+ "description": "The value of the setting.",
+ "type": "boolean"
+ }
+ }
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+]
Property changes on: chrome\common\extensions\api\experimental.managedMode.json
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/common/common_resources.grd ('k') | chrome/common/extensions/api/extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698