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

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

Issue 1413543005: Use FrameTreeNode ID as frameId in extension APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add override specifier to destructor Created 5 years 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
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 "description": "Use the <code>chrome.webNavigation</code> API to receive not ifications about the status of navigation requests in-flight.", 8 "description": "Use the <code>chrome.webNavigation</code> API to receive not ifications about the status of navigation requests in-flight.",
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 13 matching lines...) Expand all
24 "name": "getFrame", 24 "name": "getFrame",
25 "type": "function", 25 "type": "function",
26 "description": "Retrieves information about the given frame. A frame ref ers to an &lt;iframe&gt; or a &lt;frame&gt; of a web page and is identified by a tab ID and a frame ID.", 26 "description": "Retrieves information about the given frame. A frame ref ers to an &lt;iframe&gt; or a &lt;frame&gt; of a web page and is identified by a tab ID and a frame ID.",
27 "parameters": [ 27 "parameters": [
28 { 28 {
29 "type": "object", 29 "type": "object",
30 "name": "details", 30 "name": "details",
31 "description": "Information about the frame to retrieve information about.", 31 "description": "Information about the frame to retrieve information about.",
32 "properties": { 32 "properties": {
33 "tabId": { "type": "integer", "minimum": 0, "description": "The ID of the tab in which the frame is." }, 33 "tabId": { "type": "integer", "minimum": 0, "description": "The ID of the tab in which the frame is." },
34 "processId": {"type": "integer", "description": "The ID of the pro cess runs the renderer for this tab."}, 34 "processId": {
35 "type": "integer",
36 "optional": true,
37 "deprecated": "Frames are now uniquely identified by their frame ID; the process ID is no longer needed and therefore ignored.",
Devlin 2015/12/12 14:25:00 nitty nit: uniquely identified by tabId + frameID
robwu 2015/12/14 20:55:41 Done.
38 "description": "The ID of the process runs the renderer for this tab."
39 },
35 "frameId": { "type": "integer", "minimum": 0, "description": "The ID of the frame in the given tab." } 40 "frameId": { "type": "integer", "minimum": 0, "description": "The ID of the frame in the given tab." }
36 } 41 }
37 }, 42 },
38 { 43 {
39 "type": "function", "name": "callback", "parameters": [ 44 "type": "function", "name": "callback", "parameters": [
40 { 45 {
41 "type": "object", 46 "type": "object",
42 "name": "details", 47 "name": "details",
43 "optional": true, 48 "optional": true,
44 "description": "Information about the requested frame, null if t he specified frame ID and/or tab ID are invalid.", 49 "description": "Information about the requested frame, null if t he specified frame ID and/or tab ID are invalid.",
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 "optional": true, 88 "optional": true,
84 "items": { 89 "items": {
85 "type": "object", 90 "type": "object",
86 "properties": { 91 "properties": {
87 "errorOccurred": { 92 "errorOccurred": {
88 "type": "boolean", 93 "type": "boolean",
89 "description": "True if the last navigation in this frame was interrupted by an error, i.e. the onErrorOccurred event fired." 94 "description": "True if the last navigation in this frame was interrupted by an error, i.e. the onErrorOccurred event fired."
90 }, 95 },
91 "processId": { 96 "processId": {
92 "type": "integer", 97 "type": "integer",
93 "description": "The ID of the process runs the renderer fo r this tab." 98 "description": "The ID of the process runs the renderer fo r this frame."
94 }, 99 },
95 "frameId": { 100 "frameId": {
96 "type": "integer", 101 "type": "integer",
97 "description": "The ID of the frame. 0 indicates that this is the main frame; a positive value indicates the ID of a subframe." 102 "description": "The ID of the frame. 0 indicates that this is the main frame; a positive value indicates the ID of a subframe."
98 }, 103 },
99 "parentFrameId": { 104 "parentFrameId": {
100 "type": "integer", 105 "type": "integer",
101 "description": "ID of frame that wraps the frame. Set to - 1 of no parent frame exists." 106 "description": "ID of frame that wraps the frame. Set to - 1 of no parent frame exists."
102 }, 107 },
103 "url": { 108 "url": {
(...skipping 21 matching lines...) Expand all
125 "description": "Conditions that the URL being navigated to must sati sfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event." 130 "description": "Conditions that the URL being navigated to must sati sfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event."
126 } 131 }
127 ], 132 ],
128 "parameters": [ 133 "parameters": [
129 { 134 {
130 "type": "object", 135 "type": "object",
131 "name": "details", 136 "name": "details",
132 "properties": { 137 "properties": {
133 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation is about to occur."}, 138 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation is about to occur."},
134 "url": {"type": "string"}, 139 "url": {"type": "string"},
135 "processId": {"type": "integer", "description": "The ID of the pro cess runs the renderer for this tab."}, 140 "processId": {"type": "integer", "description": "The ID of the pro cess runs the renderer for this frame."},
136 "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 for a given tab and process."}, 141 "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 for a given tab and process."},
137 "parentFrameId": {"type": "integer", "description": "ID of frame t hat wraps the frame. Set to -1 of no parent frame exists."}, 142 "parentFrameId": {"type": "integer", "description": "ID of frame t hat wraps the frame. Set to -1 of no parent frame exists."},
138 "timeStamp": {"type": "number", "description": "The time when the browser was about to start the navigation, in milliseconds since the epoch."} 143 "timeStamp": {"type": "number", "description": "The time when the browser was about to start the navigation, in milliseconds since the epoch."}
139 } 144 }
140 } 145 }
141 ] 146 ]
142 }, 147 },
143 { 148 {
144 "name": "onCommitted", 149 "name": "onCommitted",
145 "type": "function", 150 "type": "function",
146 "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.", 151 "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.",
147 "filters": [ 152 "filters": [
148 { 153 {
149 "name": "url", 154 "name": "url",
150 "type": "array", 155 "type": "array",
151 "items": { "$ref": "events.UrlFilter" }, 156 "items": { "$ref": "events.UrlFilter" },
152 "description": "Conditions that the URL being navigated to must sati sfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event." 157 "description": "Conditions that the URL being navigated to must sati sfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event."
153 } 158 }
154 ], 159 ],
155 "parameters": [ 160 "parameters": [
156 { 161 {
157 "type": "object", 162 "type": "object",
158 "name": "details", 163 "name": "details",
159 "properties": { 164 "properties": {
160 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."}, 165 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."},
161 "url": {"type": "string"}, 166 "url": {"type": "string"},
162 "processId": {"type": "integer", "description": "The ID of the pro cess runs the renderer for this tab."}, 167 "processId": {"type": "integer", "description": "The ID of the pro cess runs the renderer for this frame."},
163 "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."}, 168 "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."},
164 "transitionType": {"$ref": "TransitionType", "description": "Cause of the navigation."}, 169 "transitionType": {"$ref": "TransitionType", "description": "Cause of the navigation."},
165 "transitionQualifiers": {"type": "array", "description": "A list o f transition qualifiers.", "items": {"$ref": "TransitionQualifier"}}, 170 "transitionQualifiers": {"type": "array", "description": "A list o f transition qualifiers.", "items": {"$ref": "TransitionQualifier"}},
166 "timeStamp": {"type": "number", "description": "The time when the navigation was committed, in milliseconds since the epoch."} 171 "timeStamp": {"type": "number", "description": "The time when the navigation was committed, in milliseconds since the epoch."}
167 } 172 }
168 } 173 }
169 ] 174 ]
170 }, 175 },
171 { 176 {
172 "name": "onDOMContentLoaded", 177 "name": "onDOMContentLoaded",
173 "type": "function", 178 "type": "function",
174 "description": "Fired when the page's DOM is fully constructed, but the referenced resources may not finish loading.", 179 "description": "Fired when the page's DOM is fully constructed, but the referenced resources may not finish loading.",
175 "filters": [ 180 "filters": [
176 { 181 {
177 "name": "url", 182 "name": "url",
178 "type": "array", 183 "type": "array",
179 "items": { "$ref": "events.UrlFilter" }, 184 "items": { "$ref": "events.UrlFilter" },
180 "description": "Conditions that the URL being navigated to must sati sfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event." 185 "description": "Conditions that the URL being navigated to must sati sfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event."
181 } 186 }
182 ], 187 ],
183 "parameters": [ 188 "parameters": [
184 { 189 {
185 "type": "object", 190 "type": "object",
186 "name": "details", 191 "name": "details",
187 "properties": { 192 "properties": {
188 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."}, 193 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."},
189 "url": {"type": "string"}, 194 "url": {"type": "string"},
190 "processId": {"type": "integer", "description": "The ID of the pro cess runs the renderer for this tab."}, 195 "processId": {"type": "integer", "description": "The ID of the pro cess runs the renderer for this frame."},
191 "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."},
192 "timeStamp": {"type": "number", "description": "The time when the page's DOM was fully constructed, in milliseconds since the epoch."} 197 "timeStamp": {"type": "number", "description": "The time when the page's DOM was fully constructed, in milliseconds since the epoch."}
193 } 198 }
194 } 199 }
195 ] 200 ]
196 }, 201 },
197 { 202 {
198 "name": "onCompleted", 203 "name": "onCompleted",
199 "type": "function", 204 "type": "function",
200 "description": "Fired when a document, including the resources it refers to, is completely loaded and initialized.", 205 "description": "Fired when a document, including the resources it refers to, is completely loaded and initialized.",
201 "filters": [ 206 "filters": [
202 { 207 {
203 "name": "url", 208 "name": "url",
204 "type": "array", 209 "type": "array",
205 "items": { "$ref": "events.UrlFilter" }, 210 "items": { "$ref": "events.UrlFilter" },
206 "description": "Conditions that the URL being navigated to must sati sfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event." 211 "description": "Conditions that the URL being navigated to must sati sfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event."
207 } 212 }
208 ], 213 ],
209 "parameters": [ 214 "parameters": [
210 { 215 {
211 "type": "object", 216 "type": "object",
212 "name": "details", 217 "name": "details",
213 "properties": { 218 "properties": {
214 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."}, 219 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."},
215 "url": {"type": "string"}, 220 "url": {"type": "string"},
216 "processId": {"type": "integer", "description": "The ID of the pro cess runs the renderer for this tab."}, 221 "processId": {"type": "integer", "description": "The ID of the pro cess runs the renderer for this frame."},
217 "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."}, 222 "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."},
218 "timeStamp": {"type": "number", "description": "The time when the document finished loading, in milliseconds since the epoch."} 223 "timeStamp": {"type": "number", "description": "The time when the document finished loading, in milliseconds since the epoch."}
219 } 224 }
220 } 225 }
221 ] 226 ]
222 }, 227 },
223 { 228 {
224 "name": "onErrorOccurred", 229 "name": "onErrorOccurred",
225 "type": "function", 230 "type": "function",
226 "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.", 231 "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.",
227 "filters": [ 232 "filters": [
228 { 233 {
229 "name": "url", 234 "name": "url",
230 "type": "array", 235 "type": "array",
231 "items": { "$ref": "events.UrlFilter" }, 236 "items": { "$ref": "events.UrlFilter" },
232 "description": "Conditions that the URL being navigated to must sati sfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event." 237 "description": "Conditions that the URL being navigated to must sati sfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event."
233 } 238 }
234 ], 239 ],
235 "parameters": [ 240 "parameters": [
236 { 241 {
237 "type": "object", 242 "type": "object",
238 "name": "details", 243 "name": "details",
239 "properties": { 244 "properties": {
240 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."}, 245 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."},
241 "url": {"type": "string"}, 246 "url": {"type": "string"},
242 "processId": {"type": "integer", "description": "The ID of the pro cess runs the renderer for this tab."}, 247 "processId": {"type": "integer", "description": "The ID of the pro cess runs the renderer for this frame."},
243 "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."}, 248 "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."},
244 "error": {"type": "string", "description": "The error description. "}, 249 "error": {"type": "string", "description": "The error description. "},
245 "timeStamp": {"type": "number", "description": "The time when the error occurred, in milliseconds since the epoch."} 250 "timeStamp": {"type": "number", "description": "The time when the error occurred, in milliseconds since the epoch."}
246 } 251 }
247 } 252 }
248 ] 253 ]
249 }, 254 },
250 { 255 {
251 "name": "onCreatedNavigationTarget", 256 "name": "onCreatedNavigationTarget",
252 "type": "function", 257 "type": "function",
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 "description": "Conditions that the URL being navigated to must sati sfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event." 291 "description": "Conditions that the URL being navigated to must sati sfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event."
287 } 292 }
288 ], 293 ],
289 "parameters": [ 294 "parameters": [
290 { 295 {
291 "type": "object", 296 "type": "object",
292 "name": "details", 297 "name": "details",
293 "properties": { 298 "properties": {
294 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."}, 299 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."},
295 "url": {"type": "string"}, 300 "url": {"type": "string"},
296 "processId": {"type": "integer", "description": "The ID of the pro cess runs the renderer for this tab."}, 301 "processId": {"type": "integer", "description": "The ID of the pro cess runs the renderer for this frame."},
297 "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."}, 302 "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."},
298 "transitionType": {"$ref": "TransitionType", "description": "Cause of the navigation."}, 303 "transitionType": {"$ref": "TransitionType", "description": "Cause of the navigation."},
299 "transitionQualifiers": {"type": "array", "description": "A list o f transition qualifiers.", "items": {"$ref": "TransitionQualifier"}}, 304 "transitionQualifiers": {"type": "array", "description": "A list o f transition qualifiers.", "items": {"$ref": "TransitionQualifier"}},
300 "timeStamp": {"type": "number", "description": "The time when the navigation was committed, in milliseconds since the epoch."} 305 "timeStamp": {"type": "number", "description": "The time when the navigation was committed, in milliseconds since the epoch."}
301 } 306 }
302 } 307 }
303 ] 308 ]
304 }, 309 },
305 { 310 {
306 "name": "onTabReplaced", 311 "name": "onTabReplaced",
(...skipping 23 matching lines...) Expand all
330 "description": "Conditions that the URL being navigated to must sati sfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event." 335 "description": "Conditions that the URL being navigated to must sati sfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event."
331 } 336 }
332 ], 337 ],
333 "parameters": [ 338 "parameters": [
334 { 339 {
335 "type": "object", 340 "type": "object",
336 "name": "details", 341 "name": "details",
337 "properties": { 342 "properties": {
338 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."}, 343 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."},
339 "url": {"type": "string"}, 344 "url": {"type": "string"},
340 "processId": {"type": "integer", "description": "The ID of the pro cess runs the renderer for this tab."}, 345 "processId": {"type": "integer", "description": "The ID of the pro cess runs the renderer for this frame."},
341 "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."}, 346 "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."},
342 "transitionType": {"$ref": "TransitionType", "description": "Cause of the navigation."}, 347 "transitionType": {"$ref": "TransitionType", "description": "Cause of the navigation."},
343 "transitionQualifiers": {"type": "array", "description": "A list o f transition qualifiers.", "items": {"$ref": "TransitionQualifier"}}, 348 "transitionQualifiers": {"type": "array", "description": "A list o f transition qualifiers.", "items": {"$ref": "TransitionQualifier"}},
344 "timeStamp": {"type": "number", "description": "The time when the navigation was committed, in milliseconds since the epoch."} 349 "timeStamp": {"type": "number", "description": "The time when the navigation was committed, in milliseconds since the epoch."}
345 } 350 }
346 } 351 }
347 ] 352 ]
348 } 353 }
349 ] 354 ]
350 } 355 }
351 ] 356 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698