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

Unified Diff: chrome/common/extensions/api/extension_api.json

Issue 160228: Functionality has been requested in the Extension API for Javascript to... (Closed)
Patch Set: added docs Created 11 years, 4 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
« no previous file with comments | « chrome/common/common_resources.grd ('k') | chrome/common/extensions/docs/tabs.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e98fdd34cca4ec8828382ba52aab9dee47d261d1..06277efc6745f4e9e6bbae5811d62a2b6cb5c012 100755
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -398,6 +398,18 @@
]
}
]
+ },
+ {
+ "name": "captureVisibleTab",
+ "type": "function",
+ "description": "Captures the visible area of the visible tab in the given window.",
+ "parameters": [
+ {"type": "integer", "name": "windowId", "minimum": 0, "optional": true, "description": "The target window. If <var>null</var> or <var>undefined</var>, the 'current' window will be assumed."},
+ {"type": "function", "name": "callback", "parameters": [
+ {"type": "string", "name": "dataUrl", "description": "a data url encoding of the captured tab."}
+ ]
+ }
+ ]
}
],
"events": [
« no previous file with comments | « chrome/common/common_resources.grd ('k') | chrome/common/extensions/docs/tabs.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698