| Index: third_party/WebKit/Source/core/events/MouseEvent.h
|
| diff --git a/third_party/WebKit/Source/core/events/MouseEvent.h b/third_party/WebKit/Source/core/events/MouseEvent.h
|
| index b3c5735cfc9b1313739347ceab34b6ec208c02ee..1d7e68874f81749515b445a92ed8be8bae90cf62 100644
|
| --- a/third_party/WebKit/Source/core/events/MouseEvent.h
|
| +++ b/third_party/WebKit/Source/core/events/MouseEvent.h
|
| @@ -37,35 +37,35 @@ class EventDispatcher;
|
| class CORE_EXPORT MouseEvent : public MouseRelatedEvent {
|
| DEFINE_WRAPPERTYPEINFO();
|
| public:
|
| - static PassRefPtrWillBeRawPtr<MouseEvent> create()
|
| + static RawPtr<MouseEvent> create()
|
| {
|
| - return adoptRefWillBeNoop(new MouseEvent);
|
| + return (new MouseEvent);
|
| }
|
|
|
| // TODO(mustaq): Should replace most/all of these params with a MouseEventInit.
|
| - static PassRefPtrWillBeRawPtr<MouseEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView>,
|
| + static RawPtr<MouseEvent> 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,
|
| PlatformMouseEvent::SyntheticEventType = PlatformMouseEvent::RealOrIndistinguishable);
|
|
|
| - static PassRefPtrWillBeRawPtr<MouseEvent> create(const AtomicString& eventType, PassRefPtrWillBeRawPtr<AbstractView>, const PlatformMouseEvent&, int detail, PassRefPtrWillBeRawPtr<Node> relatedTarget);
|
| + static RawPtr<MouseEvent> create(const AtomicString& eventType, RawPtr<AbstractView>, const PlatformMouseEvent&, int detail, RawPtr<Node> relatedTarget);
|
|
|
| - static PassRefPtrWillBeRawPtr<MouseEvent> create(ScriptState*, const AtomicString& eventType, const MouseEventInit&);
|
| + static RawPtr<MouseEvent> create(ScriptState*, const AtomicString& eventType, const MouseEventInit&);
|
|
|
| - static PassRefPtrWillBeRawPtr<MouseEvent> create(const AtomicString& eventType, PassRefPtrWillBeRawPtr<AbstractView>, PassRefPtrWillBeRawPtr<Event> underlyingEvent, SimulatedClickCreationScope);
|
| + static RawPtr<MouseEvent> create(const AtomicString& eventType, RawPtr<AbstractView>, RawPtr<Event> underlyingEvent, SimulatedClickCreationScope);
|
|
|
| ~MouseEvent() override;
|
|
|
| static unsigned short platformModifiersToButtons(unsigned modifiers);
|
| static unsigned short buttonToButtons(short button);
|
|
|
| - void initMouseEvent(ScriptState*, const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView>,
|
| + void initMouseEvent(ScriptState*, const AtomicString& type, bool canBubble, bool cancelable, RawPtr<AbstractView>,
|
| int detail, int screenX, int screenY, int clientX, int clientY,
|
| bool ctrlKey, bool altKey, bool shiftKey, bool metaKey,
|
| - short button, PassRefPtrWillBeRawPtr<EventTarget> relatedTarget, unsigned short buttons = 0);
|
| + short button, RawPtr<EventTarget> relatedTarget, unsigned short buttons = 0);
|
|
|
| // WinIE uses 1,4,2 for left/middle/right but not for click (just for mousedown/up, maybe others),
|
| // but we will match the standard DOM.
|
| @@ -73,7 +73,7 @@ public:
|
| unsigned short buttons() const { return m_buttons; }
|
| bool buttonDown() const { return m_button != -1; }
|
| EventTarget* relatedTarget() const { return m_relatedTarget.get(); }
|
| - void setRelatedTarget(PassRefPtrWillBeRawPtr<EventTarget> relatedTarget) { m_relatedTarget = relatedTarget; }
|
| + void setRelatedTarget(RawPtr<EventTarget> relatedTarget) { m_relatedTarget = relatedTarget; }
|
| PlatformMouseEvent::SyntheticEventType syntheticEventType() const { return m_syntheticEventType; }
|
|
|
| Node* toElement() const;
|
| @@ -88,7 +88,7 @@ public:
|
| bool isMouseEvent() const override;
|
| int which() const final;
|
|
|
| - PassRefPtrWillBeRawPtr<EventDispatchMediator> createMediator() override;
|
| + RawPtr<EventDispatchMediator> createMediator() override;
|
|
|
| enum class Buttons : unsigned {
|
| None = 0,
|
| @@ -100,11 +100,11 @@ public:
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| protected:
|
| - MouseEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView>,
|
| + MouseEvent(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,
|
| PlatformMouseEvent::SyntheticEventType);
|
|
|
| @@ -116,23 +116,23 @@ protected:
|
|
|
| private:
|
| friend class MouseEventDispatchMediator;
|
| - void initMouseEventInternal(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView>,
|
| + void initMouseEventInternal(const AtomicString& type, bool canBubble, bool cancelable, RawPtr<AbstractView>,
|
| int detail, int screenX, int screenY, int clientX, int clientY,
|
| PlatformEvent::Modifiers,
|
| - short button, PassRefPtrWillBeRawPtr<EventTarget> relatedTarget, InputDeviceCapabilities* sourceCapabilities, unsigned short buttons = 0);
|
| + short button, RawPtr<EventTarget> relatedTarget, InputDeviceCapabilities* sourceCapabilities, unsigned short buttons = 0);
|
|
|
| short m_button;
|
| unsigned short m_buttons;
|
| - RefPtrWillBeMember<EventTarget> m_relatedTarget;
|
| + Member<EventTarget> m_relatedTarget;
|
| PlatformMouseEvent::SyntheticEventType m_syntheticEventType;
|
| };
|
|
|
| class MouseEventDispatchMediator final : public EventDispatchMediator {
|
| public:
|
| - static PassRefPtrWillBeRawPtr<MouseEventDispatchMediator> create(PassRefPtrWillBeRawPtr<MouseEvent>);
|
| + static RawPtr<MouseEventDispatchMediator> create(RawPtr<MouseEvent>);
|
|
|
| private:
|
| - explicit MouseEventDispatchMediator(PassRefPtrWillBeRawPtr<MouseEvent>);
|
| + explicit MouseEventDispatchMediator(RawPtr<MouseEvent>);
|
| MouseEvent& event() const;
|
|
|
| bool dispatchEvent(EventDispatcher&) const override;
|
|
|