| 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 "documentation_permissions_required": ["declarative", "declarativeContent"], | |
| 10 "types": [ | 9 "types": [ |
| 11 { | 10 { |
| 12 "id": "PageStateMatcher", | 11 "id": "PageStateMatcher", |
| 13 "type": "object", | 12 "type": "object", |
| 14 "description": "Matches the state of a web page by various criteria.", | 13 "description": "Matches the state of a web page by various criteria.", |
| 15 "properties": { | 14 "properties": { |
| 16 "pageUrl": { | 15 "pageUrl": { |
| 17 "$ref": "events.UrlFilter", | 16 "$ref": "events.UrlFilter", |
| 18 "description": "Matches if the condition of the UrlFilter are fulfil
led for the top-level URL of the page.", | 17 "description": "Matches if the condition of the UrlFilter are fulfil
led for the top-level URL of the page.", |
| 19 "optional": true | 18 "optional": true |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 "supportsRules": true, | 60 "supportsRules": true, |
| 62 "conditions": ["declarativeContent.PageStateMatcher"], | 61 "conditions": ["declarativeContent.PageStateMatcher"], |
| 63 "actions": [ | 62 "actions": [ |
| 64 "declarativeContent.ShowPageAction" | 63 "declarativeContent.ShowPageAction" |
| 65 ] | 64 ] |
| 66 } | 65 } |
| 67 } | 66 } |
| 68 ] | 67 ] |
| 69 } | 68 } |
| 70 ] | 69 ] |
| OLD | NEW |