summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/events/CustomEvent.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/events/CustomEvent.h')
-rw-r--r--chromium/third_party/WebKit/Source/core/events/CustomEvent.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/chromium/third_party/WebKit/Source/core/events/CustomEvent.h b/chromium/third_party/WebKit/Source/core/events/CustomEvent.h
index 9be0e119aa7..5340f75431b 100644
--- a/chromium/third_party/WebKit/Source/core/events/CustomEvent.h
+++ b/chromium/third_party/WebKit/Source/core/events/CustomEvent.h
@@ -34,23 +34,23 @@ class SerializedScriptValue;
typedef EventInit CustomEventInit;
-class CustomEvent : public Event {
+class CustomEvent FINAL : public Event {
public:
virtual ~CustomEvent();
- static PassRefPtr<CustomEvent> create()
+ static PassRefPtrWillBeRawPtr<CustomEvent> create()
{
- return adoptRef(new CustomEvent);
+ return adoptRefWillBeNoop(new CustomEvent);
}
- static PassRefPtr<CustomEvent> create(const AtomicString& type, const CustomEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<CustomEvent> create(const AtomicString& type, const CustomEventInit& initializer)
{
- return adoptRef(new CustomEvent(type, initializer));
+ return adoptRefWillBeNoop(new CustomEvent(type, initializer));
}
void initCustomEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<SerializedScriptValue>);
- virtual const AtomicString& interfaceName() const;
+ virtual const AtomicString& interfaceName() const OVERRIDE;
SerializedScriptValue* serializedDetail() { return m_serializedDetail.get(); }
@@ -60,6 +60,8 @@ public:
m_serializedDetail = detail;
}
+ virtual void trace(Visitor*) OVERRIDE;
+
private:
CustomEvent();
CustomEvent(const AtomicString& type, const CustomEventInit& initializer);