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

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

Issue 427883002: <webview>: Move autosize from content to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_frame_url
Patch Set: Works Created 6 years, 5 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/web_view_internal.json
diff --git a/chrome/common/extensions/api/web_view_internal.json b/chrome/common/extensions/api/web_view_internal.json
index 94bf1802ddb0cc1dd6aa49b0402015ee2fb64d47..384eb73c4a7f7fae76c4f58e4298850276d105b4 100644
--- a/chrome/common/extensions/api/web_view_internal.json
+++ b/chrome/common/extensions/api/web_view_internal.json
@@ -12,6 +12,34 @@
"dependencies": ["contextMenusInternal"],
"types": [
{
+ "id": "Size",
+ "type": "object",
+ "properties": {
+ "width": {
+ "type": "integer"
+ },
+ "height": {
+ "type": "integer"
+ }
+ }
+ },
+ {
+ "id": "AutoSizeParams",
+ "type": "object",
+ "description": "Autosize parameters.",
+ "properties": {
+ "enableAutoSize": {
+ "type": "boolean"
+ },
+ "min": {
+ "$ref": "Size"
+ },
+ "max": {
+ "$ref": "Size"
+ }
+ }
+ },
+ {
"id": "DataTypeSet",
"type": "object",
"description": "A set of data types. Missing data types are interpreted as <code>false</code>.",
@@ -669,6 +697,21 @@
]
},
{
+ "name": "setAutoSize",
+ "type": "function",
+ "parameters": [
+ {
+ "type": "integer",
+ "name": "instanceId",
+ "description": "The instance ID of the guest &lt;webview&gt; process. This not exposed to developers through the API."
+ },
+ {
+ "$ref": "AutoSizeParams",
+ "name": "params"
+ }
+ ]
+ },
+ {
"name": "showContextMenu",
"type": "function",
"parameters": [

Powered by Google App Engine
This is Rietveld 408576698