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

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

Issue 570048: Add zoom extension API (Closed)
Patch Set: Zoom extension API with docs and examples 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
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": "zoomLevel",
1202 "type": "number",
1203 "description": "The zoom percentage."
1204 },
1205 {
1206 "name": "callback",
1207 "type": "function",
1208 "optional": true,
1209 "description": "Returns the resulting zoom percent, which may be dif ferent than requested.",
1210 "parameters": [
1211 {
1212 "name": "zoomPercent",
1213 "type": "number",
1214 "description": "The current zoom percentage"
1215 }
1216 ]
1217 }
1218 ]
1219 },
1220 {
1221 "name": "getZoomPercent",
1222 "type": "function",
1223 "description": "Get the zoom percentage.",
1224 "parameters": [
1225 {
1226 "name": "tabId",
1227 "type": "integer",
1228 "minimum": 0,
1229 "description": "The id of the tab."
1230 },
1231 {
1232 "name": "callback",
1233 "type": "function",
1234 "description": "Returns the zoom percent.",
1235 "parameters": [
1236 {
1237 "name": "zoomPercent",
1238 "type": "number",
1239 "description": "The current zoom percentage"
1240 }
1241 ]
1242 }
1243 ]
1244 },
1245 {
1190 "name": "remove", 1246 "name": "remove",
1191 "type": "function", 1247 "type": "function",
1192 "description": "Closes a tab.", 1248 "description": "Closes a tab.",
1193 "parameters": [ 1249 "parameters": [
1194 {"type": "integer", "name": "tabId", "minimum": 0}, 1250 {"type": "integer", "name": "tabId", "minimum": 0},
1195 {"type": "function", "name": "callback", "optional": true, "parameters ": []} 1251 {"type": "function", "name": "callback", "optional": true, "parameters ": []}
1196 ] 1252 ]
1197 }, 1253 },
1198 { 1254 {
1199 "name": "detectLanguage", 1255 "name": "detectLanguage",
(...skipping 3324 matching lines...) Expand 10 before | Expand all | Expand 10 after
4524 "token": { "type": "string", "optional": true } 4580 "token": { "type": "string", "optional": true }
4525 } 4581 }
4526 } 4582 }
4527 ] 4583 ]
4528 } 4584 }
4529 ] 4585 ]
4530 } 4586 }
4531 ] 4587 ]
4532 } 4588 }
4533 ] 4589 ]
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/common/extensions/docs/examples/api/tabs/zoom/icon.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698