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

Unified Diff: Source/core/events/TouchEvent.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/TextEvent.cpp ('k') | Source/core/events/TransitionEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/TouchEvent.h
diff --git a/Source/core/events/TouchEvent.h b/Source/core/events/TouchEvent.h
index 3d970a7f94fc0143ffeb39495abee18392fe0326..dcdfea95d5f98438ee4a7844aaf1eaad39815d7f 100644
--- a/Source/core/events/TouchEvent.h
+++ b/Source/core/events/TouchEvent.h
@@ -37,17 +37,17 @@ class TouchEvent FINAL : public MouseRelatedEvent {
public:
virtual ~TouchEvent();
- static PassRefPtr<TouchEvent> create()
+ static PassRefPtrWillBeRawPtr<TouchEvent> create()
{
- return adoptRef(new TouchEvent);
+ return adoptRefWillBeRefCountedGarbageCollected(new TouchEvent);
}
- static PassRefPtr<TouchEvent> create(TouchList* touches,
+ static PassRefPtrWillBeRawPtr<TouchEvent> create(TouchList* touches,
TouchList* targetTouches, TouchList* changedTouches,
const AtomicString& type, PassRefPtrWillBeRawPtr<AbstractView> view,
int screenX, int screenY, int pageX, int pageY,
bool ctrlKey, bool altKey, bool shiftKey, bool metaKey)
{
- return adoptRef(new TouchEvent(touches, targetTouches, changedTouches,
+ return adoptRefWillBeRefCountedGarbageCollected(new TouchEvent(touches, targetTouches, changedTouches,
type, view, screenX, screenY, pageX, pageY,
ctrlKey, altKey, shiftKey, metaKey));
}
« no previous file with comments | « Source/core/events/TextEvent.cpp ('k') | Source/core/events/TransitionEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698