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."}, | |
22 "frameId": { "type": "integer", "minimum": 0, "description": "The
ID of the frame in the given tab." } | 21 "frameId": { "type": "integer", "minimum": 0, "description": "The
ID of the frame in the given tab." } |
23 } | 22 } |
24 }, | 23 }, |
25 { | 24 { |
26 "type": "function", "name": "callback", "parameters": [ | 25 "type": "function", "name": "callback", "parameters": [ |
27 { | 26 { |
28 "type": "object", | 27 "type": "object", |
29 "name": "details", | 28 "name": "details", |
30 "optional": true, | 29 "optional": true, |
31 "description": "Information about the requested frame, null if t
he specified frame ID and/or tab ID are invalid.", | 30 "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... |
64 "type": "array", | 63 "type": "array", |
65 "description": "A list of frames in the given tab, null if the s
pecified tab ID is invalid.", | 64 "description": "A list of frames in the given tab, null if the s
pecified tab ID is invalid.", |
66 "optional": true, | 65 "optional": true, |
67 "items": { | 66 "items": { |
68 "type": "object", | 67 "type": "object", |
69 "properties": { | 68 "properties": { |
70 "errorOccurred": { | 69 "errorOccurred": { |
71 "type": "boolean", | 70 "type": "boolean", |
72 "description": "True if the last navigation in this frame
was interrupted by an error, i.e. the onErrorOccurred event fired." | 71 "description": "True if the last navigation in this frame
was interrupted by an error, i.e. the onErrorOccurred event fired." |
73 }, | 72 }, |
74 "processId": { | |
75 "type": "integer", | |
76 "description": "The ID of the process runs the renderer fo
r this tab." | |
77 }, | |
78 "frameId": { | 73 "frameId": { |
79 "type": "integer", | 74 "type": "integer", |
80 "description": "The ID of the frame. 0 indicates that this
is the main frame; a positive value indicates the ID of a subframe." | 75 "description": "The ID of the frame. 0 indicates that this
is the main frame; a positive value indicates the ID of a subframe." |
81 }, | 76 }, |
82 "url": { | 77 "url": { |
83 "type": "string", | 78 "type": "string", |
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." | 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." |
85 } | 80 } |
86 } | 81 } |
87 } | 82 } |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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
."}, | 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
."}, |
302 "transitionQualifiers": {"type": "array", "description": "A list o
f transition qualifiers.", "items": {"type": "string", "enum": ["client_redirect
", "server_redirect", "forward_back", "from_address_bar"]}}, | 297 "transitionQualifiers": {"type": "array", "description": "A list o
f transition qualifiers.", "items": {"type": "string", "enum": ["client_redirect
", "server_redirect", "forward_back", "from_address_bar"]}}, |
303 "timeStamp": {"type": "number", "description": "The time when the
navigation was committed, in milliseconds since the epoch."} | 298 "timeStamp": {"type": "number", "description": "The time when the
navigation was committed, in milliseconds since the epoch."} |
304 } | 299 } |
305 } | 300 } |
306 ] | 301 ] |
307 } | 302 } |
308 ] | 303 ] |
309 } | 304 } |
310 ] | 305 ] |
OLD | NEW |