Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Side by Side Diff: chrome/common/extensions/api/web_navigation.json

Issue 10514013: Filtered events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, reland Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/event_filtering_info.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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": "webNavigation", 7 "namespace": "webNavigation",
8 "types": [], 8 "types": [],
9 "functions": [ 9 "functions": [
10 { 10 {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 ] 84 ]
85 } 85 }
86 ] 86 ]
87 } 87 }
88 ], 88 ],
89 "events": [ 89 "events": [
90 { 90 {
91 "name": "onBeforeNavigate", 91 "name": "onBeforeNavigate",
92 "type": "function", 92 "type": "function",
93 "description": "Fired when a navigation is about to occur.", 93 "description": "Fired when a navigation is about to occur.",
94 "options": {
95 "supportsFilters": true,
96 "supportsListeners": true,
97 "supportsRules": false
98 },
94 "parameters": [ 99 "parameters": [
95 { 100 {
96 "type": "object", 101 "type": "object",
97 "name": "details", 102 "name": "details",
98 "properties": { 103 "properties": {
99 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation is about to occur."}, 104 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation is about to occur."},
100 "url": {"type": "string"}, 105 "url": {"type": "string"},
101 "frameId": {"type": "integer", "description": "0 indicates the nav igation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab."}, 106 "frameId": {"type": "integer", "description": "0 indicates the nav igation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab."},
102 "timeStamp": {"type": "number", "description": "The time when the browser was about to start the navigation, in milliseconds since the epoch."} 107 "timeStamp": {"type": "number", "description": "The time when the browser was about to start the navigation, in milliseconds since the epoch."}
103 } 108 }
104 } 109 }
105 ] 110 ]
106 }, 111 },
107 { 112 {
108 "name": "onCommitted", 113 "name": "onCommitted",
109 "type": "function", 114 "type": "function",
110 "description": "Fired when a navigation is committed. The document (and the resources it refers to, such as images and subframes) might still be downloa ding, but at least part of the document has been received from the server and th e browser has decided to switch to the new document.", 115 "description": "Fired when a navigation is committed. The document (and the resources it refers to, such as images and subframes) might still be downloa ding, but at least part of the document has been received from the server and th e browser has decided to switch to the new document.",
116 "options": {
117 "supportsFilters": true,
118 "supportsListeners": true,
119 "supportsRules": false
120 },
111 "parameters": [ 121 "parameters": [
112 { 122 {
113 "type": "object", 123 "type": "object",
114 "name": "details", 124 "name": "details",
115 "properties": { 125 "properties": {
116 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."}, 126 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."},
117 "url": {"type": "string"}, 127 "url": {"type": "string"},
118 "frameId": {"type": "integer", "description": "0 indicates the nav igation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab."}, 128 "frameId": {"type": "integer", "description": "0 indicates the nav igation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab."},
119 "transitionType": {"type": "string", "enum": ["link", "typed", "au to_bookmark", "auto_subframe", "manual_subframe", "generated", "start_page", "fo rm_submit", "reload", "keyword", "keyword_generated"], "description": "Cause of the navigation. The same transition types as defined in the history API are used ."}, 129 "transitionType": {"type": "string", "enum": ["link", "typed", "au to_bookmark", "auto_subframe", "manual_subframe", "generated", "start_page", "fo rm_submit", "reload", "keyword", "keyword_generated"], "description": "Cause of the navigation. The same transition types as defined in the history API are used ."},
120 "transitionQualifiers": {"type": "array", "description": "A list o f transition qualifiers.", "items": {"type": "string", "enum": ["client_redirect ", "server_redirect", "forward_back", "from_address_bar"]}}, 130 "transitionQualifiers": {"type": "array", "description": "A list o f transition qualifiers.", "items": {"type": "string", "enum": ["client_redirect ", "server_redirect", "forward_back", "from_address_bar"]}},
121 "timeStamp": {"type": "number", "description": "The time when the navigation was committed, in milliseconds since the epoch."} 131 "timeStamp": {"type": "number", "description": "The time when the navigation was committed, in milliseconds since the epoch."}
122 } 132 }
123 } 133 }
124 ] 134 ]
125 }, 135 },
126 { 136 {
127 "name": "onDOMContentLoaded", 137 "name": "onDOMContentLoaded",
128 "type": "function", 138 "type": "function",
129 "description": "Fired when the page's DOM is fully constructed, but the referenced resources may not finish loading.", 139 "description": "Fired when the page's DOM is fully constructed, but the referenced resources may not finish loading.",
140 "options": {
141 "supportsFilters": true,
142 "supportsListeners": true,
143 "supportsRules": false
144 },
130 "parameters": [ 145 "parameters": [
131 { 146 {
132 "type": "object", 147 "type": "object",
133 "name": "details", 148 "name": "details",
134 "properties": { 149 "properties": {
135 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."}, 150 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."},
136 "url": {"type": "string"}, 151 "url": {"type": "string"},
137 "frameId": {"type": "integer", "description": "0 indicates the nav igation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab."}, 152 "frameId": {"type": "integer", "description": "0 indicates the nav igation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab."},
138 "timeStamp": {"type": "number", "description": "The time when the page's DOM was fully constructed, in milliseconds since the epoch."} 153 "timeStamp": {"type": "number", "description": "The time when the page's DOM was fully constructed, in milliseconds since the epoch."}
139 } 154 }
140 } 155 }
141 ] 156 ]
142 }, 157 },
143 { 158 {
144 "name": "onCompleted", 159 "name": "onCompleted",
145 "type": "function", 160 "type": "function",
146 "description": "Fired when a document, including the resources it refers to, is completely loaded and initialized.", 161 "description": "Fired when a document, including the resources it refers to, is completely loaded and initialized.",
162 "options": {
163 "supportsFilters": true,
164 "supportsListeners": true,
165 "supportsRules": false
166 },
147 "parameters": [ 167 "parameters": [
148 { 168 {
149 "type": "object", 169 "type": "object",
150 "name": "details", 170 "name": "details",
151 "properties": { 171 "properties": {
152 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."}, 172 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."},
153 "url": {"type": "string"}, 173 "url": {"type": "string"},
154 "frameId": {"type": "integer", "description": "0 indicates the nav igation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab."}, 174 "frameId": {"type": "integer", "description": "0 indicates the nav igation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab."},
155 "timeStamp": {"type": "number", "description": "The time when the document finished loading, in milliseconds since the epoch."} 175 "timeStamp": {"type": "number", "description": "The time when the document finished loading, in milliseconds since the epoch."}
156 } 176 }
157 } 177 }
158 ] 178 ]
159 }, 179 },
160 { 180 {
161 "name": "onErrorOccurred", 181 "name": "onErrorOccurred",
162 "type": "function", 182 "type": "function",
163 "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 na vigation.", 183 "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 na vigation.",
184 "options": {
185 "supportsFilters": true,
186 "supportsListeners": true,
187 "supportsRules": false
188 },
164 "parameters": [ 189 "parameters": [
165 { 190 {
166 "type": "object", 191 "type": "object",
167 "name": "details", 192 "name": "details",
168 "properties": { 193 "properties": {
169 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."}, 194 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."},
170 "url": {"type": "string"}, 195 "url": {"type": "string"},
171 "frameId": {"type": "integer", "description": "0 indicates the nav igation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab."}, 196 "frameId": {"type": "integer", "description": "0 indicates the nav igation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab."},
172 "error": {"type": "string", "description": "The error description. "}, 197 "error": {"type": "string", "description": "The error description. "},
173 "timeStamp": {"type": "number", "description": "The time when the error occurred, in milliseconds since the epoch."} 198 "timeStamp": {"type": "number", "description": "The time when the error occurred, in milliseconds since the epoch."}
174 } 199 }
175 } 200 }
176 ] 201 ]
177 }, 202 },
178 { 203 {
179 "name": "onCreatedNavigationTarget", 204 "name": "onCreatedNavigationTarget",
180 "type": "function", 205 "type": "function",
181 "description": "Fired when a new window, or a new tab in an existing win dow, is created to host a navigation.", 206 "description": "Fired when a new window, or a new tab in an existing win dow, is created to host a navigation.",
207 "options": {
208 "supportsFilters": true,
209 "supportsListeners": true,
210 "supportsRules": false
211 },
182 "parameters": [ 212 "parameters": [
183 { 213 {
184 "type": "object", 214 "type": "object",
185 "name": "details", 215 "name": "details",
186 "properties": { 216 "properties": {
187 "sourceTabId": {"type": "integer", "description": "The ID of the t ab in which the navigation is triggered."}, 217 "sourceTabId": {"type": "integer", "description": "The ID of the t ab in which the navigation is triggered."},
188 "sourceFrameId": {"type": "integer", "description": "The ID of the frame with sourceTabId in which the navigation is triggered. 0 indicates the ma in frame."}, 218 "sourceFrameId": {"type": "integer", "description": "The ID of the frame with sourceTabId in which the navigation is triggered. 0 indicates the ma in frame."},
189 "url": {"type": "string", "description": "The URL to be opened in the new window."}, 219 "url": {"type": "string", "description": "The URL to be opened in the new window."},
190 "tabId": {"type": "integer", "description": "The ID of the tab in which the url is opened"}, 220 "tabId": {"type": "integer", "description": "The ID of the tab in which the url is opened"},
191 "timeStamp": {"type": "number", "description": "The time when the browser was about to create a new view, in milliseconds since the epoch."} 221 "timeStamp": {"type": "number", "description": "The time when the browser was about to create a new view, in milliseconds since the epoch."}
192 } 222 }
193 } 223 }
194 ] 224 ]
195 }, 225 },
196 { 226 {
197 "name": "onReferenceFragmentUpdated", 227 "name": "onReferenceFragmentUpdated",
198 "type": "function", 228 "type": "function",
199 "description": "Fired when the reference fragment of a frame was updated . All future events for that frame will use the updated URL.", 229 "description": "Fired when the reference fragment of a frame was updated . All future events for that frame will use the updated URL.",
230 "options": {
231 "supportsFilters": true,
232 "supportsListeners": true,
233 "supportsRules": false
234 },
200 "parameters": [ 235 "parameters": [
201 { 236 {
202 "type": "object", 237 "type": "object",
203 "name": "details", 238 "name": "details",
204 "properties": { 239 "properties": {
205 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."}, 240 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."},
206 "url": {"type": "string"}, 241 "url": {"type": "string"},
207 "frameId": {"type": "integer", "description": "0 indicates the nav igation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab."}, 242 "frameId": {"type": "integer", "description": "0 indicates the nav igation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab."},
208 "transitionType": {"type": "string", "enum": ["link", "typed", "au to_bookmark", "auto_subframe", "manual_subframe", "generated", "start_page", "fo rm_submit", "reload", "keyword", "keyword_generated"], "description": "Cause of the navigation. The same transition types as defined in the history API are used ."}, 243 "transitionType": {"type": "string", "enum": ["link", "typed", "au to_bookmark", "auto_subframe", "manual_subframe", "generated", "start_page", "fo rm_submit", "reload", "keyword", "keyword_generated"], "description": "Cause of the navigation. The same transition types as defined in the history API are used ."},
209 "transitionQualifiers": {"type": "array", "description": "A list o f transition qualifiers.", "items": {"type": "string", "enum": ["client_redirect ", "server_redirect", "forward_back", "from_address_bar"]}}, 244 "transitionQualifiers": {"type": "array", "description": "A list o f transition qualifiers.", "items": {"type": "string", "enum": ["client_redirect ", "server_redirect", "forward_back", "from_address_bar"]}},
210 "timeStamp": {"type": "number", "description": "The time when the navigation was committed, in milliseconds since the epoch."} 245 "timeStamp": {"type": "number", "description": "The time when the navigation was committed, in milliseconds since the epoch."}
211 } 246 }
212 } 247 }
213 ] 248 ]
214 } 249 }
215 ] 250 ]
216 } 251 }
217 ] 252 ]
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/event_filtering_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698