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

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

Issue 296003016: Fix the documentation and add Device.deviceName in sessions API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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": "sessions", 7 "namespace": "sessions",
8 "description": "Use the <code>chrome.sessions</code> API to query and restor e tabs and windows from a browsing session.", 8 "description": "Use the <code>chrome.sessions</code> API to query and restor e tabs and windows from a browsing session.",
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 15 matching lines...) Expand all
26 "properties": { 26 "properties": {
27 "lastModified": {"type": "integer", "description": "The time when the window or tab was closed or modified, represented in milliseconds since the epoc h."}, 27 "lastModified": {"type": "integer", "description": "The time when the window or tab was closed or modified, represented in milliseconds since the epoc h."},
28 "tab": {"$ref": "tabs.Tab", "optional": true, "description": "The $(re f:tabs.Tab), if this entry describes a tab. Either this or $(ref:sessions.Sessio n.window) will be set."}, 28 "tab": {"$ref": "tabs.Tab", "optional": true, "description": "The $(re f:tabs.Tab), if this entry describes a tab. Either this or $(ref:sessions.Sessio n.window) will be set."},
29 "window": {"$ref": "windows.Window", "optional": true, "description": "The $(ref:windows.Window), if this entry describes a window. Either this or $(r ef:sessions.Session.tab) will be set."} 29 "window": {"$ref": "windows.Window", "optional": true, "description": "The $(ref:windows.Window), if this entry describes a window. Either this or $(r ef:sessions.Session.tab) will be set."}
30 } 30 }
31 }, 31 },
32 { 32 {
33 "id": "Device", 33 "id": "Device",
34 "type": "object", 34 "type": "object",
35 "properties": { 35 "properties": {
36 "info": {"type": "string", "description": "Represents all information about a foreign device."}, 36 "info": {"type": "string"},
not at google - send to devlin 2014/05/23 21:59:01 put "nodoc": true on this
37 "deviceName": {"type": "string", "description": "The name of the forei gn device."},
37 "sessions": {"type": "array", "items": {"$ref": "Session"}, "descripti on": "A list of open window sessions for the foreign device, sorted from most re cently to least recently modified session."} 38 "sessions": {"type": "array", "items": {"$ref": "Session"}, "descripti on": "A list of open window sessions for the foreign device, sorted from most re cently to least recently modified session."}
38 } 39 }
39 } 40 }
40 ], 41 ],
41 "functions": [ 42 "functions": [
42 { 43 {
43 "name": "getRecentlyClosed", 44 "name": "getRecentlyClosed",
44 "type": "function", 45 "type": "function",
45 "description": "Gets the list of recently closed tabs and/or windows.", 46 "description": "Gets the list of recently closed tabs and/or windows.",
46 "parameters": [ 47 "parameters": [
47 { 48 {
48 "$ref": "Filter", 49 "$ref": "Filter",
49 "name": "filter", 50 "name": "filter",
50 "optional": true 51 "optional": true
51 }, 52 },
52 { 53 {
53 "type": "function", 54 "type": "function",
54 "name": "callback", 55 "name": "callback",
55 "parameters": [ 56 "parameters": [
56 { 57 {
57 "name": "sessions", "type": "array", "items": { "$ref": "Session " }, "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>). The entries may contain either tabs or windows." 58 "name": "sessions", "type": "array", "items": { "$ref": "Session " }, "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>). The entries may contain either tabs or windows."
58 } 59 }
59 ] 60 ]
60 } 61 }
61 ] 62 ]
62 }, 63 },
63 { 64 {
64 "name": "getDevices", 65 "name": "getDevices",
65 "type": "function", 66 "type": "function",
66 "description": "Retrieves all devices with synced sessions.", 67 "description": "Retrieves all devices with synced sessions.",
67 "parameters": [ 68 "parameters": [
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 116 }
116 ], 117 ],
117 "properties": { 118 "properties": {
118 "MAX_SESSION_RESULTS": { 119 "MAX_SESSION_RESULTS": {
119 "value": 25, 120 "value": 25,
120 "description": "The maximum number of $(ref:sessions.Session) that will be included in a requested list." 121 "description": "The maximum number of $(ref:sessions.Session) that will be included in a requested list."
121 } 122 }
122 } 123 }
123 } 124 }
124 ] 125 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698