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

Unified Diff: third_party/WebKit/Source/core/events/DragEvent.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/events/DragEvent.h
diff --git a/third_party/WebKit/Source/core/events/DragEvent.h b/third_party/WebKit/Source/core/events/DragEvent.h
index 86af939a537ba81a74e15420a0fe3b97bffd433a..4c321fbd510a0380cd871061431ff815034ace55 100644
--- a/third_party/WebKit/Source/core/events/DragEvent.h
+++ b/third_party/WebKit/Source/core/events/DragEvent.h
@@ -17,27 +17,27 @@ class CORE_EXPORT DragEvent final : public MouseEvent {
DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtrWillBeRawPtr<DragEvent> create()
+ static RawPtr<DragEvent> create()
{
- return adoptRefWillBeNoop(new DragEvent);
+ return (new DragEvent);
}
- static PassRefPtrWillBeRawPtr<DragEvent> create(DataTransfer* dataTransfer)
+ static RawPtr<DragEvent> create(DataTransfer* dataTransfer)
{
- return adoptRefWillBeNoop(new DragEvent(dataTransfer));
+ return (new DragEvent(dataTransfer));
}
- static PassRefPtrWillBeRawPtr<DragEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView>,
+ static RawPtr<DragEvent> create(const AtomicString& type, bool canBubble, bool cancelable, RawPtr<AbstractView>,
int detail, int screenX, int screenY, int windowX, int windowY,
int movementX, int movementY,
PlatformEvent::Modifiers, short button, unsigned short buttons,
- PassRefPtrWillBeRawPtr<EventTarget> relatedTarget,
+ RawPtr<EventTarget> relatedTarget,
double platformTimeStamp, DataTransfer*,
PlatformMouseEvent::SyntheticEventType = PlatformMouseEvent::RealOrIndistinguishable);
- static PassRefPtrWillBeRawPtr<DragEvent> create(const AtomicString& type, const DragEventInit& initializer)
+ static RawPtr<DragEvent> create(const AtomicString& type, const DragEventInit& initializer)
{
- return adoptRefWillBeNoop(new DragEvent(type, initializer));
+ return (new DragEvent(type, initializer));
}
DataTransfer* dataTransfer() const override { return isDragEvent() ? m_dataTransfer.get() : nullptr; }
@@ -45,32 +45,32 @@ public:
bool isDragEvent() const override;
bool isMouseEvent() const override;
- PassRefPtrWillBeRawPtr<EventDispatchMediator> createMediator() override;
+ RawPtr<EventDispatchMediator> createMediator() override;
DECLARE_VIRTUAL_TRACE();
private:
DragEvent();
DragEvent(DataTransfer*);
- DragEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView>,
+ DragEvent(const AtomicString& type, bool canBubble, bool cancelable, RawPtr<AbstractView>,
int detail, int screenX, int screenY, int windowX, int windowY,
int movementX, int movementY,
PlatformEvent::Modifiers, short button, unsigned short buttons,
- PassRefPtrWillBeRawPtr<EventTarget> relatedTarget,
+ RawPtr<EventTarget> relatedTarget,
double platformTimeStamp, DataTransfer*,
PlatformMouseEvent::SyntheticEventType);
DragEvent(const AtomicString& type, const DragEventInit&);
- PersistentWillBeMember<DataTransfer> m_dataTransfer;
+ Member<DataTransfer> m_dataTransfer;
};
class DragEventDispatchMediator final : public EventDispatchMediator {
public:
- static PassRefPtrWillBeRawPtr<DragEventDispatchMediator> create(PassRefPtrWillBeRawPtr<DragEvent>);
+ static RawPtr<DragEventDispatchMediator> create(RawPtr<DragEvent>);
private:
- explicit DragEventDispatchMediator(PassRefPtrWillBeRawPtr<DragEvent>);
+ explicit DragEventDispatchMediator(RawPtr<DragEvent>);
DragEvent& event() const;
bool dispatchEvent(EventDispatcher&) const override;
};

Powered by Google App Engine
This is Rietveld 408576698