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

Unified Diff: third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.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, 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: third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.h
diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.h b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.h
index a613c603569d2a91956b219393a5c6274a782f63..f7cfe99ea1b81d4e31cdd6ae764a71b7db9215d6 100644
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.h
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.h
@@ -39,13 +39,13 @@ class DeviceMotionEvent final : public Event {
DEFINE_WRAPPERTYPEINFO();
public:
~DeviceMotionEvent() override;
- static PassRefPtrWillBeRawPtr<DeviceMotionEvent> create()
+ static RawPtr<DeviceMotionEvent> create()
{
return adoptRefWillBeNoop(new DeviceMotionEvent);
}
- static PassRefPtrWillBeRawPtr<DeviceMotionEvent> create(const AtomicString& eventType, DeviceMotionData* deviceMotionData)
+ static RawPtr<DeviceMotionEvent> create(const AtomicString& eventType, DeviceMotionData* deviceMotionData)
{
- return adoptRefWillBeNoop(new DeviceMotionEvent(eventType, deviceMotionData));
+ return new DeviceMotionEvent(eventType, deviceMotionData);
}
void initDeviceMotionEvent(const AtomicString& type, bool bubbles, bool cancelable, DeviceMotionData*);
@@ -65,10 +65,10 @@ private:
DeviceMotionEvent();
DeviceMotionEvent(const AtomicString& eventType, DeviceMotionData*);
- PersistentWillBeMember<DeviceMotionData> m_deviceMotionData;
- PersistentWillBeMember<DeviceAcceleration> m_acceleration;
- PersistentWillBeMember<DeviceAcceleration> m_accelerationIncludingGravity;
- PersistentWillBeMember<DeviceRotationRate> m_rotationRate;
+ Member<DeviceMotionData> m_deviceMotionData;
+ Member<DeviceAcceleration> m_acceleration;
+ Member<DeviceAcceleration> m_accelerationIncludingGravity;
+ Member<DeviceRotationRate> m_rotationRate;
};
DEFINE_TYPE_CASTS(DeviceMotionEvent, Event, event, event->interfaceName() == EventNames::DeviceMotionEvent, event.interfaceName() == EventNames::DeviceMotionEvent);

Powered by Google App Engine
This is Rietveld 408576698