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

Unified Diff: Source/core/xml/XMLHttpRequestEventTarget.h

Issue 23243002: Introduce XMLHttpRequestEventTarget IDL interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update event-target-in-prototype.html test case Created 7 years, 4 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 | « Source/core/xml/XMLHttpRequest.idl ('k') | Source/core/xml/XMLHttpRequestEventTarget.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XMLHttpRequestEventTarget.h
diff --git a/Source/core/page/DOMWindowBase64.h b/Source/core/xml/XMLHttpRequestEventTarget.h
similarity index 67%
copy from Source/core/page/DOMWindowBase64.h
copy to Source/core/xml/XMLHttpRequestEventTarget.h
index 21001e0bf625345cded68564b9c97ad3be189722..be91c5dcf8f97d6300f79ea5777bff275aedf792 100644
--- a/Source/core/page/DOMWindowBase64.h
+++ b/Source/core/xml/XMLHttpRequestEventTarget.h
@@ -1,6 +1,4 @@
/*
- * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved.
- * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
* Copyright (C) 2013 Samsung Electronics. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -30,20 +28,31 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DOMWindowBase64_h
-#define DOMWindowBase64_h
+#ifndef XMLHttpRequestEventTarget_h
+#define XMLHttpRequestEventTarget_h
-#include "wtf/text/WTFString.h"
+#include "core/dom/EventTarget.h"
namespace WebCore {
-class ExceptionState;
+class XMLHttpRequestEventTarget : public EventTarget {
+public:
+ DEFINE_ATTRIBUTE_EVENT_LISTENER(abort);
+ DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
+ DEFINE_ATTRIBUTE_EVENT_LISTENER(load);
+ DEFINE_ATTRIBUTE_EVENT_LISTENER(loadend);
+ DEFINE_ATTRIBUTE_EVENT_LISTENER(loadstart);
+ DEFINE_ATTRIBUTE_EVENT_LISTENER(progress);
+ DEFINE_ATTRIBUTE_EVENT_LISTENER(timeout);
-namespace DOMWindowBase64 {
-String btoa(void*, const String& stringToEncode, ExceptionState&);
-String atob(void*, const String& encodedString, ExceptionState&);
-}
+protected:
+ virtual EventTargetData* eventTargetData() OVERRIDE { return &m_eventTargetData; }
+ virtual EventTargetData* ensureEventTargetData() OVERRIDE { return &m_eventTargetData; }
+
+private:
+ EventTargetData m_eventTargetData;
+};
} // namespace WebCore
-#endif // DOMWindowBase64_h
+#endif // XMLHttpRequestEventTarget_h
« no previous file with comments | « Source/core/xml/XMLHttpRequest.idl ('k') | Source/core/xml/XMLHttpRequestEventTarget.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698