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

Unified Diff: Source/core/events/Event.h

Issue 1154943009: bindings: Remove [EventConstructor] and [InitializedByEventConstructor] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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
Index: Source/core/events/Event.h
diff --git a/Source/core/events/Event.h b/Source/core/events/Event.h
index 3a0a66575a36dcf4d0b25d4f885d5f38900a1149..6242b0b67a6a3448137d54d82abe4500354dd832 100644
--- a/Source/core/events/Event.h
+++ b/Source/core/events/Event.h
@@ -27,7 +27,7 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "core/CoreExport.h"
#include "core/dom/DOMTimeStamp.h"
-#include "core/events/EventInitDictionary.h"
+#include "core/events/EventInit.h"
#include "core/events/EventPath.h"
#include "platform/heap/Handle.h"
#include "wtf/RefCounted.h"
@@ -38,15 +38,6 @@ namespace blink {
class EventTarget;
class ExecutionContext;
-struct EventInit {
- STACK_ALLOCATED();
-public:
- EventInit();
-
- bool bubbles;
- bool cancelable;
-};
-
class CORE_EXPORT Event : public RefCountedWillBeGarbageCollectedFinalized<Event>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
@@ -107,15 +98,10 @@ public:
return adoptRefWillBeNoop(new Event(type, true, true));
}
- // TODO(bashi): Remove this when we remove all [EventConstructor].
static PassRefPtrWillBeRawPtr<Event> create(const AtomicString& type, const EventInit& initializer)
{
return adoptRefWillBeNoop(new Event(type, initializer));
}
- static PassRefPtrWillBeRawPtr<Event> create(const AtomicString& type, const EventInitDictionary& initializer)
- {
- return adoptRefWillBeNoop(new Event(type, initializer));
- }
virtual ~Event();
@@ -205,7 +191,6 @@ protected:
Event();
Event(const AtomicString& type, bool canBubble, bool cancelable);
Event(const AtomicString& type, const EventInit&);
- Event(const AtomicString& type, const EventInitDictionary&);
virtual void receivedTarget();
bool dispatched() const { return m_target; }

Powered by Google App Engine
This is Rietveld 408576698