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

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

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.cc
diff --git a/extensions/browser/api/web_view/web_view_internal_api.cc b/extensions/browser/api/web_view/web_view_internal_api.cc
index 6270ec1eb9d8b7ac8bf177b86b6dfde49c80c1d0..4b041e911764efabd574034f0e175b015ffebd65 100644
--- a/extensions/browser/api/web_view/web_view_internal_api.cc
+++ b/extensions/browser/api/web_view/web_view_internal_api.cc
@@ -186,6 +186,23 @@ bool WebViewInternalSetAllowTransparencyFunction::RunAsyncSafe(
return true;
}
+WebViewInternalSetAllowScalingFunction::
+ WebViewInternalSetAllowScalingFunction() {
+}
+
+WebViewInternalSetAllowScalingFunction::
+ ~WebViewInternalSetAllowScalingFunction() {
+}
+
+bool WebViewInternalSetAllowScalingFunction::RunAsyncSafe(WebViewGuest* guest) {
+ scoped_ptr<webview::SetAllowScaling::Params> params(
+ webview::SetAllowScaling::Params::Create(*args_));
+ EXTENSION_FUNCTION_VALIDATE(params.get());
+ guest->SetAllowScaling(params->allow);
+ SendResponse(true);
+ return true;
+}
+
WebViewInternalSetZoomFunction::WebViewInternalSetZoomFunction() {
}
« no previous file with comments | « extensions/browser/api/web_view/web_view_internal_api.h ('k') | extensions/browser/extension_function_histogram_value.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698