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

Unified 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 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..6486b79e039ce6fdfd084f58b6685b723decf1e1 100644
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -1187,6 +1187,64 @@
]
},
{
+ "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": "zoomPercent",
+ "type": "number",
+ "minimum": 0,
+ "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",
+ "minimum": 0,
+ "description": "The current zoom percentage"
+ }
+ ]
+ }
+ ]
+ },
+ {
"name": "remove",
"type": "function",
"description": "Closes a tab.",

Powered by Google App Engine
This is Rietveld 408576698