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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/web_navigation.json
diff --git a/chrome/common/extensions/api/web_navigation.json b/chrome/common/extensions/api/web_navigation.json
index 55342973f215121cd7e9ef8d5997bdc4114f852b..6a179a3c9387beabbd5b4f018ddbf278beb6d101 100644
--- a/chrome/common/extensions/api/web_navigation.json
+++ b/chrome/common/extensions/api/web_navigation.json
@@ -246,6 +246,27 @@
}
}
]
+ },
+ {
+ "name": "onTabReplaced",
+ "type": "function",
+ "description": "Fired when the contents of the tab is replaced by a different (usually previously pre-rendered) tab.",
+ "options": {
+ "supportsFilters": true,
+ "supportsListeners": true,
+ "supportsRules": false
+ },
+ "parameters": [
+ {
+ "type": "object",
+ "name": "details",
+ "properties": {
+ "sourceTabId": {"type": "integer", "description": "The ID of the tab 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
+ "tabId": {"type": "integer", "description": "The ID of the tab that 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
+ "timeStamp": {"type": "number", "description": "The time when the replacement happened, in milliseconds since the epoch."}
+ }
+ }
+ ]
}
]
}

Powered by Google App Engine
This is Rietveld 408576698