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

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

Issue 10704225: Send an webNavigation event for navigations triggered by window.history (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 { 260 {
261 "type": "object", 261 "type": "object",
262 "name": "details", 262 "name": "details",
263 "properties": { 263 "properties": {
264 "replacedTabId": {"type": "integer", "description": "The ID of the tab that was replaced."}, 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."}, 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."} 266 "timeStamp": {"type": "number", "description": "The time when the replacement happened, in milliseconds since the epoch."}
267 } 267 }
268 } 268 }
269 ] 269 ]
270 },
271 {
272 "name": "onHistoryStateUpdated",
273 "type": "function",
274 "description": "Fired when the frame's history was updated to a new URL. All future events for that frame will use the updated URL.",
Matt Perry 2012/07/16 20:42:50 I don't understand this description. At first I th
jochen (gone - plz use gerrit) 2012/07/16 20:53:36 It's fired when a page changes it's history. Someh
Matt Perry 2012/07/16 21:15:23 OK, I'm probably confused because I don't really u
275 "options": {
276 "supportsFilters": true,
277 "supportsListeners": true,
278 "supportsRules": false
279 },
280 "parameters": [
281 {
282 "type": "object",
283 "name": "details",
284 "properties": {
285 "tabId": {"type": "integer", "description": "The ID of the tab in which the navigation occurs."},
286 "url": {"type": "string"},
287 "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."},
288 "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 ."},
289 "transitionQualifiers": {"type": "array", "description": "A list o f transition qualifiers.", "items": {"type": "string", "enum": ["client_redirect ", "server_redirect", "forward_back", "from_address_bar"]}},
290 "timeStamp": {"type": "number", "description": "The time when the navigation was committed, in milliseconds since the epoch."}
291 }
292 }
293 ]
270 } 294 }
271 ] 295 ]
272 } 296 }
273 ] 297 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698