| 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 22 matching lines...) Expand all Loading... |
| 33 // "items": { "type": "string" } | 33 // "items": { "type": "string" } |
| 34 }, | 34 }, |
| 35 "instanceType": { | 35 "instanceType": { |
| 36 "type": "string", "enum": ["declarativeContent.PageStateMatcher"], | 36 "type": "string", "enum": ["declarativeContent.PageStateMatcher"], |
| 37 "nodoc": true | 37 "nodoc": true |
| 38 } | 38 } |
| 39 } | 39 } |
| 40 }, | 40 }, |
| 41 { | 41 { |
| 42 "id": "ShowPageAction", | 42 "id": "ShowPageAction", |
| 43 "description": "Declarative event action that shows the extension's $(re
f:pageAction page action) while the corresponding conditions are met. This acti
on can be used without <a href=\"declare_permissions.html#host-permissions\">hos
t permissions</a>, but the extension must have a page action. If the extension
takes the <a href=\"activeTab.html\">activeTab</a> permission, a click on the pa
ge action will grant access to the active tab.", | 43 "description": "Declarative event action that shows the extension's $(re
f:pageAction page action) while the corresponding conditions are met. This acti
on can be used without <a href=\"declare_permissions#host-permissions\">host per
missions</a>, but the extension must have a page action. If the extension takes
the <a href=\"activeTab.html\">activeTab</a> permission, a click on the page ac
tion will grant access to the active tab.", |
| 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 "functions": [ | 53 "functions": [ |
| 54 ], | 54 ], |
| 55 "events": [ | 55 "events": [ |
| 56 { | 56 { |
| 57 "name": "onPageChanged", | 57 "name": "onPageChanged", |
| 58 "options": { | 58 "options": { |
| 59 "supportsListeners": false, | 59 "supportsListeners": false, |
| 60 "supportsRules": true, | 60 "supportsRules": true, |
| 61 "conditions": ["declarativeContent.PageStateMatcher"], | 61 "conditions": ["declarativeContent.PageStateMatcher"], |
| 62 "actions": [ | 62 "actions": [ |
| 63 "declarativeContent.ShowPageAction" | 63 "declarativeContent.ShowPageAction" |
| 64 ] | 64 ] |
| 65 } | 65 } |
| 66 } | 66 } |
| 67 ] | 67 ] |
| 68 } | 68 } |
| 69 ] | 69 ] |
| OLD | NEW |