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

Unified Diff: Source/core/events/TouchEvent.h

Issue 185393006: Revert "Add [WillBeGarbageCollected] to Event.idl" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/core/events/TouchEvent.h
diff --git a/Source/core/events/TouchEvent.h b/Source/core/events/TouchEvent.h
index e061cac026d72f2e88bbb84317d5c7cf2dd16e93..ff0a766ce885925f37307eb20ed93f80723dddde 100644
--- a/Source/core/events/TouchEvent.h
+++ b/Source/core/events/TouchEvent.h
@@ -37,27 +37,26 @@ class TouchEvent FINAL : public MouseRelatedEvent {
public:
virtual ~TouchEvent();
- static PassRefPtrWillBeRawPtr<TouchEvent> create()
+ static PassRefPtr<TouchEvent> create()
{
- return adoptRefWillBeRefCountedGarbageCollected(new TouchEvent);
+ return adoptRef(new TouchEvent);
}
- static PassRefPtrWillBeRawPtr<TouchEvent> create(TouchList* touches,
+ static PassRefPtr<TouchEvent> create(TouchList* touches,
TouchList* targetTouches, TouchList* changedTouches,
const AtomicString& type, PassRefPtr<AbstractView> view,
int screenX, int screenY, int pageX, int pageY,
bool ctrlKey, bool altKey, bool shiftKey, bool metaKey)
{
- return adoptRefWillBeRefCountedGarbageCollected(new TouchEvent(
- touches, targetTouches, changedTouches,
+ return adoptRef(new TouchEvent(touches, targetTouches, changedTouches,
type, view, screenX, screenY, pageX, pageY,
ctrlKey, altKey, shiftKey, metaKey));
}
void initTouchEvent(TouchList* touches, TouchList* targetTouches,
- TouchList* changedTouches, const AtomicString& type,
- PassRefPtr<AbstractView> view, int screenX, int screenY,
- int clientX, int clientY,
- bool ctrlKey, bool altKey, bool shiftKey, bool metaKey);
+ TouchList* changedTouches, const AtomicString& type,
+ PassRefPtr<AbstractView>, int screenX, int screenY,
+ int clientX, int clientY,
+ bool ctrlKey, bool altKey, bool shiftKey, bool metaKey);
TouchList* touches() const { return m_touches.get(); }
TouchList* targetTouches() const { return m_targetTouches.get(); }

Powered by Google App Engine
This is Rietveld 408576698