diff options
Diffstat (limited to 'extensions/common')
-rw-r--r-- | extensions/common/api/_api_features.json | 6 | ||||
-rw-r--r-- | extensions/common/api/web_view_internal.json | 27 |
2 files changed, 33 insertions, 0 deletions
diff --git a/extensions/common/api/_api_features.json b/extensions/common/api/_api_features.json index b30775f..5e07269 100644 --- a/extensions/common/api/_api_features.json +++ b/extensions/common/api/_api_features.json @@ -460,6 +460,12 @@ "chrome://oobe/*" ] }], + "webViewExperimentalInternal": [{ + "internal": true, + "channel": "dev", + "dependencies": ["permission:webview"], + "contexts": ["blessed_extension"] + }], "webViewRequest": [{ "dependencies": ["permission:webview"], "contexts": ["blessed_extension"] diff --git a/extensions/common/api/web_view_internal.json b/extensions/common/api/web_view_internal.json index a33f500..94a6eb9 100644 --- a/extensions/common/api/web_view_internal.json +++ b/extensions/common/api/web_view_internal.json @@ -670,6 +670,33 @@ ] }, { + "name": "captureVisibleRegion", + "type": "function", + "description": "foo", + "parameters": [ + { + "type": "integer", + "name": "instanceId", + "description": "The instance ID of the guest <webview> process." + }, + { + "$ref": "extensionTypes.ImageDetails", + "name": "options", + "optional": true + }, + { + "type": "function", + "name": "callback", + "parameters": [ + {"type": "string", + "name": "dataUrl", + "description": "A data URL which encodes an image of the visible area of the captured tab. May be assigned to the 'src' property of an HTML Image element for display." + } + ] + } + ] + }, + { "name": "clearData", "type": "function", "description": "Clears various types of browsing data stored in a storage partition of a <webview>.", |