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

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

Issue 12996003: Dynamically generate a heading for Extension Docs API pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments - Patch currently being broken up Created 7 years, 6 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
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": "extension", 7 "namespace": "extension",
8 "description": "The <code>chrome.extension</code> module has utilities that can be used by any extension page. It includes support for exchanging messages b etween an extension and its content scripts or between extensions, as described in detail in <a href='messaging.html'>Message Passing</a>.",
8 "compiler_options": { 9 "compiler_options": {
9 "implemented_in": "chrome/browser/extensions/api/module/module.h" 10 "implemented_in": "chrome/browser/extensions/api/module/module.h"
10 }, 11 },
11 "types": [ 12 "types": [
12 { 13 {
13 "id": "MessageSender", 14 "id": "MessageSender",
14 "type": "object", 15 "type": "object",
15 "description": "An object containing information about the script contex t that sent a message or request.", 16 "description": "An object containing information about the script contex t that sent a message or request.",
16 "properties": { 17 "properties": {
17 "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."}, 18 "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."},
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 "description": "Deprecated: please use onMessageExternal.", 216 "description": "Deprecated: please use onMessageExternal.",
216 "parameters": [ 217 "parameters": [
217 {"name": "request", "type": "any", "description": "The request sent by the calling script."}, 218 {"name": "request", "type": "any", "description": "The request sent by the calling script."},
218 {"name": "sender", "$ref": "MessageSender" }, 219 {"name": "sender", "$ref": "MessageSender" },
219 {"name": "sendResponse", "type": "function", "description": "Function to call when you have a response. The argument should be any JSON-ifiable object , or undefined if there is no response." } 220 {"name": "sendResponse", "type": "function", "description": "Function to call when you have a response. The argument should be any JSON-ifiable object , or undefined if there is no response." }
220 ] 221 ]
221 } 222 }
222 ] 223 ]
223 } 224 }
224 ] 225 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698