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 0bffc5a7067743c023b47e639b5f248660b480fa..cbacf7e59d82c1ac7b827e5dd61c0d065416c5de 100644 |
--- a/extensions/browser/api/web_view/web_view_internal_api.cc |
+++ b/extensions/browser/api/web_view/web_view_internal_api.cc |
@@ -180,12 +180,6 @@ WebViewInternalSetNameFunction::WebViewInternalSetNameFunction() { |
WebViewInternalSetNameFunction::~WebViewInternalSetNameFunction() { |
} |
-WebViewInternalSetZoomFunction::WebViewInternalSetZoomFunction() { |
-} |
- |
-WebViewInternalSetZoomFunction::~WebViewInternalSetZoomFunction() { |
-} |
- |
bool WebViewInternalSetNameFunction::RunAsyncSafe(WebViewGuest* guest) { |
scoped_ptr<webview::SetName::Params> params( |
webview::SetName::Params::Create(*args_)); |
@@ -195,6 +189,30 @@ bool WebViewInternalSetNameFunction::RunAsyncSafe(WebViewGuest* guest) { |
return true; |
} |
+WebViewInternalSetAllowTransparencyFunction:: |
+WebViewInternalSetAllowTransparencyFunction() { |
+} |
+ |
+WebViewInternalSetAllowTransparencyFunction:: |
+~WebViewInternalSetAllowTransparencyFunction() { |
+} |
+ |
+bool WebViewInternalSetAllowTransparencyFunction::RunAsyncSafe( |
+ WebViewGuest* guest) { |
+ scoped_ptr<webview::SetAllowTransparency::Params> params( |
+ webview::SetAllowTransparency::Params::Create(*args_)); |
+ EXTENSION_FUNCTION_VALIDATE(params.get()); |
+ guest->SetAllowTransparency(params->allow); |
+ SendResponse(true); |
+ return true; |
+} |
+ |
+WebViewInternalSetZoomFunction::WebViewInternalSetZoomFunction() { |
+} |
+ |
+WebViewInternalSetZoomFunction::~WebViewInternalSetZoomFunction() { |
+} |
+ |
bool WebViewInternalSetZoomFunction::RunAsyncSafe(WebViewGuest* guest) { |
scoped_ptr<webview::SetZoom::Params> params( |
webview::SetZoom::Params::Create(*args_)); |