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

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

Issue 16876004: Updating JSON Schema Compiler to add description field to schemas. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (kalman) rebase Created 7 years, 6 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
« no previous file with comments | « chrome/common/extensions/api/serial.idl ('k') | chrome/common/extensions/api/socket.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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": "sessionRestore", 7 "namespace": "sessionRestore",
8 "description": "Use the <code>chrome.sessionRestore</code> API to query and restore tabs and windows from a browsing session.",
8 "types": [ 9 "types": [
9 { 10 {
10 "id": "ClosedEntry", 11 "id": "ClosedEntry",
11 "type": "object", 12 "type": "object",
12 "properties": { 13 "properties": {
13 "id": {"type": "integer", "minimum": 0, "description": "The ID of the browser session."}, 14 "id": {"type": "integer", "minimum": 0, "description": "The ID of the browser session."},
14 "timestamp": {"type": "integer", "description": "The time when the win dow or tab was closed, represented in milliseconds since the epoch"}, 15 "timestamp": {"type": "integer", "description": "The time when the win dow or tab was closed, represented in milliseconds since the epoch"},
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."}, 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."},
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."} 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."}
17 } 18 }
18 } 19 }
19 ], 20 ],
20 "functions": [ 21 "functions": [
21 { 22 {
22 "name": "getRecentlyClosed", 23 "name": "getRecentlyClosed",
23 "type": "function", 24 "type": "function",
24 "description": "Gets the list of recently closed tabs and/or windows.", 25 "description": "Gets the list of recently closed tabs and/or windows.",
25 "parameters": [ 26 "parameters": [
26 { 27 {
27 "type": "object", 28 "type": "object",
28 "name": "options", 29 "name": "options",
29 "optional": true, 30 "optional": true,
30 "properties": { 31 "properties": {
31 "maxResults": { 32 "maxResults": {
32 "type": "integer", 33 "type": "integer",
33 "minimum": 0, 34 "minimum": 0,
34 "maximum": 25, 35 "maximum": 25,
35 "optional": true, 36 "optional": true,
36 "description": "The maximum number of entries to be fetched in t he requested list. Omit to fetch the maximum number of entries (25)." 37 "description": "The maximum number of entries to be fetched in t he requested list. Omit to fetch the maximum number of entries (25)."
37 }, 38 },
38 "entryType": { 39 "entryType": {
39 "type": "string", 40 "type": "string",
(...skipping 19 matching lines...) Expand all
59 "type": "function", 60 "type": "function",
60 "description": "Reopens a $ref:ClosedEntry, with an optional callback to run when the entry has been restored.", 61 "description": "Reopens a $ref:ClosedEntry, with an optional callback to run when the entry has been restored.",
61 "parameters": [ 62 "parameters": [
62 {"type": "integer", "name": "id", "optional": true, "description": "Th e id of the $ref:ClosedEntry to restore."}, 63 {"type": "integer", "name": "id", "optional": true, "description": "Th e id of the $ref:ClosedEntry to restore."},
63 {"type": "function", "name": "callback", "optional": true, "parameters ": []} 64 {"type": "function", "name": "callback", "optional": true, "parameters ": []}
64 ] 65 ]
65 } 66 }
66 ] 67 ]
67 } 68 }
68 ] 69 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/serial.idl ('k') | chrome/common/extensions/api/socket.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698