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

Unified Diff: public/platform/Platform.h

Issue 15724023: Vibration API: use runtime flag, change from client to platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 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 acff9862dc1663b4f3cc6a0b73606bc332a52457..2918a6d5fcea2a4cd36ae14bf12c88cce72a84e3 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -382,6 +382,9 @@ public:
// Checks the partition/volume where fileName resides.
virtual long long availableDiskSpaceInBytes(const WebString& fileName) { return 0; }
+ // Vibration -----------------------------------------------------------
Peter Beverloo 2013/06/11 10:19:10 nit: blank line after this one.
Michael van Ouwerkerk 2013/06/11 13:26:51 Done.
+ virtual void cancelVibration() { }
+ virtual void vibrate(unsigned time) { }
Peter Beverloo 2013/06/11 10:19:10 I'd list "vibrate" before "cancelVibration", becau
Michael van Ouwerkerk 2013/06/11 13:26:51 Done.
// Testing -------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698