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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/extension_api.json
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index 9f6deff54b909009bd8186bcad9a5c34039179fc..d0e921f715634b71a1f4d4c26e6158d18cd216ae 100644
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -1187,6 +1187,62 @@
]
},
{
+ "name": "setZoomPercent",
+ "type": "function",
+ "description": "Set the zoom percentage.",
+ "parameters": [
+ {
+ "name": "tabId",
+ "type": "integer",
+ "minimum": 0,
+ "description": "The id of the tab to zoom."
+ },
+ {
+ "name": "zoomLevel",
+ "type": "number",
+ "description": "The zoom percentage."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "optional": true,
+ "description": "Returns the resulting zoom percent, which may be different than requested.",
+ "parameters": [
+ {
+ "name": "zoomPercent",
+ "type": "number",
+ "description": "The current zoom percentage"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "getZoomPercent",
+ "type": "function",
+ "description": "Get the zoom percentage.",
+ "parameters": [
+ {
+ "name": "tabId",
+ "type": "integer",
+ "minimum": 0,
+ "description": "The id of the tab."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "description": "Returns the zoom percent.",
+ "parameters": [
+ {
+ "name": "zoomPercent",
+ "type": "number",
+ "description": "The current zoom percentage"
+ }
+ ]
+ }
+ ]
+ },
+ {
"name": "remove",
"type": "function",
"description": "Closes a tab.",
« 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