OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 * This file defines the extensions api functions, events and types. It is | 6 * This file defines the extensions api functions, events and types. It is |
7 * json-structured list of api "modules". Each module has | 7 * json-structured list of api "modules". Each module has |
8 * | 8 * |
9 * namespace: "<apiname>", // i.e. "windows" which becomes visible to | 9 * namespace: "<apiname>", // i.e. "windows" which becomes visible to |
10 * // extensions as chrome.windows. | 10 * // extensions as chrome.windows. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 * ] | 58 * ] |
59 * | 59 * |
60 * WARNING: Do not use these referenced types in module function parameters. | 60 * WARNING: Do not use these referenced types in module function parameters. |
61 * They are not yet properly validated. They are currently safe to use in | 61 * They are not yet properly validated. They are currently safe to use in |
62 * callback parameters and event parameters. | 62 * callback parameters and event parameters. |
63 * | 63 * |
64 * TODO(rafaelw): Validate callback arguments in debug and unittests | 64 * TODO(rafaelw): Validate callback arguments in debug and unittests |
65 * TODO(rafaelw): Validate event arguments in debug and unittests | 65 * TODO(rafaelw): Validate event arguments in debug and unittests |
66 * TODO(rafaelw): Support $ref for json_schema validation. | 66 * TODO(rafaelw): Support $ref for json_schema validation. |
67 */ | 67 */ |
68 | |
69 [ | 68 [ |
70 /** | 69 /** |
71 * chrome.self | 70 * chrome.self |
72 */ | 71 */ |
73 { | 72 { |
74 namespace: "self", | 73 namespace: "self", |
75 types: [ | 74 types: [ |
76 { | 75 { |
77 id: "HTMLWindow", | 76 id: "HTMLWindow", |
78 type: "object" | 77 type: "object" |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 description: "", | 698 description: "", |
700 parameters: [ | 699 parameters: [ |
701 {type: "string", name: "id"}, | 700 {type: "string", name: "id"}, |
702 { | 701 { |
703 type: "object", | 702 type: "object", |
704 name: "childIds", | 703 name: "childIds", |
705 } | 704 } |
706 ] | 705 ] |
707 } | 706 } |
708 ] | 707 ] |
| 708 }, |
| 709 |
| 710 /** |
| 711 * chrome.toolstrip |
| 712 */ |
| 713 { |
| 714 namespace: "toolstrip", |
| 715 types: [], |
| 716 functions: [ |
| 717 { |
| 718 name: "expand", |
| 719 type: "function", |
| 720 description: "", |
| 721 parameters: [ |
| 722 {type: "integer", name: "height", minimum: 0}, |
| 723 {type: "string", name: "url", optional: true}, |
| 724 {type: "function", name: "callback", optional: true} |
| 725 ] |
| 726 }, |
| 727 { |
| 728 name: "collapse", |
| 729 type: "function", |
| 730 description: "", |
| 731 parameters: [ |
| 732 {type: "string", name: "url", optional: true}, |
| 733 {type: "function", name: "callback", optional: true} |
| 734 ] |
| 735 } |
| 736 ], |
| 737 events: [ |
| 738 ] |
709 } | 739 } |
710 ] | 740 ] |
OLD | NEW |