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> module to tak
e actions depending on the content of a page, without requiring permission to re
ad the page's content.", |
| 9 "availability": "Trunk", |
8 "documentation_permissions_required": ["declarative", "declarativeContent"], | 10 "documentation_permissions_required": ["declarative", "declarativeContent"], |
9 "types": [ | 11 "types": [ |
10 { | 12 { |
11 "id": "PageStateMatcher", | 13 "id": "PageStateMatcher", |
12 "type": "object", | 14 "type": "object", |
13 "description": "Matches the state of a web page by various criteria.", | 15 "description": "Matches the state of a web page by various criteria.", |
14 "properties": { | 16 "properties": { |
15 "pageUrl": { | 17 "pageUrl": { |
16 "$ref": "events.UrlFilter", | 18 "$ref": "events.UrlFilter", |
17 "description": "Matches if the condition of the UrlFilter are fulfil
led for the top-level URL of the page.", | 19 "description": "Matches if the condition of the UrlFilter are fulfil
led for the top-level URL of the page.", |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 "supportsRules": true, | 66 "supportsRules": true, |
65 "conditions": ["declarativeContent.PageStateMatcher"], | 67 "conditions": ["declarativeContent.PageStateMatcher"], |
66 "actions": [ | 68 "actions": [ |
67 "declarativeContent.ShowPageAction" | 69 "declarativeContent.ShowPageAction" |
68 ] | 70 ] |
69 } | 71 } |
70 } | 72 } |
71 ] | 73 ] |
72 } | 74 } |
73 ] | 75 ] |
OLD | NEW |