summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/events/HashChangeEvent.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/events/HashChangeEvent.h')
-rw-r--r--chromium/third_party/WebKit/Source/core/events/HashChangeEvent.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/chromium/third_party/WebKit/Source/core/events/HashChangeEvent.h b/chromium/third_party/WebKit/Source/core/events/HashChangeEvent.h
index e652df8dca6..334a443fe57 100644
--- a/chromium/third_party/WebKit/Source/core/events/HashChangeEvent.h
+++ b/chromium/third_party/WebKit/Source/core/events/HashChangeEvent.h
@@ -22,7 +22,6 @@
#define HashChangeEvent_h
#include "core/events/Event.h"
-#include "core/events/ThreadLocalEventNames.h"
namespace WebCore {
@@ -35,21 +34,21 @@ struct HashChangeEventInit : public EventInit {
String newURL;
};
-class HashChangeEvent : public Event {
+class HashChangeEvent FINAL : public Event {
public:
- static PassRefPtr<HashChangeEvent> create()
+ static PassRefPtrWillBeRawPtr<HashChangeEvent> create()
{
- return adoptRef(new HashChangeEvent);
+ return adoptRefWillBeNoop(new HashChangeEvent);
}
- static PassRefPtr<HashChangeEvent> create(const String& oldURL, const String& newURL)
+ static PassRefPtrWillBeRawPtr<HashChangeEvent> create(const String& oldURL, const String& newURL)
{
- return adoptRef(new HashChangeEvent(oldURL, newURL));
+ return adoptRefWillBeNoop(new HashChangeEvent(oldURL, newURL));
}
- static PassRefPtr<HashChangeEvent> create(const AtomicString& type, const HashChangeEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<HashChangeEvent> create(const AtomicString& type, const HashChangeEventInit& initializer)
{
- return adoptRef(new HashChangeEvent(type, initializer));
+ return adoptRefWillBeNoop(new HashChangeEvent(type, initializer));
}
void initHashChangeEvent(const AtomicString& eventType, bool canBubble, bool cancelable, const String& oldURL, const String& newURL)
@@ -66,7 +65,9 @@ public:
const String& oldURL() const { return m_oldURL; }
const String& newURL() const { return m_newURL; }
- virtual const AtomicString& interfaceName() const { return EventNames::HashChangeEvent; }
+ virtual const AtomicString& interfaceName() const OVERRIDE { return EventNames::HashChangeEvent; }
+
+ virtual void trace(Visitor* visitor) OVERRIDE { Event::trace(visitor); }
private:
HashChangeEvent()