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

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

Issue 204063002: Oilpan: add transition types to Navigator and its supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adjust use of 'virtual' 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
« no previous file with comments | « Source/modules/gamepad/NavigatorGamepad.h ('k') | Source/modules/geolocation/NavigatorGeolocation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/gamepad/NavigatorGamepad.cpp
diff --git a/Source/modules/gamepad/NavigatorGamepad.cpp b/Source/modules/gamepad/NavigatorGamepad.cpp
index 27c1e53322ceece8349fc24a3b5d8f530ab8e7e2..fddb7d02fface76ad791cd91d9fa42200ae053ef 100644
--- a/Source/modules/gamepad/NavigatorGamepad.cpp
+++ b/Source/modules/gamepad/NavigatorGamepad.cpp
@@ -82,10 +82,10 @@ const char* NavigatorGamepad::supplementName()
NavigatorGamepad& NavigatorGamepad::from(Navigator& navigator)
{
- NavigatorGamepad* supplement = static_cast<NavigatorGamepad*>(Supplement<Navigator>::from(navigator, supplementName()));
+ NavigatorGamepad* supplement = static_cast<NavigatorGamepad*>(WillBeHeapSupplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
supplement = new NavigatorGamepad();
- provideTo(navigator, supplementName(), adoptPtr(supplement));
+ provideTo(navigator, supplementName(), adoptPtrWillBeNoop(supplement));
}
return *supplement;
}
@@ -116,4 +116,10 @@ GamepadList* NavigatorGamepad::gamepads()
return m_gamepads.get();
}
+void NavigatorGamepad::trace(Visitor* visitor)
+{
+ visitor->trace(m_gamepads);
+ visitor->trace(m_webkitGamepads);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/modules/gamepad/NavigatorGamepad.h ('k') | Source/modules/geolocation/NavigatorGeolocation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698