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/html/MediaKeyEvent.h

Issue 182763002: Add [WillBeGarbageCollected] to Event.idl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/events/WheelEvent.h ('k') | Source/core/html/canvas/WebGLContextEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/MediaKeyEvent.h
diff --git a/Source/core/html/MediaKeyEvent.h b/Source/core/html/MediaKeyEvent.h
index fb7112743a813613525fb369eeda0a2f71855faa..4e5ce4c58ac31c3eba158de97635e6d3fe9a1bbb 100644
--- a/Source/core/html/MediaKeyEvent.h
+++ b/Source/core/html/MediaKeyEvent.h
@@ -47,14 +47,14 @@ class MediaKeyEvent FINAL : public Event {
public:
virtual ~MediaKeyEvent();
- static PassRefPtr<MediaKeyEvent> create()
+ static PassRefPtrWillBeRawPtr<MediaKeyEvent> create()
{
- return adoptRef(new MediaKeyEvent);
+ return adoptRefWillBeRefCountedGarbageCollected(new MediaKeyEvent);
}
- static PassRefPtr<MediaKeyEvent> create(const AtomicString& type, const MediaKeyEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<MediaKeyEvent> create(const AtomicString& type, const MediaKeyEventInit& initializer)
{
- return adoptRef(new MediaKeyEvent(type, initializer));
+ return adoptRefWillBeRefCountedGarbageCollected(new MediaKeyEvent(type, initializer));
}
virtual const AtomicString& interfaceName() const OVERRIDE;
« no previous file with comments | « Source/core/events/WheelEvent.h ('k') | Source/core/html/canvas/WebGLContextEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698