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

Unified Diff: third_party/WebKit/Source/core/dom/Touch.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/Touch.h
diff --git a/third_party/WebKit/Source/core/dom/Touch.h b/third_party/WebKit/Source/core/dom/Touch.h
index 9d5490a24135fa5b0b6f62a6736d4a173c9d7309..e2f71d1a74e7c29835ea05c40079465d3acdaadc 100644
--- a/third_party/WebKit/Source/core/dom/Touch.h
+++ b/third_party/WebKit/Source/core/dom/Touch.h
@@ -43,20 +43,20 @@ namespace blink {
class LocalFrame;
-class CORE_EXPORT Touch final : public RefCountedWillBeGarbageCollected<Touch>, public ScriptWrappable {
+class CORE_EXPORT Touch final : public GarbageCollected<Touch>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtrWillBeRawPtr<Touch> create(LocalFrame* frame, EventTarget* target,
+ static RawPtr<Touch> create(LocalFrame* frame, EventTarget* target,
int identifier, const FloatPoint& screenPos, const FloatPoint& pagePos,
const FloatSize& radius, float rotationAngle, float force)
{
- return adoptRefWillBeNoop(
+ return (
new Touch(frame, target, identifier, screenPos, pagePos, radius, rotationAngle, force));
}
- static PassRefPtrWillBeRawPtr<Touch> create(const Document& document, const TouchInit& initializer)
+ static RawPtr<Touch> create(const Document& document, const TouchInit& initializer)
{
- return adoptRefWillBeNoop(new Touch(document.frame(), initializer));
+ return (new Touch(document.frame(), initializer));
}
// DOM Touch implementation
@@ -76,7 +76,7 @@ public:
// Blink-internal methods
const LayoutPoint& absoluteLocation() const { return m_absoluteLocation; }
const FloatPoint& screenLocation() const { return m_screenPos; }
- PassRefPtrWillBeRawPtr<Touch> cloneWithNewTarget(EventTarget*) const;
+ RawPtr<Touch> cloneWithNewTarget(EventTarget*) const;
DECLARE_TRACE();
@@ -91,7 +91,7 @@ private:
Touch(LocalFrame*, const TouchInit&);
- RefPtrWillBeMember<EventTarget> m_target;
+ Member<EventTarget> m_target;
int m_identifier;
// Position relative to the viewport in CSS px.
FloatPoint m_clientPos;

Powered by Google App Engine
This is Rietveld 408576698