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

Unified Diff: content/browser/browser_plugin/browser_plugin_embedder.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.cc
diff --git a/content/browser/browser_plugin/browser_plugin_embedder.cc b/content/browser/browser_plugin/browser_plugin_embedder.cc
index 48ea63af7d9f3666528fbb8e3f38bc69a9efc495..3de86f760756c8073f45cc3ee93760397d16dde1 100644
--- a/content/browser/browser_plugin/browser_plugin_embedder.cc
+++ b/content/browser/browser_plugin/browser_plugin_embedder.cc
@@ -213,6 +213,12 @@ void BrowserPluginEmbedder::ResizeGuest(
guest->Resize(render_view_host, params);
}
+void BrowserPluginEmbedder::SetName(int instance_id, const std::string& name) {
+ BrowserPluginGuest* guest = GetGuestByInstanceID(instance_id);
+ if (guest)
+ guest->SetName(name);
+}
+
void BrowserPluginEmbedder::SetFocus(int instance_id,
bool focused) {
BrowserPluginGuest* guest = GetGuestByInstanceID(instance_id);

Powered by Google App Engine
This is Rietveld 408576698