diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/html/HTMLSourceElement.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/html/HTMLSourceElement.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/chromium/third_party/WebKit/Source/core/html/HTMLSourceElement.h b/chromium/third_party/WebKit/Source/core/html/HTMLSourceElement.h index 0002d210706..339c12a99af 100644 --- a/chromium/third_party/WebKit/Source/core/html/HTMLSourceElement.h +++ b/chromium/third_party/WebKit/Source/core/html/HTMLSourceElement.h @@ -31,33 +31,32 @@ namespace WebCore { +template<typename T> class EventSender; +typedef EventSender<HTMLSourceElement> SourceEventSender; + class HTMLSourceElement FINAL : public HTMLElement { public: - static PassRefPtr<HTMLSourceElement> create(Document&); + DECLARE_NODE_FACTORY(HTMLSourceElement); + virtual ~HTMLSourceElement(); - const AtomicString& media() const; const AtomicString& type() const; void setSrc(const String&); - void setMedia(const AtomicString&); void setType(const AtomicString&); void scheduleErrorEvent(); void cancelPendingErrorEvent(); + void dispatchPendingEvent(SourceEventSender*); + private: explicit HTMLSourceElement(Document&); virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; virtual void removedFrom(ContainerNode*) OVERRIDE; virtual bool isURLAttribute(const Attribute&) const OVERRIDE; - - void errorEventTimerFired(Timer<HTMLSourceElement>*); - - Timer<HTMLSourceElement> m_errorEventTimer; + virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; }; -DEFINE_NODE_TYPE_CASTS(HTMLSourceElement, hasTagName(HTMLNames::sourceTag)); - } // namespace WebCore #endif |