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

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

Issue 34623002: Move the follwing members from HTMLPlugInImageElement to HTMLPlugInElement. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | Source/core/html/HTMLPlugInElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLPlugInElement.h
diff --git a/Source/core/html/HTMLPlugInElement.h b/Source/core/html/HTMLPlugInElement.h
index df9528374bd1924ceeac9adedfd7595aa6cbeede..70e3ec3f836923c55a88374898e1adef878d3fde 100644
--- a/Source/core/html/HTMLPlugInElement.h
+++ b/Source/core/html/HTMLPlugInElement.h
@@ -34,6 +34,11 @@ class RenderEmbeddedObject;
class RenderWidget;
class Widget;
+enum PreferPlugInsForImagesOption {
+ ShouldPreferPlugInsForImages,
+ ShouldNotPreferPlugInsForImages
+};
+
class HTMLPlugInElement : public HTMLFrameOwnerElement {
public:
virtual ~HTMLPlugInElement();
@@ -68,7 +73,7 @@ public:
virtual void removeAllEventListeners() OVERRIDE FINAL;
protected:
- HTMLPlugInElement(const QualifiedName& tagName, Document&);
+ HTMLPlugInElement(const QualifiedName& tagName, Document&, PreferPlugInsForImagesOption);
virtual void detach(const AttachContext& = AttachContext()) OVERRIDE;
virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
@@ -81,6 +86,12 @@ protected:
// Create or update the RenderWidget and return it, triggering layout if necessary.
virtual RenderWidget* renderWidgetForJSBindings() const;
+ bool isImageType();
+ bool shouldPreferPlugInsForImages() const { return m_shouldPreferPlugInsForImages; }
+
+ String m_serviceType;
+ String m_url;
+
private:
virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; }
@@ -99,6 +110,7 @@ private:
NPObject* m_NPObject;
bool m_isCapturingMouseEvents;
bool m_inBeforeLoadEventHandler;
+ bool m_shouldPreferPlugInsForImages;
DisplayState m_displayState;
};
« no previous file with comments | « no previous file | Source/core/html/HTMLPlugInElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698