OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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": "webview", | 7 "namespace": "webview", |
8 "nodoc": true, | 8 "nodoc": true, |
9 "dependencies": [ "extension", "tabs" ], | |
10 "types": [ | 9 "types": [ |
11 // TODO(fsamuel): We should be usng tabs.InjectDetails. However, due to a | 10 // TODO(fsamuel): We should be usng tabs.InjectDetails. However, due to a |
12 // bug in the JSON compiler, we are currently copying-and-pasting this | 11 // bug in the JSON compiler, we are currently copying-and-pasting this |
13 // type: https://crbug.com/171726. | 12 // type: https://crbug.com/171726. |
14 { | 13 { |
15 "id": "InjectDetails", | 14 "id": "InjectDetails", |
16 "type": "object", | 15 "type": "object", |
17 "description": "Details of the script or CSS to inject. Either the code
or the file property must be set, but both may not be set at the same time.", | 16 "description": "Details of the script or CSS to inject. Either the code
or the file property must be set, but both may not be set at the same time.", |
18 "properties": { | 17 "properties": { |
19 "code": {"type": "string", "optional": true, "description": "JavaScrip
t or CSS code to inject."}, | 18 "code": {"type": "string", "optional": true, "description": "JavaScrip
t or CSS code to inject."}, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 "description": "The result of the script in every injected frame
." | 62 "description": "The result of the script in every injected frame
." |
64 } | 63 } |
65 ] | 64 ] |
66 } | 65 } |
67 ] | 66 ] |
68 } | 67 } |
69 ] | 68 ] |
70 } | 69 } |
71 ] | 70 ] |
72 | 71 |
OLD | NEW |