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 { |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 "properties": { | 239 "properties": { |
240 "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."}, |
241 "url": {"type": "string"}, | 241 "url": {"type": "string"}, |
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."}, | 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."}, |
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
."}, | 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
."}, |
244 "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"]}}, |
245 "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."} |
246 } | 246 } |
247 } | 247 } |
248 ] | 248 ] |
| 249 }, |
| 250 { |
| 251 "name": "onTabReplaced", |
| 252 "type": "function", |
| 253 "description": "Fired when the contents of the tab is replaced by a diff
erent (usually previously pre-rendered) tab.", |
| 254 "options": { |
| 255 "supportsFilters": false, |
| 256 "supportsListeners": true, |
| 257 "supportsRules": false |
| 258 }, |
| 259 "parameters": [ |
| 260 { |
| 261 "type": "object", |
| 262 "name": "details", |
| 263 "properties": { |
| 264 "replacedTabId": {"type": "integer", "description": "The ID of the
tab that was replaced."}, |
| 265 "tabId": {"type": "integer", "description": "The ID of the tab tha
t replaced the old tab."}, |
| 266 "timeStamp": {"type": "number", "description": "The time when the
replacement happened, in milliseconds since the epoch."} |
| 267 } |
| 268 } |
| 269 ] |
249 } | 270 } |
250 ] | 271 ] |
251 } | 272 } |
252 ] | 273 ] |
OLD | NEW |