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

Unified Diff: Source/modules/gamepad/NavigatorGamepad.cpp

Issue 216523002: Oilpan: Replace most of RefPtrs for Event objects with oilpan's transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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: Source/modules/gamepad/NavigatorGamepad.cpp
diff --git a/Source/modules/gamepad/NavigatorGamepad.cpp b/Source/modules/gamepad/NavigatorGamepad.cpp
index 4060f0c61500df08d9d6bdbcae8ce9e6740f519d..49fede39e10479d320685e6a310023a0bb20fe50 100644
--- a/Source/modules/gamepad/NavigatorGamepad.cpp
+++ b/Source/modules/gamepad/NavigatorGamepad.cpp
@@ -149,7 +149,7 @@ void NavigatorGamepad::didConnectOrDisconnectGamepad(unsigned index, const blink
m_gamepads->set(index, gamepad);
const AtomicString& eventName = connected ? EventTypeNames::gamepadconnected : EventTypeNames::gamepaddisconnected;
- RefPtr<GamepadEvent> event = GamepadEvent::create(eventName, false, true, gamepad.get());
+ RefPtrWillBeRawPtr<GamepadEvent> event = GamepadEvent::create(eventName, false, true, gamepad.get());
window()->dispatchEvent(event);
}
@@ -197,7 +197,7 @@ bool NavigatorGamepad::hasLastData()
return false;
}
-PassRefPtr<Event> NavigatorGamepad::getLastEvent()
+PassRefPtrWillBeRawPtr<Event> NavigatorGamepad::getLastEvent()
{
// This is called only when hasLastData() is true.
ASSERT_NOT_REACHED();

Powered by Google App Engine
This is Rietveld 408576698