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

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

Issue 295423005: Fix the documentation in sessions API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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