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

Unified Diff: third_party/chrome/idl/session_restore.json

Issue 12261015: Import chrome idl into third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
« no previous file with comments | « third_party/chrome/idl/serial.idl ('k') | third_party/chrome/idl/socket.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/chrome/idl/session_restore.json
diff --git a/third_party/chrome/idl/session_restore.json b/third_party/chrome/idl/session_restore.json
new file mode 100644
index 0000000000000000000000000000000000000000..c78300dbf4be9c8d302798d5523c95760f27a5d3
--- /dev/null
+++ b/third_party/chrome/idl/session_restore.json
@@ -0,0 +1,69 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+[
+ {
+ "namespace": "sessionRestore",
+ "dependencies": [ "tabs", "windows" ],
+ "types": [
+ {
+ "id": "ClosedEntry",
+ "type": "object",
+ "properties": {
+ "id": {"type": "integer", "minimum": 0, "description": "The ID of the browser session."},
+ "timestamp": {"type": "integer", "description": "The time when the window or tab was closed, represented in milliseconds since the epoch"},
+ "tab": {"$ref": "tabs.Tab", "optional": true, "description": "The closed $ref:tabs.Tab, if this entry describes a tab. Either this or $ref:ClosedEntry.window will be set."},
+ "window": {"$ref": "windows.Window", "optional": true, "description": "The closed $ref:windows.Window, if this entry describes a window. Either this or $ref:ClosedEntry.tab will be set."}
+ }
+ }
+ ],
+ "functions": [
+ {
+ "name": "getRecentlyClosed",
+ "type": "function",
+ "description": "Gets the list of recently closed tabs and/or windows.",
+ "parameters": [
+ {
+ "type": "object",
+ "name": "options",
+ "optional": true,
+ "properties": {
+ "maxResults": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 25,
+ "optional": true,
+ "description": "The maximum number of entries to be fetched in the requested list. Omit to fetch the maximum number of entries (25)."
+ },
+ "entryType": {
+ "type": "string",
+ "enum": ["tab", "window"],
+ "optional": true,
+ "description": "The type of entry to fetch. Omit to fetch all types of entries."
+ }
+ }
+ },
+ {
+ "type": "function",
+ "name": "callback",
+ "parameters": [
+ {
+ "name": "entries", "type": "array", "items": { "$ref": "ClosedEntry" }, "description": "The list of closed entries in reverse order that they were closed (the most recently closed tab or window will be at index <code>0</code>). If <code>entryType</code> is specified the entries will be only of that type, otherwise the entries may contain either tabs or windows.List of $ref:ClosedEntry representing the closed tab/window for the session."
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "restore",
+ "type": "function",
+ "description": "Reopens a $ref:ClosedEntry, with an optional callback to run when the entry has been restored.",
+ "parameters": [
+ {"type": "integer", "name": "id", "optional": true, "description": "The id of the $ref:ClosedEntry to restore."},
+ {"type": "function", "name": "callback", "optional": true, "parameters": []}
+ ]
+ }
+ ]
+ }
+]
« no previous file with comments | « third_party/chrome/idl/serial.idl ('k') | third_party/chrome/idl/socket.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698