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

Unified Diff: chrome/common/extensions/api/extension.json

Issue 10392127: Move declarative API into events API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix change schema type reference from 'Event' to 'events.Event' Created 8 years, 7 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/extensions/api/events.json ('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/extension.json
diff --git a/chrome/common/extensions/api/extension.json b/chrome/common/extensions/api/extension.json
index 1e735ad63da4ce8850152633d98edf4247e4a3b9..4c8b859284f74df77f92c085d0ced05e92632907 100644
--- a/chrome/common/extensions/api/extension.json
+++ b/chrome/common/extensions/api/extension.json
@@ -6,7 +6,7 @@
{
"namespace": "extension",
"nocompile": true,
- "dependencies": [ "tabs" ],
+ "dependencies": [ "events", "tabs" ],
"types": [
{
"id": "MessageSender",
@@ -18,25 +18,13 @@
}
},
{
- "id": "Event",
- "type": "object",
- "description": "An object which allows the addition and removal of listeners for a Chrome event.",
- "properties": {
- "addListener": {"type": "function"},
- "removeListener": {"type": "function"},
- "hasListener": {"type": "function"},
- "hasListeners": {"type": "function"}
- },
- "additionalProperties": { "type": "any"}
- },
- {
"id": "Port",
"type": "object",
"description": "An object which allows two way communication with other pages.",
"properties": {
"name": {"type": "string"},
- "onDisconnect": { "$ref": "Event" },
- "onMessage": { "$ref": "Event" },
+ "onDisconnect": { "$ref": "events.Event" },
+ "onMessage": { "$ref": "events.Event" },
"postMessage": {"type": "function"},
"sender": {
"$ref": "MessageSender",
« no previous file with comments | « chrome/common/extensions/api/events.json ('k') | chrome/common/extensions/api/extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698