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

Unified Diff: chrome/common/extensions/api/guest_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: Initialize variable Created 6 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
Index: chrome/common/extensions/api/guest_view_internal.json
diff --git a/chrome/common/extensions/api/guest_view_internal.json b/chrome/common/extensions/api/guest_view_internal.json
index 7ae21d7ac7745862ca77c10b151d423ea3115087..fa96482f48a6ffca44987ef071656fb7a7b69c03 100644
--- a/chrome/common/extensions/api/guest_view_internal.json
+++ b/chrome/common/extensions/api/guest_view_internal.json
@@ -9,6 +9,36 @@
"implemented_in": "chrome/browser/extensions/api/guest_view/guest_view_internal_api.h"
},
"description": "none",
+ "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"
+ }
+ }
+ }
+ ],
"functions": [
{
"name": "createGuest",
@@ -35,6 +65,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"
+ }
+ ]
}
]
}
« no previous file with comments | « chrome/browser/guest_view/web_view/web_view_guest.cc ('k') | chrome/renderer/resources/extensions/web_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698