OLD | NEW |
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": "tabs", | 7 "namespace": "tabs", |
8 "dependencies": [ "extension", "windows" ], | 8 "dependencies": [ "extension", "windows" ], |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 { | 79 { |
80 "type": "object", | 80 "type": "object", |
81 "name": "connectInfo", | 81 "name": "connectInfo", |
82 "properties": { | 82 "properties": { |
83 "name": { "type": "string", "optional": true, "description": "Will
be passed into onConnect for content scripts that are listening for the connect
ion event." } | 83 "name": { "type": "string", "optional": true, "description": "Will
be passed into onConnect for content scripts that are listening for the connect
ion event." } |
84 }, | 84 }, |
85 "optional": true | 85 "optional": true |
86 } | 86 } |
87 ], | 87 ], |
88 "returns": { | 88 "returns": { |
89 "$ref": "extension.Port", | 89 "$ref": "Port", |
90 "description": "A port that can be used to communicate with the conten
t scripts running in the specified tab. The port's <a href='extension.html#type-
Port'>onDisconnect</a> event is fired if the tab closes or does not exist. " | 90 "description": "A port that can be used to communicate with the conten
t scripts running in the specified tab. The port's <a href='extension.html#type-
Port'>onDisconnect</a> event is fired if the tab closes or does not exist. " |
91 } | 91 } |
92 }, | 92 }, |
93 { | 93 { |
94 "name": "sendRequest", | 94 "name": "sendRequest", |
95 "nodoc": true, | 95 "nodoc": true, |
96 "nocompile": true, | 96 "nocompile": true, |
97 "type": "function", | 97 "type": "function", |
98 "description": "Deprecated: Please use sendMessage.", | 98 "description": "Deprecated: Please use sendMessage.", |
99 "parameters": [ | 99 "parameters": [ |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 ] | 364 ] |
365 } | 365 } |
366 } | 366 } |
367 }, | 367 }, |
368 { | 368 { |
369 "type": "function", | 369 "type": "function", |
370 "name": "callback", | 370 "name": "callback", |
371 "parameters": [ | 371 "parameters": [ |
372 { | 372 { |
373 "name": "window", | 373 "name": "window", |
374 "$ref": "windows.Window", | 374 "$ref": "Window", |
375 "description": "Contains details about the window whose tabs we
re highlighted." | 375 "description": "Contains details about the window whose tabs we
re highlighted." |
376 } | 376 } |
377 ] | 377 ] |
378 } | 378 } |
379 ] | 379 ] |
380 }, | 380 }, |
381 { | 381 { |
382 "name": "update", | 382 "name": "update", |
383 "type": "function", | 383 "type": "function", |
384 "description": "Modifies the properties of a tab. Properties that are no
t specified in <var>updateProperties</var> are not modified. Note: This function
can be used without requesting the 'tabs' permission in the manifest.", | 384 "description": "Modifies the properties of a tab. Properties that are no
t specified in <var>updateProperties</var> are not modified. Note: This function
can be used without requesting the 'tabs' permission in the manifest.", |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 "name": "removeInfo", | 885 "name": "removeInfo", |
886 "properties": { | 886 "properties": { |
887 "isWindowClosing": {"type": "boolean", "description": "True when t
he tab is being closed because its window is being closed." } | 887 "isWindowClosing": {"type": "boolean", "description": "True when t
he tab is being closed because its window is being closed." } |
888 } | 888 } |
889 } | 889 } |
890 ] | 890 ] |
891 } | 891 } |
892 ] | 892 ] |
893 } | 893 } |
894 ] | 894 ] |
OLD | NEW |