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

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

Issue 6413014: Original patch from issue 570048 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: a few fixes Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "extension", 3 "namespace": "extension",
4 "unprivileged": true, 4 "unprivileged": true,
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "MessageSender", 7 "id": "MessageSender",
8 "type": "object", 8 "type": "object",
9 "description": "An object containing information about the script contex t that sent a message or request.", 9 "description": "An object containing information about the script contex t that sent a message or request.",
10 "properties": { 10 "properties": {
(...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after
1180 { 1180 {
1181 "name": "tab", 1181 "name": "tab",
1182 "$ref": "Tab", 1182 "$ref": "Tab",
1183 "description": "Details about the moved tab." 1183 "description": "Details about the moved tab."
1184 } 1184 }
1185 ] 1185 ]
1186 } 1186 }
1187 ] 1187 ]
1188 }, 1188 },
1189 { 1189 {
1190 "name": "setZoomPercent",
1191 "type": "function",
1192 "description": "Set the zoom percentage.",
1193 "parameters": [
1194 {
1195 "name": "tabId",
1196 "type": "integer",
1197 "minimum": 0,
1198 "description": "The id of the tab to zoom."
1199 },
1200 {
1201 "name": "zoomPercent",
1202 "type": "number",
1203 "minimum": 0,
1204 "description": "The zoom percentage."
1205 },
1206 {
1207 "name": "callback",
1208 "type": "function",
1209 "optional": true,
1210 "description": "Returns the resulting zoom percent, which may be dif ferent than requested.",
1211 "parameters": [
1212 {
1213 "name": "zoomPercent",
1214 "type": "number",
1215 "description": "The current zoom percentage"
1216 }
1217 ]
1218 }
1219 ]
1220 },
1221 {
1222 "name": "getZoomPercent",
1223 "type": "function",
1224 "description": "Get the zoom percentage.",
1225 "parameters": [
1226 {
1227 "name": "tabId",
1228 "type": "integer",
1229 "minimum": 0,
1230 "description": "The id of the tab."
1231 },
1232 {
1233 "name": "callback",
1234 "type": "function",
1235 "description": "Returns the zoom percent.",
1236 "parameters": [
1237 {
1238 "name": "zoomPercent",
1239 "type": "number",
1240 "minimum": 0,
1241 "description": "The current zoom percentage"
1242 }
1243 ]
1244 }
1245 ]
1246 },
1247 {
1190 "name": "remove", 1248 "name": "remove",
1191 "type": "function", 1249 "type": "function",
1192 "description": "Closes a tab.", 1250 "description": "Closes a tab.",
1193 "parameters": [ 1251 "parameters": [
1194 {"type": "integer", "name": "tabId", "minimum": 0}, 1252 {"type": "integer", "name": "tabId", "minimum": 0},
1195 {"type": "function", "name": "callback", "optional": true, "parameters ": []} 1253 {"type": "function", "name": "callback", "optional": true, "parameters ": []}
1196 ] 1254 ]
1197 }, 1255 },
1198 { 1256 {
1199 "name": "detectLanguage", 1257 "name": "detectLanguage",
(...skipping 3324 matching lines...) Expand 10 before | Expand all | Expand 10 after
4524 "token": { "type": "string", "optional": true } 4582 "token": { "type": "string", "optional": true }
4525 } 4583 }
4526 } 4584 }
4527 ] 4585 ]
4528 } 4586 }
4529 ] 4587 ]
4530 } 4588 }
4531 ] 4589 ]
4532 } 4590 }
4533 ] 4591 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698