| 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 19 matching lines...) Expand all Loading... |
| 30 "optional": true, | 30 "optional": true, |
| 31 "description": "Matches if all of the CSS selectors in the array mat
ch displayed elements in a frame with the same origin as the page's main frame.
All selectors in this array must be <a href=\"http://www.w3.org/TR/selectors4/#
compound\">compound selectors</a> to speed up matching. Note that listing hundr
eds of CSS selectors or CSS selectors that match hundreds of times per page can
still slow down web sites.", | 31 "description": "Matches if all of the CSS selectors in the array mat
ch displayed elements in a frame with the same origin as the page's main frame.
All selectors in this array must be <a href=\"http://www.w3.org/TR/selectors4/#
compound\">compound selectors</a> to speed up matching. Note that listing hundr
eds of CSS selectors or CSS selectors that match hundreds of times per page can
still slow down web sites.", |
| 32 // TODO(jyasskin): Figure out if we want to require all | 32 // TODO(jyasskin): Figure out if we want to require all |
| 33 // the selectors to match in the same frame, or allow several | 33 // the selectors to match in the same frame, or allow several |
| 34 // frames to contribute to a match. | 34 // frames to contribute to a match. |
| 35 "items": { "type": "string" } | 35 "items": { "type": "string" } |
| 36 // }, | 36 // }, |
| 37 // TODO: "text": { | 37 // TODO: "text": { |
| 38 // "type": "array", | 38 // "type": "array", |
| 39 // "optional": true, | 39 // "optional": true, |
| 40 // "description": "Matches if all of the regular expressions in the a
rray match text in the page. The regular expressions use the <a href=\"http://co
de.google.com/p/re2/wiki/Syntax\">RE2 syntax</a>.", | 40 // "description": "Matches if all of the regular expressions in the a
rray match text in the page. The regular expressions use the <a href=\"https://g
ithub.com/google/re2/blob/master/doc/syntax.txt\">RE2 syntax</a>.", |
| 41 // "items": { "type": "string" } | 41 // "items": { "type": "string" } |
| 42 }, | 42 }, |
| 43 "isBookmarked": { | 43 "isBookmarked": { |
| 44 "type": "boolean", | 44 "type": "boolean", |
| 45 "description": "Matches if the bookmarked state of the page is equal
to the specified value. Requres the <a href='declare_permissions'>bookmarks per
mission</a>.", | 45 "description": "Matches if the bookmarked state of the page is equal
to the specified value. Requres the <a href='declare_permissions'>bookmarks per
mission</a>.", |
| 46 "optional": true | 46 "optional": true |
| 47 }, | 47 }, |
| 48 "instanceType": { | 48 "instanceType": { |
| 49 "type": "string", "enum": ["declarativeContent.PageStateMatcher"], | 49 "type": "string", "enum": ["declarativeContent.PageStateMatcher"], |
| 50 "nodoc": true | 50 "nodoc": true |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 "actions": [ | 147 "actions": [ |
| 148 "declarativeContent.RequestContentScript", | 148 "declarativeContent.RequestContentScript", |
| 149 "declarativeContent.SetIcon", | 149 "declarativeContent.SetIcon", |
| 150 "declarativeContent.ShowPageAction" | 150 "declarativeContent.ShowPageAction" |
| 151 ] | 151 ] |
| 152 } | 152 } |
| 153 } | 153 } |
| 154 ] | 154 ] |
| 155 } | 155 } |
| 156 ] | 156 ] |
| OLD | NEW |