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

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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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", "description": "The name of the foreign dev ice."},
wjywbs 2014/05/23 21:10:34 Do we need to change "info" to "deviceName" as wel
not at google - send to devlin 2014/05/23 21:25:35 yes we might as well make this CL pull its weight:
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."} 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 } 38 }
39 } 39 }
40 ], 40 ],
41 "functions": [ 41 "functions": [
42 { 42 {
43 "name": "getRecentlyClosed", 43 "name": "getRecentlyClosed",
44 "type": "function", 44 "type": "function",
45 "description": "Gets the list of recently closed tabs and/or windows.", 45 "description": "Gets the list of recently closed tabs and/or windows.",
46 "parameters": [ 46 "parameters": [
47 { 47 {
48 "$ref": "Filter", 48 "$ref": "Filter",
49 "name": "filter", 49 "name": "filter",
50 "optional": true 50 "optional": true
51 }, 51 },
52 { 52 {
53 "type": "function", 53 "type": "function",
54 "name": "callback", 54 "name": "callback",
55 "parameters": [ 55 "parameters": [
56 { 56 {
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." 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 } 58 }
59 ] 59 ]
60 } 60 }
61 ] 61 ]
62 }, 62 },
63 { 63 {
64 "name": "getDevices", 64 "name": "getDevices",
65 "type": "function", 65 "type": "function",
66 "description": "Retrieves all devices with synced sessions.", 66 "description": "Retrieves all devices with synced sessions.",
67 "parameters": [ 67 "parameters": [
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 115 }
116 ], 116 ],
117 "properties": { 117 "properties": {
118 "MAX_SESSION_RESULTS": { 118 "MAX_SESSION_RESULTS": {
119 "value": 25, 119 "value": 25,
120 "description": "The maximum number of $(ref:sessions.Session) that will be included in a requested list." 120 "description": "The maximum number of $(ref:sessions.Session) that will be included in a requested list."
121 } 121 }
122 } 122 }
123 } 123 }
124 ] 124 ]
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698