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

Unified Diff: third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.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/DeviceOrientationEvent.h
diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.h b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.h
index 545c2fbd247c8943d0055a64c45a39f035955775..05924593fc1c7030f2138028274a2e7ec220e255 100644
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.h
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.h
@@ -38,13 +38,13 @@ class DeviceOrientationEvent final : public Event {
DEFINE_WRAPPERTYPEINFO();
public:
~DeviceOrientationEvent() override;
- static PassRefPtrWillBeRawPtr<DeviceOrientationEvent> create()
+ static RawPtr<DeviceOrientationEvent> create()
{
return adoptRefWillBeNoop(new DeviceOrientationEvent);
}
- static PassRefPtrWillBeRawPtr<DeviceOrientationEvent> create(const AtomicString& eventType, DeviceOrientationData* orientation)
+ static RawPtr<DeviceOrientationEvent> create(const AtomicString& eventType, DeviceOrientationData* orientation)
{
- return adoptRefWillBeNoop(new DeviceOrientationEvent(eventType, orientation));
+ return new DeviceOrientationEvent(eventType, orientation);
}
void initDeviceOrientationEvent(const AtomicString& type, bool bubbles, bool cancelable, const Nullable<double>& alpha, const Nullable<double>& beta, const Nullable<double>& gamma, bool absolute);
@@ -64,7 +64,7 @@ private:
DeviceOrientationEvent();
DeviceOrientationEvent(const AtomicString& eventType, DeviceOrientationData*);
- PersistentWillBeMember<DeviceOrientationData> m_orientation;
+ Member<DeviceOrientationData> m_orientation;
};
DEFINE_TYPE_CASTS(DeviceOrientationEvent, Event, event, event->interfaceName() == EventNames::DeviceOrientationEvent, event.interfaceName() == EventNames::DeviceOrientationEvent);

Powered by Google App Engine
This is Rietveld 408576698