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

Unified Diff: content/browser/browser_plugin/browser_plugin_embedder_helper.cc

Issue 11554030: <webview>: Add name attribute (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added tests Created 8 years 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: content/browser/browser_plugin/browser_plugin_embedder_helper.cc
diff --git a/content/browser/browser_plugin/browser_plugin_embedder_helper.cc b/content/browser/browser_plugin/browser_plugin_embedder_helper.cc
index cfd0eb99126589c8c4af6b2c9bce82c3389f04e3..0476af1c03f149572e7e5611c65a2f1197030ede 100644
--- a/content/browser/browser_plugin/browser_plugin_embedder_helper.cc
+++ b/content/browser/browser_plugin/browser_plugin_embedder_helper.cc
@@ -57,6 +57,7 @@ bool BrowserPluginEmbedderHelper::OnMessageReceived(
OnPluginAtPositionResponse)
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_BuffersSwappedACK,
OnSwapBuffersACK)
+ IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_SetName, OnSetName)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -181,4 +182,9 @@ void BrowserPluginEmbedderHelper::OnSetAutoSize(
embedder_->SetAutoSize(instance_id, auto_size_params, resize_guest_params);
}
+void BrowserPluginEmbedderHelper::OnSetName(int instance_id,
+ const std::string& name) {
+ embedder_->SetName(instance_id, name);
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698