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

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: Rebase. 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 9d755dc254422c6c031cbbbe1441b44eb6702750..095ee6ecd509cdacff85df0935d64111a939a31f 100644
--- a/content/renderer/renderer_webkitplatformsupport_impl.h
+++ b/content/renderer/renderer_webkitplatformsupport_impl.h
@@ -142,6 +142,11 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
WebKit::WebDeviceMotionListener* listener) OVERRIDE;
virtual WebKit::WebCrypto* crypto() 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