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

Unified Diff: Source/modules/gamepad/GamepadEvent.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
Index: Source/modules/gamepad/GamepadEvent.h
diff --git a/Source/modules/gamepad/GamepadEvent.h b/Source/modules/gamepad/GamepadEvent.h
index dcadc573369198169b8f77d2f0028bf28925b036..4f77a1c963b3456e9fc71d0518cdf297a7732ad2 100644
--- a/Source/modules/gamepad/GamepadEvent.h
+++ b/Source/modules/gamepad/GamepadEvent.h
@@ -18,17 +18,17 @@ struct GamepadEventInit : public EventInit {
class GamepadEvent FINAL : public Event {
public:
- static PassRefPtr<GamepadEvent> create()
+ static PassRefPtrWillBeRawPtr<GamepadEvent> create()
{
- return adoptRef(new GamepadEvent);
+ return adoptRefWillBeRefCountedGarbageCollected(new GamepadEvent);
}
- static PassRefPtr<GamepadEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<Gamepad> gamepad)
+ static PassRefPtrWillBeRawPtr<GamepadEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<Gamepad> gamepad)
{
- return adoptRef(new GamepadEvent(type, canBubble, cancelable, gamepad));
+ return adoptRefWillBeRefCountedGarbageCollected(new GamepadEvent(type, canBubble, cancelable, gamepad));
}
- static PassRefPtr<GamepadEvent> create(const AtomicString& type, const GamepadEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<GamepadEvent> create(const AtomicString& type, const GamepadEventInit& initializer)
{
- return adoptRef(new GamepadEvent(type, initializer));
+ return adoptRefWillBeRefCountedGarbageCollected(new GamepadEvent(type, initializer));
}
virtual ~GamepadEvent();
« no previous file with comments | « Source/modules/encryptedmedia/MediaKeyNeededEvent.h ('k') | Source/modules/indexeddb/IDBVersionChangeEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698