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

Unified Diff: content/renderer/renderer_webkitplatformsupport_impl.h

Issue 16781002: Vibration API: plumbing from Blink to Java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move vibration_message_filter.(h|cc) to content/browser/android/. Created 7 years, 5 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: content/renderer/renderer_webkitplatformsupport_impl.h
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.h b/content/renderer/renderer_webkitplatformsupport_impl.h
index 7f096e5d20bbc1bc499e88bcd15d0dd4d1571770..f256df917258c38d1e321c5a1ca1efa9f7dd9614 100644
--- a/content/renderer/renderer_webkitplatformsupport_impl.h
+++ b/content/renderer/renderer_webkitplatformsupport_impl.h
@@ -139,6 +139,11 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
virtual void setDeviceMotionListener(
WebKit::WebDeviceMotionListener* listener) OVERRIDE;
+#if defined(OS_ANDROID)
+ virtual void vibrate(unsigned int milliseconds);
+ virtual void cancelVibration();
+#endif // defined(OS_ANDROID)
+
// Disables the WebSandboxSupport implementation for testing.
// Tests that do not set up a full sandbox environment should call
// SetSandboxEnabledForTesting(false) _before_ creating any instances

Powered by Google App Engine
This is Rietveld 408576698