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

Unified Diff: extensions/common/api/web_view_internal.json

Issue 610643003: Adds new webview.loadDataWithBaseUrl API to allow data URLs to be loaded with a specified base URL … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comment. Created 6 years, 3 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: extensions/common/api/web_view_internal.json
diff --git a/extensions/common/api/web_view_internal.json b/extensions/common/api/web_view_internal.json
index 0f5885480e5dde23a33276e63929b5e17f104091..43c1a3b2c063a67ca908e1d6ab0e5cb86e98fc91 100644
--- a/extensions/common/api/web_view_internal.json
+++ b/extensions/common/api/web_view_internal.json
@@ -184,7 +184,7 @@
{
"type": "function",
"name": "callback",
- "description": "Called after the current zoom factor is retreived.",
+ "description": "Called after the current zoom factor is retrieved.",
"parameters": [
{
"type": "number",
@@ -294,6 +294,40 @@
]
},
{
+ "name": "loadDataWithBaseUrl",
+ "type": "function",
+ "description": "Loads a data URL with a specified base URL used for relative links. Optionally, a virtual URL can be provided to be shown to the user instead of the data URL.",
+ "parameters": [
+ {
+ "type": "integer",
+ "name": "instanceId",
+ "description": "The instance ID of the guest <webview> process."
+ },
+ {
+ "type": "string",
+ "name": "dataUrl",
+ "description" : "The data URL to load."
+ },
+ {
+ "type": "string",
+ "name": "baseUrl",
+ "description": "The base URL that will be used for relative links."
+ },
+ {
+ "type": "string",
+ "name": "virtualUrl",
+ "description": "The URL that will be displayed to the user.",
+ "optional": true
+ },
+ {
+ "type": "function",
+ "name": "callback",
+ "description": "Called internally for the purpose of reporting errors to console.error().",
+ "parameters": []
+ }
+ ]
+ },
+ {
"name": "go",
"type": "function",
"parameters": [
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_guest.cc ('k') | extensions/renderer/resources/web_view_experimental.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698