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

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

Issue 258503007: Use EventSender class in HTMLSourceElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « no previous file | Source/core/html/HTMLSourceElement.cpp » ('j') | Source/core/html/HTMLSourceElement.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLSourceElement.h
diff --git a/Source/core/html/HTMLSourceElement.h b/Source/core/html/HTMLSourceElement.h
index 28d67c41a18545accb63b6fe11d9f0972c5b9e94..d026e0f838701f6893ed9c7b350a865423e5fc3c 100644
--- a/Source/core/html/HTMLSourceElement.h
+++ b/Source/core/html/HTMLSourceElement.h
@@ -31,9 +31,13 @@
namespace WebCore {
+template<typename T> class EventSender;
+typedef EventSender<HTMLSourceElement> SourceEventSender;
+
class HTMLSourceElement FINAL : public HTMLElement {
public:
static PassRefPtr<HTMLSourceElement> create(Document&);
+ virtual ~HTMLSourceElement();
const AtomicString& type() const;
void setSrc(const String&);
@@ -42,16 +46,14 @@ public:
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;
};
} // namespace WebCore
« no previous file with comments | « no previous file | Source/core/html/HTMLSourceElement.cpp » ('j') | Source/core/html/HTMLSourceElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698