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

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

Issue 10692097: Introduce webNavigation.onTabReplaced event that is fired when a tab from instant or prerender repl… (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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
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": true,
256 "supportsListeners": true,
257 "supportsRules": false
258 },
259 "parameters": [
260 {
261 "type": "object",
262 "name": "details",
263 "properties": {
264 "sourceTabId": {"type": "integer", "description": "The ID of the t ab that was replaced."},
battre 2012/07/05 15:38:46 Should this be called "oldTabId"? How does "source
jochen (gone - plz use gerrit) 2012/07/06 11:13:50 What about replacedTabId
battre 2012/07/06 11:18:13 SGTM
265 "tabId": {"type": "integer", "description": "The ID of the tab tha t replaced the old tab."},
battre 2012/07/05 15:38:46 If the previous one becomes oldTabId, this might b
jochen (gone - plz use gerrit) 2012/07/06 11:13:50 I'd prefer to call this tabId, to be consistent wi
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 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698