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

Unified Diff: chrome/browser/extensions/api/webview/webview_api.cc

Issue 291483010: <webview>: Move name attribute to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@newwindow_refactor
Patch Set: Addressed John's comments Created 6 years, 7 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/webview/webview_api.cc
diff --git a/chrome/browser/extensions/api/webview/webview_api.cc b/chrome/browser/extensions/api/webview/webview_api.cc
index 93898f05636fa76b671dc5a91835bfe9abe1c493..cfa2e34e948dbba6db75d3766a594f6bbe501409 100644
--- a/chrome/browser/extensions/api/webview/webview_api.cc
+++ b/chrome/browser/extensions/api/webview/webview_api.cc
@@ -349,12 +349,27 @@ void WebviewCaptureVisibleRegionFunction::OnCaptureFailure(
SendResponse(false);
}
+WebviewSetNameFunction::WebviewSetNameFunction() {
+}
+
+WebviewSetNameFunction::~WebviewSetNameFunction() {
+}
+
WebviewSetZoomFunction::WebviewSetZoomFunction() {
}
WebviewSetZoomFunction::~WebviewSetZoomFunction() {
}
+bool WebviewSetNameFunction::RunAsyncSafe(WebViewGuest* guest) {
+ scoped_ptr<webview::SetName::Params> params(
+ webview::SetName::Params::Create(*args_));
+ EXTENSION_FUNCTION_VALIDATE(params.get());
+ guest->SetName(params->frame_name);
+ SendResponse(true);
+ return true;
+}
+
bool WebviewSetZoomFunction::RunAsyncSafe(WebViewGuest* guest) {
scoped_ptr<webview::SetZoom::Params> params(
webview::SetZoom::Params::Create(*args_));
« no previous file with comments | « chrome/browser/extensions/api/webview/webview_api.h ('k') | chrome/browser/guest_view/web_view/web_view_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698