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

Unified Diff: third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp

Issue 2810593002: Set plugin focus by implementing HTMLPlugInElement::SetFocused. (Closed)
Patch Set: fix comments Created 3 years, 8 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: third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp b/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
index 7e1a51a703d1e1756c1575eb7e00812d6ef31b40..b6b325a1b8a49335e098c8a7b0919852b88ce70c 100644
--- a/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
@@ -155,6 +155,12 @@ void HTMLPlugInElement::SetPersistedPlugin(PluginView* plugin) {
persisted_plugin_ = plugin;
}
+void HTMLPlugInElement::SetFocused(bool focused, WebFocusType focus_type) {
+ if (plugin_)
+ plugin_->SetFocused(focused, focus_type);
+ HTMLFrameOwnerElement::SetFocused(focused, focus_type);
+}
+
bool HTMLPlugInElement::RequestObjectInternal(
const String& url,
const String& mime_type,
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLPlugInElement.h ('k') | third_party/WebKit/Source/core/html/TextControlElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698