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

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

Issue 584713002: Browser Plugin: Remove dependency on NPAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_content_window
Patch Set: Updated histograms.xml Created 6 years, 3 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 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_));
« 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