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

Unified Diff: third_party/WebKit/Source/core/dom/TouchList.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/core/dom/TouchList.h
diff --git a/third_party/WebKit/Source/core/dom/TouchList.h b/third_party/WebKit/Source/core/dom/TouchList.h
index 6f471a28fc731a3b7150d571cbf336386140f277..d848e966f70acf1625cc47b2c5cb43a3f5c018a8 100644
--- a/third_party/WebKit/Source/core/dom/TouchList.h
+++ b/third_party/WebKit/Source/core/dom/TouchList.h
@@ -35,24 +35,24 @@
namespace blink {
-class CORE_EXPORT TouchList final : public RefCountedWillBeGarbageCollected<TouchList>, public ScriptWrappable {
+class CORE_EXPORT TouchList final : public GarbageCollected<TouchList>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtrWillBeRawPtr<TouchList> create()
+ static RawPtr<TouchList> create()
{
- return adoptRefWillBeNoop(new TouchList);
+ return (new TouchList);
}
- static PassRefPtrWillBeRawPtr<TouchList> create(const WillBeHeapVector<RefPtrWillBeMember<Touch>>& touches)
+ static RawPtr<TouchList> create(const HeapVector<Member<Touch>>& touches)
{
- RefPtrWillBeRawPtr<TouchList> list = adoptRefWillBeNoop(new TouchList);
+ RawPtr<TouchList> list = (new TouchList);
list->m_values.appendVector(touches);
return list.release();
}
- static PassRefPtrWillBeRawPtr<TouchList> adopt(WillBeHeapVector<RefPtrWillBeMember<Touch>>& touches)
+ static RawPtr<TouchList> adopt(HeapVector<Member<Touch>>& touches)
{
- return adoptRefWillBeNoop(new TouchList(touches));
+ return (new TouchList(touches));
}
unsigned length() const { return m_values.size(); }
@@ -60,19 +60,19 @@ public:
Touch* item(unsigned);
const Touch* item(unsigned) const;
- void append(const PassRefPtrWillBeRawPtr<Touch> touch) { m_values.append(touch); }
+ void append(const RawPtr<Touch> touch) { m_values.append(touch); }
DECLARE_TRACE();
private:
TouchList() { }
- TouchList(WillBeHeapVector<RefPtrWillBeMember<Touch>>& touches)
+ TouchList(HeapVector<Member<Touch>>& touches)
{
m_values.swap(touches);
}
- WillBeHeapVector<RefPtrWillBeMember<Touch>> m_values;
+ HeapVector<Member<Touch>> m_values;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698