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

Side by Side Diff: chrome/common/extensions/api/managed_mode_private.json

Issue 10510006: Add ManagedModePolicyProvider and extension API to get and set policies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 [ 5 [
6 { 6 {
7 "namespace": "managedModePrivate", 7 "namespace": "managedModePrivate",
8 "nodoc": true, 8 "nodoc": true,
9 "functions": [ 9 "functions": [
10 { 10 {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 "properties": { 48 "properties": {
49 "value": { 49 "value": {
50 "description": "The value of the setting.", 50 "description": "The value of the setting.",
51 "type": "boolean" 51 "type": "boolean"
52 } 52 }
53 } 53 }
54 } 54 }
55 ] 55 ]
56 } 56 }
57 ] 57 ]
58 },
59 {
60 "name": "setPolicy",
61 "type": "function",
62 "description": "Sets a policy.",
63 "parameters": [
64 {
65 "name": "key",
66 "type": "string",
67 "description": "Policy key"
Joao da Silva 2012/06/06 16:36:38 End the description with a "." for consistency?
Bernhard Bauer 2012/06/08 10:06:44 Done.
68 },
69 {
70 "name": "value",
71 "type": "any",
72 "description": "Policy value."
73 },
74 {
75 "type": "function",
76 "name": "callback",
77 "optional": true,
78 "parameters": [
79 ]
Joao da Silva 2012/06/06 16:36:38 Remove the newline? ("parameters": [])
Bernhard Bauer 2012/06/08 10:06:44 Done.
80 }
81 ]
82 },
83 {
84 "name": "getPolicy",
85 "type": "function",
86 "description": "Gets a policy value.",
87 "parameters": [
88 {
89 "name": "key",
90 "type": "string",
91 "description": "Policy key"
Joao da Silva 2012/06/06 16:36:38 Same about the "."
Bernhard Bauer 2012/06/08 10:06:44 Done.
92 },
93 {
94 "type": "function",
95 "name": "callback",
96 "optional": true,
97 "parameters": [
98 {
99 "name": "value",
100 "type": "any",
101 "description": "Policy value or null if no policy is set.",
102 "optional": true
103 }
104 ]
105 }
106 ]
58 } 107 }
59 ], 108 ],
60 "events": [ 109 "events": [
61 { 110 {
62 "name": "onChange", 111 "name": "onChange",
63 "description": "Fired when the value of the setting changes.", 112 "description": "Fired when the value of the setting changes.",
64 "parameters": [ 113 "parameters": [
65 { 114 {
66 "type": "object", 115 "type": "object",
67 "name": "details", 116 "name": "details",
68 "properties": { 117 "properties": {
69 "value": { 118 "value": {
70 "description": "The value of the setting.", 119 "description": "The value of the setting.",
71 "type": "any" 120 "type": "any"
72 } 121 }
73 } 122 }
74 } 123 }
75 ] 124 ]
76 } 125 }
77 ] 126 ]
78 } 127 }
79 ] 128 ]
OLDNEW
« chrome/chrome_browser.gypi ('K') | « chrome/common/chrome_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698