Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 { | 1 { |
| 2 "version": { "major": "1", "minor": "1" }, | 2 "version": { "major": "1", "minor": "1" }, |
| 3 "domains": [{ | 3 "domains": [{ |
| 4 "domain": "Inspector", | 4 "domain": "Inspector", |
| 5 "hidden": true, | 5 "hidden": true, |
| 6 "types": [], | 6 "types": [], |
| 7 "commands": [ | 7 "commands": [ |
| 8 { | 8 { |
| 9 "name": "enable", | 9 "name": "enable", |
| 10 "description": "Enables inspector domain notifications." | 10 "description": "Enables inspector domain notifications." |
| (...skipping 4035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4046 "parameters": [ | 4046 "parameters": [ |
| 4047 { "name": "workerId", "type": "string" }, | 4047 { "name": "workerId", "type": "string" }, |
| 4048 { "name": "message", "type": "string" } | 4048 { "name": "message", "type": "string" } |
| 4049 ] | 4049 ] |
| 4050 } | 4050 } |
| 4051 ] | 4051 ] |
| 4052 }, | 4052 }, |
| 4053 { | 4053 { |
| 4054 "domain": "ServiceWorker", | 4054 "domain": "ServiceWorker", |
| 4055 "hidden": true, | 4055 "hidden": true, |
| 4056 "types": [], | 4056 "types": [ |
| 4057 { | |
| 4058 "id": "ServiceWorkerRegistration", | |
| 4059 "type": "object", | |
| 4060 "description": "ServiceWorker registration.", | |
| 4061 "properties": [ | |
| 4062 { "name": "registrationId", "type": "string" }, | |
| 4063 { "name": "scopeURL", "type": "string" }, | |
| 4064 { "name": "activeVersion", "optional": true, "$ref": "Servic eWorkerVersion" }, | |
| 4065 { "name": "waitingVersion", "optional": true, "$ref": "Servi ceWorkerVersion" }, | |
| 4066 { "name": "installingVersion", "optional": true, "$ref": "Se rviceWorkerVersion" } | |
| 4067 ] | |
| 4068 }, | |
| 4069 { | |
| 4070 "id": "ServiceWorkerVersion", | |
| 4071 "type": "object", | |
| 4072 "description": "ServiceWorker version.", | |
| 4073 "properties": [ | |
| 4074 { "name": "versionId", "type": "string" }, | |
| 4075 { "name": "scriptURL", "type": "string" }, | |
| 4076 { "name": "runningStatus", "type": "string", "enum": ["stopp ed", "starting", "running", "stopping"] }, | |
| 4077 { "name": "status", "type": "string", "enum": ["new", "insta lling", "installed", "activating", "activated", "redundant"] } | |
| 4078 ] | |
| 4079 } | |
| 4080 ], | |
| 4057 "commands": [ | 4081 "commands": [ |
| 4058 { | 4082 { |
| 4059 "name": "enable", | 4083 "name": "enable", |
| 4060 "handlers": ["browser"] | 4084 "handlers": ["browser"] |
| 4061 }, | 4085 }, |
| 4062 { | 4086 { |
| 4063 "name": "disable", | 4087 "name": "disable", |
| 4064 "handlers": ["browser"] | 4088 "handlers": ["browser"] |
| 4065 }, | 4089 }, |
| 4066 { | 4090 { |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 4077 { "name": "workerId", "type": "string" } | 4101 { "name": "workerId", "type": "string" } |
| 4078 ], | 4102 ], |
| 4079 "handlers": ["browser"] | 4103 "handlers": ["browser"] |
| 4080 }, | 4104 }, |
| 4081 { | 4105 { |
| 4082 "name": "detach", | 4106 "name": "detach", |
| 4083 "parameters": [ | 4107 "parameters": [ |
| 4084 { "name": "workerId", "type": "string" } | 4108 { "name": "workerId", "type": "string" } |
| 4085 ], | 4109 ], |
| 4086 "handlers": ["browser"] | 4110 "handlers": ["browser"] |
| 4111 }, | |
| 4112 { | |
| 4113 "name": "getRegistrations", | |
| 4114 "async": true, | |
| 4115 "parameters": [ | |
| 4116 { "name": "origin", "type": "string", "description": "Securi ty origin of requesting ServiceWorker registrations." } | |
|
pfeldman
2015/03/06 10:43:16
What origin would we use?
I am not sure the pull
horo
2015/03/09 12:33:25
Ah yes, I agree with you.
I changed to push model
| |
| 4117 ], | |
| 4118 "returns": [ | |
| 4119 { "name": "registrations", "type": "array", "items": { "$ref ": "ServiceWorkerRegistration" }, "description": "ServiceWorkerRegistrations rel ated to the origin." } | |
| 4120 ], | |
| 4121 "description": "Returns the ServiceWorker registrations related to the origin. When origin is empty returns the all registrations.", | |
| 4122 "handlers": ["browser"] | |
| 4087 } | 4123 } |
| 4088 ], | 4124 ], |
| 4089 "events": [ | 4125 "events": [ |
| 4090 { | 4126 { |
| 4091 "name": "workerCreated", | 4127 "name": "workerCreated", |
| 4092 "parameters": [ | 4128 "parameters": [ |
| 4093 { "name": "workerId", "type": "string" }, | 4129 { "name": "workerId", "type": "string" }, |
| 4094 { "name": "url", "type": "string" } | 4130 { "name": "url", "type": "string" } |
| 4095 ], | 4131 ], |
| 4096 "handlers": ["browser"] | 4132 "handlers": ["browser"] |
| (...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4887 ], | 4923 ], |
| 4888 "returns": [ | 4924 "returns": [ |
| 4889 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true } | 4925 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true } |
| 4890 ], | 4926 ], |
| 4891 "description": "Fetches the accessibility node for this DOM node , if it exists.", | 4927 "description": "Fetches the accessibility node for this DOM node , if it exists.", |
| 4892 "hidden": true | 4928 "hidden": true |
| 4893 } | 4929 } |
| 4894 ] | 4930 ] |
| 4895 }] | 4931 }] |
| 4896 } | 4932 } |
| OLD | NEW |