OLD | NEW |
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 }, | 83 }, |
84 { | 84 { |
85 "name": "restore", | 85 "name": "restore", |
86 "type": "function", | 86 "type": "function", |
87 "description": "Reopens a $(ref:windows.Window) or $(ref:tabs.Tab), with
an optional callback to run when the entry has been restored.", | 87 "description": "Reopens a $(ref:windows.Window) or $(ref:tabs.Tab), with
an optional callback to run when the entry has been restored.", |
88 "parameters": [ | 88 "parameters": [ |
89 { | 89 { |
90 "type": "string", | 90 "type": "string", |
91 "name": "sessionId", | 91 "name": "sessionId", |
92 "optional": true, | 92 "optional": true, |
93 "description": "The $(ref:windows.Window.sessionId), or $(ref:tabs.T
ab.sessionId) to restore." | 93 "description": "The $(ref:windows.Window.sessionId), or $(ref:tabs.T
ab.sessionId) to restore. If this parameter is not specified, the most recently
closed session is restored." |
94 }, | 94 }, |
95 { | 95 { |
96 "type": "function", | 96 "type": "function", |
97 "name": "callback", | 97 "name": "callback", |
98 "optional": true, | 98 "optional": true, |
99 "parameters": [ | 99 "parameters": [ |
100 { | 100 { |
101 "$ref": "Session", | 101 "$ref": "Session", |
102 "name": "restoredSession", | 102 "name": "restoredSession", |
103 "description": "A $(ref:sessions.Session) containing the restore
d $(ref:windows.Window) or $(ref:tabs.Tab) object." | 103 "description": "A $(ref:sessions.Session) containing the restore
d $(ref:windows.Window) or $(ref:tabs.Tab) object." |
(...skipping 11 matching lines...) Expand all Loading... |
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 ] |
OLD | NEW |