Index: chrome/common/extensions/api/web_navigation.json |
=================================================================== |
--- chrome/common/extensions/api/web_navigation.json (revision 151420) |
+++ chrome/common/extensions/api/web_navigation.json (working copy) |
@@ -96,14 +96,11 @@ |
"name": "onBeforeNavigate", |
"type": "function", |
"description": "Fired when a navigation is about to occur.", |
- "filters": [ |
- { |
- "name": "url", |
- "type": "array", |
- "items": { "$ref": "events.UrlFilter" }, |
- "description": "Conditions that the URL being navigated to must satisfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event." |
- } |
- ], |
+ "options": { |
+ "supportsFilters": true, |
+ "supportsListeners": true, |
+ "supportsRules": false |
+ }, |
"parameters": [ |
{ |
"type": "object", |
@@ -122,14 +119,11 @@ |
"name": "onCommitted", |
"type": "function", |
"description": "Fired when a navigation is committed. The document (and the resources it refers to, such as images and subframes) might still be downloading, but at least part of the document has been received from the server and the browser has decided to switch to the new document.", |
- "filters": [ |
- { |
- "name": "url", |
- "type": "array", |
- "items": { "$ref": "events.UrlFilter" }, |
- "description": "Conditions that the URL being navigated to must satisfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event." |
- } |
- ], |
+ "options": { |
+ "supportsFilters": true, |
+ "supportsListeners": true, |
+ "supportsRules": false |
+ }, |
"parameters": [ |
{ |
"type": "object", |
@@ -150,14 +144,11 @@ |
"name": "onDOMContentLoaded", |
"type": "function", |
"description": "Fired when the page's DOM is fully constructed, but the referenced resources may not finish loading.", |
- "filters": [ |
- { |
- "name": "url", |
- "type": "array", |
- "items": { "$ref": "events.UrlFilter" }, |
- "description": "Conditions that the URL being navigated to must satisfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event." |
- } |
- ], |
+ "options": { |
+ "supportsFilters": true, |
+ "supportsListeners": true, |
+ "supportsRules": false |
+ }, |
"parameters": [ |
{ |
"type": "object", |
@@ -176,14 +167,11 @@ |
"name": "onCompleted", |
"type": "function", |
"description": "Fired when a document, including the resources it refers to, is completely loaded and initialized.", |
- "filters": [ |
- { |
- "name": "url", |
- "type": "array", |
- "items": { "$ref": "events.UrlFilter" }, |
- "description": "Conditions that the URL being navigated to must satisfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event." |
- } |
- ], |
+ "options": { |
+ "supportsFilters": true, |
+ "supportsListeners": true, |
+ "supportsRules": false |
+ }, |
"parameters": [ |
{ |
"type": "object", |
@@ -202,14 +190,11 @@ |
"name": "onErrorOccurred", |
"type": "function", |
"description": "Fired when an error occurs and the navigation is aborted. This can happen if either a network error occurred, or the user aborted the navigation.", |
- "filters": [ |
- { |
- "name": "url", |
- "type": "array", |
- "items": { "$ref": "events.UrlFilter" }, |
- "description": "Conditions that the URL being navigated to must satisfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event." |
- } |
- ], |
+ "options": { |
+ "supportsFilters": true, |
+ "supportsListeners": true, |
+ "supportsRules": false |
+ }, |
"parameters": [ |
{ |
"type": "object", |
@@ -229,14 +214,11 @@ |
"name": "onCreatedNavigationTarget", |
"type": "function", |
"description": "Fired when a new window, or a new tab in an existing window, is created to host a navigation.", |
- "filters": [ |
- { |
- "name": "url", |
- "type": "array", |
- "items": { "$ref": "events.UrlFilter" }, |
- "description": "Conditions that the URL being navigated to must satisfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event." |
- } |
- ], |
+ "options": { |
+ "supportsFilters": true, |
+ "supportsListeners": true, |
+ "supportsRules": false |
+ }, |
"parameters": [ |
{ |
"type": "object", |
@@ -256,14 +238,11 @@ |
"name": "onReferenceFragmentUpdated", |
"type": "function", |
"description": "Fired when the reference fragment of a frame was updated. All future events for that frame will use the updated URL.", |
- "filters": [ |
- { |
- "name": "url", |
- "type": "array", |
- "items": { "$ref": "events.UrlFilter" }, |
- "description": "Conditions that the URL being navigated to must satisfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event." |
- } |
- ], |
+ "options": { |
+ "supportsFilters": true, |
+ "supportsListeners": true, |
+ "supportsRules": false |
+ }, |
"parameters": [ |
{ |
"type": "object", |
@@ -284,6 +263,11 @@ |
"name": "onTabReplaced", |
"type": "function", |
"description": "Fired when the contents of the tab is replaced by a different (usually previously pre-rendered) tab.", |
+ "options": { |
+ "supportsFilters": false, |
+ "supportsListeners": true, |
+ "supportsRules": false |
+ }, |
"parameters": [ |
{ |
"type": "object", |
@@ -300,14 +284,11 @@ |
"name": "onHistoryStateUpdated", |
"type": "function", |
"description": "Fired when the frame's history was updated to a new URL. All future events for that frame will use the updated URL.", |
- "filters": [ |
- { |
- "name": "url", |
- "type": "array", |
- "items": { "$ref": "events.UrlFilter" }, |
- "description": "Conditions that the URL being navigated to must satisfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event." |
- } |
- ], |
+ "options": { |
+ "supportsFilters": true, |
+ "supportsListeners": true, |
+ "supportsRules": false |
+ }, |
"parameters": [ |
{ |
"type": "object", |