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

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

Issue 2764313002: Move plugins to be stored in HTMLPlugInElement. (Closed)
Patch Set: Rebase and merge Created 3 years, 9 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.h
diff --git a/third_party/WebKit/Source/core/html/HTMLPlugInElement.h b/third_party/WebKit/Source/core/html/HTMLPlugInElement.h
index 7840ace642fded995f3f75cb31762f6a471f0fb6..a659619511d7c1e895a18a6c5185ef429c817fdb 100644
--- a/third_party/WebKit/Source/core/html/HTMLPlugInElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLPlugInElement.h
@@ -50,7 +50,8 @@ class CORE_EXPORT HTMLPlugInElement : public HTMLFrameOwnerElement {
// TODO(dcheng): Consider removing this, since HTMLEmbedElementLegacyCall
// and HTMLObjectElementLegacyCall usage is extremely low.
SharedPersistent<v8::Object>* pluginWrapper();
- FrameViewBase* pluginWidget() const;
+ PluginView* pluginWidget() const;
+ PluginView* plugin() const;
dcheng 2017/04/04 07:20:12 Please add a TODO to clean this up (and note that
joelhockey 2017/04/04 23:39:05 Done.
bool canProcessDrag() const;
const String& url() const { return m_url; }
@@ -159,7 +160,6 @@ class CORE_EXPORT HTMLPlugInElement : public HTMLFrameOwnerElement {
void setPlugin(PluginView*);
PluginView* releasePlugin();
- PluginView* ownedPlugin() const;
void setPersistedPlugin(PluginView*);
bool requestObjectInternal(const String& url,
@@ -175,6 +175,7 @@ class CORE_EXPORT HTMLPlugInElement : public HTMLFrameOwnerElement {
// avoid accessing |layoutObject()| in layoutObjectIsFocusable().
bool m_pluginIsAvailable = false;
+ Member<PluginView> m_plugin;
// Normally the plugin is stored in HTMLFrameOwnerElement::m_widget.
// However, plugins can persist even when not rendered. In order to
// prevent confusing code which may assume that ownedWidget() != null

Powered by Google App Engine
This is Rietveld 408576698