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

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

Issue 14301016: Fix a couple of bugs relating to sending Tab info with chrome.runtime.connect and (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add key to app1/manifest.json Created 7 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 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": "runtime", 7 "namespace": "runtime",
8 "documentation_permissions_required": ["runtime"], 8 "documentation_permissions_required": ["runtime"],
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 12 matching lines...) Expand all
23 "description": "This property will <b>only</b> be present on ports p assed to onConnect/onConnectExternal listeners." 23 "description": "This property will <b>only</b> be present on ports p assed to onConnect/onConnectExternal listeners."
24 } 24 }
25 }, 25 },
26 "additionalProperties": { "type": "any"} 26 "additionalProperties": { "type": "any"}
27 }, 27 },
28 { 28 {
29 "id": "MessageSender", 29 "id": "MessageSender",
30 "type": "object", 30 "type": "object",
31 "description": "An object containing information about the script contex t that sent a message or request.", 31 "description": "An object containing information about the script contex t that sent a message or request.",
32 "properties": { 32 "properties": {
33 "tab": {"$ref": "tabs.Tab", "optional": true, "description":"This prop erty will <b>only</b> be present when the connection was opened from a tab or co ntent script."}, 33 "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. "},
34 "id": {"type": "string", "description": "The ID of the extension/app t hat opened the connection."} 34 "id": {"type": "string", "description": "The ID of the extension or ap p that opened the connection."},
35 "url": {"type": "string", "optional": true, "description": "The URL of the page or frame that opened the connection. This property will <strong>only</ strong> be present when the connection was opened from a tab (including content scripts)."}
35 } 36 }
36 } 37 }
37 ], 38 ],
38 "properties": { 39 "properties": {
39 "lastError": { 40 "lastError": {
40 "type": "object", 41 "type": "object",
41 "optional": true, 42 "optional": true,
42 "description": "This will be defined during an API method callback if th ere was an error", 43 "description": "This will be defined during an API method callback if th ere was an error",
43 "unprivileged": true, 44 "unprivileged": true,
44 "properties": { 45 "properties": {
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 "optional": "true", 363 "optional": "true",
363 "description": "Return true from the event listener if you wish to cal l <code>sendResponse</code> after the event listener returns." 364 "description": "Return true from the event listener if you wish to cal l <code>sendResponse</code> after the event listener returns."
364 } 365 }
365 } 366 }
366 367
367 368
368 369
369 ] 370 ]
370 } 371 }
371 ] 372 ]
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_message_filter.cc ('k') | chrome/common/extensions/extension_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698