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 |
68 [ | 69 [ |
69 /** | 70 /** |
70 * chrome.self | 71 * chrome.self |
71 */ | 72 */ |
72 { | 73 { |
73 namespace: "self", | 74 namespace: "self", |
74 types: [ | 75 types: [ |
75 { | 76 { |
76 id: "HTMLWindow", | 77 id: "HTMLWindow", |
77 type: "object" | 78 type: "object" |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 description: "", | 699 description: "", |
699 parameters: [ | 700 parameters: [ |
700 {type: "string", name: "id"}, | 701 {type: "string", name: "id"}, |
701 { | 702 { |
702 type: "object", | 703 type: "object", |
703 name: "childIds", | 704 name: "childIds", |
704 } | 705 } |
705 ] | 706 ] |
706 } | 707 } |
707 ] | 708 ] |
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 ] | |
739 } | 709 } |
740 ] | 710 ] |
OLD | NEW |