diff options
Diffstat (limited to 'Source/WebCore/html/HTMLPlugInImageElement.h')
| -rw-r--r-- | Source/WebCore/html/HTMLPlugInImageElement.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/WebCore/html/HTMLPlugInImageElement.h b/Source/WebCore/html/HTMLPlugInImageElement.h index 95fbd8a79..c5bf6fa1f 100644 --- a/Source/WebCore/html/HTMLPlugInImageElement.h +++ b/Source/WebCore/html/HTMLPlugInImageElement.h @@ -30,6 +30,7 @@ namespace WebCore { class HTMLImageLoader; class FrameLoader; +class MouseEvent; enum PluginCreationOption { CreateAnyWidgetType, @@ -58,6 +59,8 @@ public: bool needsWidgetUpdate() const { return m_needsWidgetUpdate; } void setNeedsWidgetUpdate(bool needsWidgetUpdate) { m_needsWidgetUpdate = needsWidgetUpdate; } + void setPendingClickEvent(PassRefPtr<MouseEvent>); + protected: HTMLPlugInImageElement(const QualifiedName& tagName, Document*, bool createdByParser, PreferPlugInsForImagesOption); @@ -91,11 +94,15 @@ private: virtual bool useFallbackContent() const { return false; } virtual void updateSnapshot(PassRefPtr<Image>) OVERRIDE; + virtual void dispatchPendingMouseClick() OVERRIDE; + void simulatedMouseClickTimerFired(DeferrableOneShotTimer<HTMLPlugInImageElement>*); bool m_needsWidgetUpdate; bool m_shouldPreferPlugInsForImages; bool m_needsDocumentActivationCallbacks; RefPtr<RenderStyle> m_customStyleForPageCache; + RefPtr<MouseEvent> m_pendingClickEventFromSnapshot; + DeferrableOneShotTimer<HTMLPlugInImageElement> m_simulatedMouseClickTimer; }; } // namespace WebCore |
