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

Unified Diff: public/platform/Platform.h

Issue 148353002: Add support of Pause/Resume for polling thread Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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: public/platform/Platform.h
diff --git a/public/platform/Platform.h b/public/platform/Platform.h
index c410735fb80fabb7186f53a7c9136a54ae77bbfb..3369872ef732dda83c6e90006b13fca7eb590b87 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -213,6 +213,15 @@ public:
virtual WebIDBFactory* idbFactory() { return 0; }
+ // Resume Gamepad polling ----------------------------------------------
+
+ virtual void resumeGamepads() { }
+
+
+ // Pause Gamepad polling ------------------------------------------------
+
+ virtual void pauseGamepads() { }
+
// Gamepad -------------------------------------------------------------
virtual void sampleGamepads(WebGamepads& into) { into.length = 0; }
« Source/modules/gamepad/NavigatorGamepad.cpp ('K') | « Source/modules/gamepad/NavigatorGamepad.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698