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

Unified Diff: chrome/browser/extensions/api/web_view/web_view_internal_api.h

Issue 427883002: <webview>: Move autosize from content to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_frame_url
Patch Set: Code cleanup 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/browser/extensions/api/web_view/web_view_internal_api.h
diff --git a/chrome/browser/extensions/api/web_view/web_view_internal_api.h b/chrome/browser/extensions/api/web_view/web_view_internal_api.h
index 4cf3e84ce40834b68d4a7274acdd6a786b7f5053..f0a43e26a2480833066d36afaad5c20bb829d8c3 100644
--- a/chrome/browser/extensions/api/web_view/web_view_internal_api.h
+++ b/chrome/browser/extensions/api/web_view/web_view_internal_api.h
@@ -367,6 +367,24 @@ class WebViewInternalSetPermissionFunction
DISALLOW_COPY_AND_ASSIGN(WebViewInternalSetPermissionFunction);
};
+class WebViewInternalSetAutoSizeFunction
+ : public WebViewInternalExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("webViewInternal.setAutoSize",
+ WEBVIEWINTERNAL_SETAUTOSIZE);
+
ericzeng 2014/08/01 18:55:09 Should this be made available in guest_view_intern
Fady Samuel 2014/08/01 20:06:13 Done.
+ WebViewInternalSetAutoSizeFunction();
+
+ protected:
+ virtual ~WebViewInternalSetAutoSizeFunction();
+
+ private:
+ // WebViewInternalExtensionFunction implementation.
+ virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(WebViewInternalSetAutoSizeFunction);
+};
+
class WebViewInternalShowContextMenuFunction
: public WebViewInternalExtensionFunction {
public:

Powered by Google App Engine
This is Rietveld 408576698