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

Unified Diff: content/common/view_messages.h

Issue 16781002: Vibration API: plumbing from Blink to Java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Lazily instantiate VibrationService in VibrationMessageFilter. 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: content/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index 1a7508b10c6f559d2eec77af65b9447dc7ede0de..3273387f5db3d7713eae3303a19722b47e6df71a 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -1695,6 +1695,15 @@ IPC_SYNC_MESSAGE_CONTROL4_2(ViewHostMsg_OpenChannelToPlugin,
IPC::ChannelHandle /* channel_handle */,
webkit::WebPluginInfo /* info */)
+// Sent by the renderer to the browser to start a vibration with the given
palmer 2013/06/21 18:17:40 Should these be guarded by #if defined(OS_ANDROID)
Michael van Ouwerkerk 2013/06/24 13:46:57 This feature is not necessarily restricted to Andr
+// duration.
+IPC_MESSAGE_CONTROL1(ViewHostMsg_Vibrate,
+ unsigned int /* milliseconds */)
palmer 2013/06/21 18:17:40 I'd say int64_t here. For best results, use an ex
Michael van Ouwerkerk 2013/06/24 13:46:57 Ok, so I changed it to int32_t. I think the use of
+
+// Sent by the renderer to the browser to cancel the currently running
+// vibration, if there is one.
+IPC_MESSAGE_CONTROL0(ViewHostMsg_CancelVibration)
+
#if defined(OS_WIN)
IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowCreated,
gfx::NativeViewId /* dummy_activation_window */)

Powered by Google App Engine
This is Rietveld 408576698