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

Side by Side Diff: chrome/common/extensions/api/experimental.declarative.json

Issue 9422003: Migrate Declarative API bindings to new JSON objects generated by JSON compiler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix memory leaks 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "experimental.declarative", 3 "namespace": "experimental.declarative",
4 "internal": true, 4 "internal": true,
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "Rule", 7 "id": "Rule",
8 "type": "object", 8 "type": "object",
9 "description": "Description of a declarative rule for handling events.", 9 "description": "Description of a declarative rule for handling events.",
10 "properties": { 10 "properties": {
(...skipping 20 matching lines...) Expand all
31 } 31 }
32 } 32 }
33 ], 33 ],
34 "functions": [ 34 "functions": [
35 { 35 {
36 "name": "addRules", 36 "name": "addRules",
37 "type": "function", 37 "type": "function",
38 "description": "Registers rules to handle events.", 38 "description": "Registers rules to handle events.",
39 "parameters": [ 39 "parameters": [
40 { 40 {
41 "name": "event", 41 "name": "eventName",
42 "type": "string", 42 "type": "string",
43 "description": "Name of the event this function affects." 43 "description": "Name of the event this function affects."
44 }, 44 },
45 { 45 {
46 "name": "rules", 46 "name": "rules",
47 "type": "array", 47 "type": "array",
48 "items": {"$ref": "Rule"}, 48 "items": {"$ref": "Rule"},
49 "description": "Rules to be registered. These do not replace previou sly registered rules." 49 "description": "Rules to be registered. These do not replace previou sly registered rules."
50 }, 50 },
51 { 51 {
(...skipping 11 matching lines...) Expand all
63 "description": "Called with registered rules." 63 "description": "Called with registered rules."
64 } 64 }
65 ] 65 ]
66 }, 66 },
67 { 67 {
68 "name": "getRules", 68 "name": "getRules",
69 "type": "function", 69 "type": "function",
70 "description": "Returns currently registered rules.", 70 "description": "Returns currently registered rules.",
71 "parameters": [ 71 "parameters": [
72 { 72 {
73 "name": "event", 73 "name": "eventName",
74 "type": "string", 74 "type": "string",
75 "description": "Name of the event this function affects." 75 "description": "Name of the event this function affects."
76 }, 76 },
77 { 77 {
78 "name": "ruleIdentifiers", 78 "name": "ruleIdentifiers",
79 "optional": "true", 79 "optional": "true",
80 "type": "array", 80 "type": "array",
81 "items": {"type": "string"}, 81 "items": {"type": "string"},
82 "description": "If an array is passed, only rules with identifiers c ontained in this array are returned." 82 "description": "If an array is passed, only rules with identifiers c ontained in this array are returned."
83 }, 83 },
(...skipping 11 matching lines...) Expand all
95 "description": "Called with registered rules." 95 "description": "Called with registered rules."
96 } 96 }
97 ] 97 ]
98 }, 98 },
99 { 99 {
100 "name": "removeRules", 100 "name": "removeRules",
101 "type": "function", 101 "type": "function",
102 "description": "Unregisters currently registered rules.", 102 "description": "Unregisters currently registered rules.",
103 "parameters": [ 103 "parameters": [
104 { 104 {
105 "name": "event", 105 "name": "eventName",
106 "type": "string", 106 "type": "string",
107 "description": "Name of the event this function affects." 107 "description": "Name of the event this function affects."
108 }, 108 },
109 { 109 {
110 "name": "ruleIdentifiers", 110 "name": "ruleIdentifiers",
111 "optional": "true", 111 "optional": "true",
112 "type": "array", 112 "type": "array",
113 "items": {"type": "string"}, 113 "items": {"type": "string"},
114 "description": "If an array is passed, only rules with identifiers c ontained in this array are unregistered." 114 "description": "If an array is passed, only rules with identifiers c ontained in this array are unregistered."
115 }, 115 },
116 { 116 {
117 "name": "callback", 117 "name": "callback",
118 "optional": true, 118 "optional": true,
119 "type": "function", 119 "type": "function",
120 "parameters": [], 120 "parameters": [],
121 "description": "Called when rules were unregistered." 121 "description": "Called when rules were unregistered."
122 } 122 }
123 ] 123 ]
124 } 124 }
125 ] 125 ]
126 } 126 }
127 ] 127 ]
128 128
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698