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

Unified Diff: third_party/WebKit/Source/core/events/PointerEventFactory.cpp

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/core/events/PointerEventFactory.cpp
diff --git a/third_party/WebKit/Source/core/events/PointerEventFactory.cpp b/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
index 04490da249950fe039c2c8180037c7427548963f..b9da846e76f78bc8847b5bdf631b2366f4596785 100644
--- a/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
+++ b/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
@@ -75,10 +75,10 @@ void PointerEventFactory::setIdTypeButtons(PointerEventInit &pointerEventInit,
pointerEventInit.setIsPrimary(isPrimary(pointerId));
}
-PassRefPtrWillBeRawPtr<PointerEvent> PointerEventFactory::create(
+RawPtr<PointerEvent> PointerEventFactory::create(
const AtomicString& mouseEventName, const PlatformMouseEvent& mouseEvent,
- PassRefPtrWillBeRawPtr<EventTarget> relatedTarget,
- PassRefPtrWillBeRawPtr<AbstractView> view)
+ RawPtr<EventTarget> relatedTarget,
+ RawPtr<AbstractView> view)
{
AtomicString pointerEventName = pointerEventNameForMouseEventName(mouseEventName);
unsigned buttons = MouseEvent::platformModifiersToButtons(mouseEvent.getModifiers());
@@ -125,7 +125,7 @@ PassRefPtrWillBeRawPtr<PointerEvent> PointerEventFactory::create(
return PointerEvent::create(pointerEventName, pointerEventInit);
}
-PassRefPtrWillBeRawPtr<PointerEvent> PointerEventFactory::create(const AtomicString& type,
+RawPtr<PointerEvent> PointerEventFactory::create(const AtomicString& type,
const PlatformTouchPoint& touchPoint, PlatformEvent::Modifiers modifiers,
const double width, const double height,
const double clientX, const double clientY)
@@ -167,7 +167,7 @@ PassRefPtrWillBeRawPtr<PointerEvent> PointerEventFactory::create(const AtomicStr
}
-PassRefPtrWillBeRawPtr<PointerEvent> PointerEventFactory::createPointerCancelEvent(const PlatformTouchPoint& touchPoint)
+RawPtr<PointerEvent> PointerEventFactory::createPointerCancelEvent(const PlatformTouchPoint& touchPoint)
{
PointerEventInit pointerEventInit;
@@ -179,8 +179,8 @@ PassRefPtrWillBeRawPtr<PointerEvent> PointerEventFactory::createPointerCancelEve
return PointerEvent::create(EventTypeNames::pointercancel, pointerEventInit);
}
-PassRefPtrWillBeRawPtr<PointerEvent> PointerEventFactory::createPointerCaptureEvent(
- PassRefPtrWillBeRawPtr<PointerEvent> pointerEvent,
+RawPtr<PointerEvent> PointerEventFactory::createPointerCaptureEvent(
+ RawPtr<PointerEvent> pointerEvent,
const AtomicString& type)
{
ASSERT(type == EventTypeNames::gotpointercapture
@@ -196,10 +196,10 @@ PassRefPtrWillBeRawPtr<PointerEvent> PointerEventFactory::createPointerCaptureEv
return PointerEvent::create(type, pointerEventInit);
}
-PassRefPtrWillBeRawPtr<PointerEvent> PointerEventFactory::createPointerTransitionEvent(
- PassRefPtrWillBeRawPtr<PointerEvent> pointerEvent,
+RawPtr<PointerEvent> PointerEventFactory::createPointerTransitionEvent(
+ RawPtr<PointerEvent> pointerEvent,
const AtomicString& type,
- PassRefPtrWillBeRawPtr<EventTarget> relatedTarget)
+ RawPtr<EventTarget> relatedTarget)
{
ASSERT(type == EventTypeNames::pointerout
|| type == EventTypeNames::pointerleave
@@ -290,7 +290,7 @@ int PointerEventFactory::addIdAndActiveButtons(const IncomingId p,
}
bool PointerEventFactory::remove(
- const PassRefPtrWillBeRawPtr<PointerEvent> pointerEvent)
+ const RawPtr<PointerEvent> pointerEvent)
{
int mappedId = pointerEvent->pointerId();
// Do not remove mouse pointer id as it should always be there

Powered by Google App Engine
This is Rietveld 408576698