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

Unified Diff: chrome/common/extensions/api/webview_tag.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: chrome/common/extensions/api/webview_tag.json
diff --git a/chrome/common/extensions/api/webview_tag.json b/chrome/common/extensions/api/webview_tag.json
index 6e650a5e66d411b9f3827e2834dcf0c46b714c71..64781468b53272d79ddc68e57a346eb73337ecfc 100644
--- a/chrome/common/extensions/api/webview_tag.json
+++ b/chrome/common/extensions/api/webview_tag.json
@@ -428,7 +428,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",
@@ -538,6 +538,29 @@
]
},
{
+ "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": "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
+ }
+ ]
+ },
+ {
"name": "terminate",
"type": "function",
"description": "Forcibly kills the guest web page's renderer process. This may affect multiple <code>webview</code> tags in the current app if they share the same process, but it will not affect <code>webview</code> tags in other apps.",
@@ -614,7 +637,7 @@
"parameters": [
{
"name": "processID",
- "description": "Chrome's interal ID of the process that exited.",
+ "description": "Chrome's internal ID of the process that exited.",
"type": "integer"
},
{
« no previous file with comments | « chrome/browser/apps/web_view_browsertest.cc ('k') | chrome/test/data/extensions/platform_apps/web_view/shim/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698