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

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

Issue 2105033003: tabId support to chrome.extensions.getViews() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor followup to patch 5 Created 4 years, 5 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
« no previous file with comments | « no previous file | chrome/renderer/resources/extensions/browser_action_custom_bindings.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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> API has utilities that can be used by any extension page. It includes support for exchanging messages betw een an extension and its content scripts or between extensions, as described in detail in <a href='messaging'>Message Passing</a>.", 8 "description": "The <code>chrome.extension</code> API has utilities that can be used by any extension page. It includes support for exchanging messages betw een an extension and its content scripts or between extensions, as described in detail in <a href='messaging'>Message Passing</a>.",
9 "compiler_options": { 9 "compiler_options": {
10 "implemented_in": "chrome/browser/extensions/api/module/module.h" 10 "implemented_in": "chrome/browser/extensions/api/module/module.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 "properties": { 87 "properties": {
88 "type": { 88 "type": {
89 "$ref": "ViewType", 89 "$ref": "ViewType",
90 "optional": true, 90 "optional": true,
91 "description": "The type of view to get. If omitted, returns all views (including background pages and tabs). Valid values: 'tab', 'notification ', 'popup'." 91 "description": "The type of view to get. If omitted, returns all views (including background pages and tabs). Valid values: 'tab', 'notification ', 'popup'."
92 }, 92 },
93 "windowId": { 93 "windowId": {
94 "type": "integer", 94 "type": "integer",
95 "optional": true, 95 "optional": true,
96 "description": "The window to restrict the search to. If omitted , returns all views." 96 "description": "The window to restrict the search to. If omitted , returns all views."
97 },
98 "tabId": {
99 "type": "integer",
100 "optional":true,
101 "description": "Find a view according to a tab id. If this field is omitted, returns all views."
97 } 102 }
98 } 103 }
99 } 104 }
100 ], 105 ],
101 "returns": { 106 "returns": {
102 "type": "array", 107 "type": "array",
103 "description": "Array of global objects", 108 "description": "Array of global objects",
104 "items": { 109 "items": {
105 "name": "viewGlobals", 110 "name": "viewGlobals",
106 "type": "object", 111 "type": "object",
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 "description": "Fired when a request is sent from another extension.", 218 "description": "Fired when a request is sent from another extension.",
214 "parameters": [ 219 "parameters": [
215 {"name": "request", "type": "any", "optional": true, "description": "T he request sent by the calling script."}, 220 {"name": "request", "type": "any", "optional": true, "description": "T he request sent by the calling script."},
216 {"name": "sender", "$ref": "runtime.MessageSender" }, 221 {"name": "sender", "$ref": "runtime.MessageSender" },
217 {"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." } 222 {"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." }
218 ] 223 ]
219 } 224 }
220 ] 225 ]
221 } 226 }
222 ] 227 ]
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/resources/extensions/browser_action_custom_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698