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

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

Issue 916363003: Enable pinch-zoom on the new login page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase for enum conflict. Created 5 years, 10 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/browser/api/web_view/web_view_internal_api.h
diff --git a/extensions/browser/api/web_view/web_view_internal_api.h b/extensions/browser/api/web_view/web_view_internal_api.h
index ad66ed28ba97af15cdfa76cdc844bc8f44d8b102..37483df9e0a1c09c9b74057999f9cb005b590faa 100644
--- a/extensions/browser/api/web_view/web_view_internal_api.h
+++ b/extensions/browser/api/web_view/web_view_internal_api.h
@@ -148,6 +148,23 @@ class WebViewInternalSetAllowTransparencyFunction :
DISALLOW_COPY_AND_ASSIGN(WebViewInternalSetAllowTransparencyFunction);
};
+class WebViewInternalSetAllowScalingFunction
+ : public WebViewInternalExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("webViewInternal.setAllowScaling",
+ WEBVIEWINTERNAL_SETALLOWSCALING);
+
+ WebViewInternalSetAllowScalingFunction();
+
+ protected:
+ ~WebViewInternalSetAllowScalingFunction() override;
+
+ private:
+ bool RunAsyncSafe(WebViewGuest* guest) override;
+
+ DISALLOW_COPY_AND_ASSIGN(WebViewInternalSetAllowScalingFunction);
+};
+
class WebViewInternalSetZoomFunction : public WebViewInternalExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("webViewInternal.setZoom",
« no previous file with comments | « chrome/browser/resources/inline_login/new_inline_login.html ('k') | extensions/browser/api/web_view/web_view_internal_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698