| 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": "declarativeContent", | 7 "namespace": "declarativeContent", |
| 8 "description": "Use the <code>chrome.declarativeContent</code> API to take a
ctions depending on the content of a page, without requiring permission to read
the page's content.", | 8 "description": "Use the <code>chrome.declarativeContent</code> API to take a
ctions depending on the content of a page, without requiring permission to read
the page's content.", |
| 9 "types": [ | 9 "types": [ |
| 10 { | 10 { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 "type": "object", | 44 "type": "object", |
| 45 "properties": { | 45 "properties": { |
| 46 "instanceType": { | 46 "instanceType": { |
| 47 "type": "string", "enum": ["declarativeContent.ShowPageAction"], | 47 "type": "string", "enum": ["declarativeContent.ShowPageAction"], |
| 48 "nodoc": true | 48 "nodoc": true |
| 49 } | 49 } |
| 50 } | 50 } |
| 51 }, | 51 }, |
| 52 { | 52 { |
| 53 "id": "RequestContentScript", | 53 "id": "RequestContentScript", |
| 54 "description": "Declarative event action that injects a content script."
, | 54 "description": "Declarative event action that injects a content script.
<p><b>WARNING:</b> This action is still experimental and is not supported on sta
ble builds of Chrome.</p>", |
| 55 "type": "object", | 55 "type": "object", |
| 56 "properties": { | 56 "properties": { |
| 57 "css": { | 57 "css": { |
| 58 "type": "array", | 58 "type": "array", |
| 59 "optional": true, | 59 "optional": true, |
| 60 "description": "Names of CSS files to be injected as a part of the c
ontent script.", | 60 "description": "Names of CSS files to be injected as a part of the c
ontent script.", |
| 61 "items": { "type": "string" } | 61 "items": { "type": "string" } |
| 62 }, | 62 }, |
| 63 "js": { | 63 "js": { |
| 64 "type": "array", | 64 "type": "array", |
| (...skipping 29 matching lines...) Expand all Loading... |
| 94 "conditions": ["declarativeContent.PageStateMatcher"], | 94 "conditions": ["declarativeContent.PageStateMatcher"], |
| 95 "actions": [ | 95 "actions": [ |
| 96 "declarativeContent.RequestContentScript", | 96 "declarativeContent.RequestContentScript", |
| 97 "declarativeContent.ShowPageAction" | 97 "declarativeContent.ShowPageAction" |
| 98 ] | 98 ] |
| 99 } | 99 } |
| 100 } | 100 } |
| 101 ] | 101 ] |
| 102 } | 102 } |
| 103 ] | 103 ] |
| OLD | NEW |