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

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

Issue 11607012: Add tabs.onReplaced event to notify listeners of tabs being swapped due to prerendering or instant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add tests Created 8 years 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": "tabs", 7 "namespace": "tabs",
8 "dependencies": [ "extension", "windows" ], 8 "dependencies": [ "extension", "windows" ],
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 {"type": "integer", "name": "tabId", "minimum": 0}, 911 {"type": "integer", "name": "tabId", "minimum": 0},
912 { 912 {
913 "type": "object", 913 "type": "object",
914 "name": "removeInfo", 914 "name": "removeInfo",
915 "properties": { 915 "properties": {
916 "windowId": {"type": "integer", "minimum": 0, "description": "the window whose tab is closed." }, 916 "windowId": {"type": "integer", "minimum": 0, "description": "the window whose tab is closed." },
917 "isWindowClosing": {"type": "boolean", "description": "True when t he tab is being closed because its window is being closed." } 917 "isWindowClosing": {"type": "boolean", "description": "True when t he tab is being closed because its window is being closed." }
918 } 918 }
919 } 919 }
920 ] 920 ]
921 },
922 {
923 "name": "onReplaced",
924 "type": "function",
925 "description": "Fired when a tab is replaced with another tab due to pre rendering or instant.",
926 "parameters": [
927 {"type": "integer", "name": "addedTabId", "minimum": 0},
928 {"type": "integer", "name": "removedTabId", "minimum": 0}
929 ]
921 } 930 }
922 ] 931 ]
923 } 932 }
924 ] 933 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698