| 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": "webNavigation", | 7 "namespace": "webNavigation", |
| 8 "types": [], | 8 "types": [], |
| 9 "functions": [ | 9 "functions": [ |
| 10 { | 10 { |
| 11 "name": "getFrame", | 11 "name": "getFrame", |
| 12 "type": "function", | 12 "type": "function", |
| 13 "description": "Retrieves information about the given frame. A frame ref
ers to an <iframe> or a <frame> of a web page and is identified by a
tab ID and a frame ID.", | 13 "description": "Retrieves information about the given frame. A frame ref
ers to an <iframe> or a <frame> of a web page and is identified by a
tab ID and a frame ID.", |
| 14 "parameters": [ | 14 "parameters": [ |
| 15 { | 15 { |
| 16 "type": "object", | 16 "type": "object", |
| 17 "name": "details", | 17 "name": "details", |
| 18 "description": "Information about the frame to retrieve information
about.", | 18 "description": "Information about the frame to retrieve information
about.", |
| 19 "properties": { | 19 "properties": { |
| 20 "tabId": { "type": "integer", "minimum": 0, "description": "The ID
of the tab in which the frame is." }, | 20 "tabId": { "type": "integer", "minimum": 0, "description": "The ID
of the tab in which the frame is." }, |
| 21 "processId": {"type": "integer", "description": "The ID of the pro
cess runs the renderer for this tab."}, |
| 21 "frameId": { "type": "integer", "minimum": 0, "description": "The
ID of the frame in the given tab." } | 22 "frameId": { "type": "integer", "minimum": 0, "description": "The
ID of the frame in the given tab." } |
| 22 } | 23 } |
| 23 }, | 24 }, |
| 24 { | 25 { |
| 25 "type": "function", "name": "callback", "parameters": [ | 26 "type": "function", "name": "callback", "parameters": [ |
| 26 { | 27 { |
| 27 "type": "object", | 28 "type": "object", |
| 28 "name": "details", | 29 "name": "details", |
| 29 "optional": true, | 30 "optional": true, |
| 30 "description": "Information about the requested frame, null if t
he specified frame ID and/or tab ID are invalid.", | 31 "description": "Information about the requested frame, null if t
he specified frame ID and/or tab ID are invalid.", |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 "type": "array", | 64 "type": "array", |
| 64 "description": "A list of frames in the given tab, null if the s
pecified tab ID is invalid.", | 65 "description": "A list of frames in the given tab, null if the s
pecified tab ID is invalid.", |
| 65 "optional": true, | 66 "optional": true, |
| 66 "items": { | 67 "items": { |
| 67 "type": "object", | 68 "type": "object", |
| 68 "properties": { | 69 "properties": { |
| 69 "errorOccurred": { | 70 "errorOccurred": { |
| 70 "type": "boolean", | 71 "type": "boolean", |
| 71 "description": "True if the last navigation in this frame
was interrupted by an error, i.e. the onErrorOccurred event fired." | 72 "description": "True if the last navigation in this frame
was interrupted by an error, i.e. the onErrorOccurred event fired." |
| 72 }, | 73 }, |
| 74 "processId": { |
| 75 "type": "integer", |
| 76 "description": "The ID of the process runs the renderer fo
r this tab." |
| 77 }, |
| 73 "frameId": { | 78 "frameId": { |
| 74 "type": "integer", | 79 "type": "integer", |
| 75 "description": "The ID of the frame. 0 indicates that this
is the main frame; a positive value indicates the ID of a subframe." | 80 "description": "The ID of the frame. 0 indicates that this
is the main frame; a positive value indicates the ID of a subframe." |
| 76 }, | 81 }, |
| 77 "url": { | 82 "url": { |
| 78 "type": "string", | 83 "type": "string", |
| 79 "description": "The URL currently associated with this fra
me, if the frame identified by the frameId existed at one point in the given tab
. The fact that an URL is associated with a given frameId does not imply that th
e corresponding frame still exists." | 84 "description": "The URL currently associated with this fra
me, if the frame identified by the frameId existed at one point in the given tab
. The fact that an URL is associated with a given frameId does not imply that th
e corresponding frame still exists." |
| 80 } | 85 } |
| 81 } | 86 } |
| 82 } | 87 } |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 "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
."}, | 301 "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
."}, |
| 297 "transitionQualifiers": {"type": "array", "description": "A list o
f transition qualifiers.", "items": {"type": "string", "enum": ["client_redirect
", "server_redirect", "forward_back", "from_address_bar"]}}, | 302 "transitionQualifiers": {"type": "array", "description": "A list o
f transition qualifiers.", "items": {"type": "string", "enum": ["client_redirect
", "server_redirect", "forward_back", "from_address_bar"]}}, |
| 298 "timeStamp": {"type": "number", "description": "The time when the
navigation was committed, in milliseconds since the epoch."} | 303 "timeStamp": {"type": "number", "description": "The time when the
navigation was committed, in milliseconds since the epoch."} |
| 299 } | 304 } |
| 300 } | 305 } |
| 301 ] | 306 ] |
| 302 } | 307 } |
| 303 ] | 308 ] |
| 304 } | 309 } |
| 305 ] | 310 ] |
| OLD | NEW |