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

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: Addressing Bernhard's comments Created 8 years, 10 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
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,62 @@
+[
+ {
+ "namespace": "experimental.managedMode",
+ "functions": [
+ {
+ "name": "enable",
+ "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.<br>Extensions cannot disable managed mode. This must be done by the user from within the browser itself.",
+ "parameters": [
+ {
+ "type": "function",
+ "name": "callback",
+ "optional": true,
+ "parameters": [
+ {
+ "name": "result",
+ "type": "object",
+ "description": "The result of the attempt to enable 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 enabled.",
+ "parameters": [
+ {
+ "type": "function",
+ "name": "callback",
+ "description": "This callback function is similar to <a href='types.html#method-ChromeSetting-get'>that used by a ChromeSetting</a>, except that the <code>incognitoSpecific</code> parameter will never be present and only a subset of the values of <code>levelOfControl</code> are possible.",
+ "parameters": [
+ {
+ "name": "details",
+ "type": "object",
+ "description": "Details of the currently effective value.",
+ "properties": {
+ "value": {
+ "description": "The value of the setting.",
+ "type": "boolean"
+ },
+ "levelOfControl": {
+ "description": "One of<br><var>not_controllable</var>: cannot be controlled by any extension<br><var>controllable_by_this_extension</var>: can be controlled by this extension",
+ "type": "string",
+ "enum": ["not_controllable", "controllable_by_this_extension"]
+ }
+ }
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+]
Property changes on: chrome\common\extensions\api\experimental.managedMode.json
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698