| 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": "sessionRestore", | 7 "namespace": "sessionRestore", |
| 8 "dependencies": [ "tabs", "windows" ], | |
| 9 "types": [ | 8 "types": [ |
| 10 { | 9 { |
| 11 "id": "ClosedEntry", | 10 "id": "ClosedEntry", |
| 12 "type": "object", | 11 "type": "object", |
| 13 "properties": { | 12 "properties": { |
| 14 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
browser session."}, | 13 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
browser session."}, |
| 15 "timestamp": {"type": "integer", "description": "The time when the win
dow or tab was closed, represented in milliseconds since the epoch"}, | 14 "timestamp": {"type": "integer", "description": "The time when the win
dow or tab was closed, represented in milliseconds since the epoch"}, |
| 16 "tab": {"$ref": "tabs.Tab", "optional": true, "description": "The clos
ed $ref:tabs.Tab, if this entry describes a tab. Either this or $ref:ClosedEntry
.window will be set."}, | 15 "tab": {"$ref": "tabs.Tab", "optional": true, "description": "The clos
ed $ref:tabs.Tab, if this entry describes a tab. Either this or $ref:ClosedEntry
.window will be set."}, |
| 17 "window": {"$ref": "windows.Window", "optional": true, "description":
"The closed $ref:windows.Window, if this entry describes a window. Either this o
r $ref:ClosedEntry.tab will be set."} | 16 "window": {"$ref": "windows.Window", "optional": true, "description":
"The closed $ref:windows.Window, if this entry describes a window. Either this o
r $ref:ClosedEntry.tab will be set."} |
| 18 } | 17 } |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 "type": "function", | 59 "type": "function", |
| 61 "description": "Reopens a $ref:ClosedEntry, with an optional callback to
run when the entry has been restored.", | 60 "description": "Reopens a $ref:ClosedEntry, with an optional callback to
run when the entry has been restored.", |
| 62 "parameters": [ | 61 "parameters": [ |
| 63 {"type": "integer", "name": "id", "optional": true, "description": "Th
e id of the $ref:ClosedEntry to restore."}, | 62 {"type": "integer", "name": "id", "optional": true, "description": "Th
e id of the $ref:ClosedEntry to restore."}, |
| 64 {"type": "function", "name": "callback", "optional": true, "parameters
": []} | 63 {"type": "function", "name": "callback", "optional": true, "parameters
": []} |
| 65 ] | 64 ] |
| 66 } | 65 } |
| 67 ] | 66 ] |
| 68 } | 67 } |
| 69 ] | 68 ] |
| OLD | NEW |