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

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: Fix layout tests, minor cleanup. 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
« no previous file with comments | « Source/modules/vibration/VibrationClient.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/Platform.h
diff --git a/public/platform/Platform.h b/public/platform/Platform.h
index b845c56b2d7406db6cb74f3368a9a7b1770856a7..a0d11c2b2327423799841ececf9a6f4d982e848c 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -378,6 +378,16 @@ public:
virtual void callOnMainThread(void (*func)(void*), void* context) { }
+ // Vibration -----------------------------------------------------------
+
+ // Starts a vibration for the given duration in milliseconds. If there is currently an active
+ // vibration it will be cancelled before the new one is started.
+ virtual void vibrate(unsigned time) { }
abarth-chromium 2013/06/13 20:13:20 time -> durationMS ?
+
+ // Cancels the current vibration, if there is one.
+ virtual void cancelVibration() { }
+
+
// Testing -------------------------------------------------------------
#define HAVE_WEBUNITTESTSUPPORT 1
« no previous file with comments | « Source/modules/vibration/VibrationClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698