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

Unified Diff: third_party/WebKit/Source/core/events/FocusEvent.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/FocusEvent.h
diff --git a/third_party/WebKit/Source/core/events/FocusEvent.h b/third_party/WebKit/Source/core/events/FocusEvent.h
index f85bd94547f849a06acca9abc01567f52eeb147f..34ea0361b6a6f3126ae431c163ac38e7faaec0f1 100644
--- a/third_party/WebKit/Source/core/events/FocusEvent.h
+++ b/third_party/WebKit/Source/core/events/FocusEvent.h
@@ -35,19 +35,19 @@ namespace blink {
class FocusEvent final : public UIEvent {
DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtrWillBeRawPtr<FocusEvent> create()
+ static RawPtr<FocusEvent> create()
{
- return adoptRefWillBeNoop(new FocusEvent);
+ return (new FocusEvent);
}
- static PassRefPtrWillBeRawPtr<FocusEvent> create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView> view, int detail, EventTarget* relatedTarget, InputDeviceCapabilities* sourceCapabilities)
+ static RawPtr<FocusEvent> create(const AtomicString& type, bool canBubble, bool cancelable, RawPtr<AbstractView> view, int detail, EventTarget* relatedTarget, InputDeviceCapabilities* sourceCapabilities)
{
- return adoptRefWillBeNoop(new FocusEvent(type, canBubble, cancelable, view, detail, relatedTarget, sourceCapabilities));
+ return (new FocusEvent(type, canBubble, cancelable, view, detail, relatedTarget, sourceCapabilities));
}
- static PassRefPtrWillBeRawPtr<FocusEvent> create(const AtomicString& type, const FocusEventInit& initializer)
+ static RawPtr<FocusEvent> create(const AtomicString& type, const FocusEventInit& initializer)
{
- return adoptRefWillBeNoop(new FocusEvent(type, initializer));
+ return (new FocusEvent(type, initializer));
}
EventTarget* relatedTarget() const { return m_relatedTarget.get(); }
@@ -56,25 +56,25 @@ public:
const AtomicString& interfaceName() const override;
bool isFocusEvent() const override;
- PassRefPtrWillBeRawPtr<EventDispatchMediator> createMediator() override;
+ RawPtr<EventDispatchMediator> createMediator() override;
DECLARE_VIRTUAL_TRACE();
private:
FocusEvent();
- FocusEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtrWillBeRawPtr<AbstractView>, int, EventTarget*, InputDeviceCapabilities*);
+ FocusEvent(const AtomicString& type, bool canBubble, bool cancelable, RawPtr<AbstractView>, int, EventTarget*, InputDeviceCapabilities*);
FocusEvent(const AtomicString& type, const FocusEventInit&);
- RefPtrWillBeMember<EventTarget> m_relatedTarget;
+ Member<EventTarget> m_relatedTarget;
};
DEFINE_EVENT_TYPE_CASTS(FocusEvent);
class FocusEventDispatchMediator final : public EventDispatchMediator {
public:
- static PassRefPtrWillBeRawPtr<FocusEventDispatchMediator> create(PassRefPtrWillBeRawPtr<FocusEvent>);
+ static RawPtr<FocusEventDispatchMediator> create(RawPtr<FocusEvent>);
private:
- explicit FocusEventDispatchMediator(PassRefPtrWillBeRawPtr<FocusEvent>);
+ explicit FocusEventDispatchMediator(RawPtr<FocusEvent>);
FocusEvent& event() const { return static_cast<FocusEvent&>(EventDispatchMediator::event()); }
bool dispatchEvent(EventDispatcher&) const override;
};

Powered by Google App Engine
This is Rietveld 408576698