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

Unified Diff: extensions/common/api/runtime.json

Issue 264743014: Move chrome.runtime to //extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 8 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: extensions/common/api/runtime.json
diff --git a/chrome/common/extensions/api/runtime.json b/extensions/common/api/runtime.json
similarity index 98%
rename from chrome/common/extensions/api/runtime.json
rename to extensions/common/api/runtime.json
index 55704f1e3029837453ad242c4319f7ac0f9c12db..1dcd5f141f048a678377156a09bb6aa2c0f71805 100644
--- a/chrome/common/extensions/api/runtime.json
+++ b/extensions/common/api/runtime.json
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+// Note: Many of these functions and events are implemented by hand and should
+// not elicit any code generation from the schema compiler. These items are
+// marked "nocompile."
[
{
"namespace": "runtime",
@@ -29,6 +32,7 @@
{
"id": "MessageSender",
"type": "object",
+ "nocompile": true,
"description": "An object containing information about the script context that sent a message or request.",
"properties": {
"tab": {"$ref": "tabs.Tab", "optional": true, "description": "The $(ref:tabs.Tab) which opened the connection, if any. This property will <strong>only</strong> be present when the connection was opened from a tab (including content scripts), and <strong>only</strong> if the receiver is an extension, not an app."},
@@ -423,6 +427,7 @@
"options": {
"unmanaged": true
},
+ "nocompile": true,
"description": "Fired when a message is sent from either an extension process or a content script.",
"parameters": [
{"name": "message", "type": "any", "optional": true, "description": "The message sent by the calling script."},
@@ -441,6 +446,7 @@
"options": {
"unmanaged": true
},
+ "nocompile": true,
"description": "Fired when a message is sent from another extension/app. Cannot be used in a content script.",
"parameters": [
{"name": "message", "type": "any", "optional": true, "description": "The message sent by the calling script."},

Powered by Google App Engine
This is Rietveld 408576698