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

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: Explicitly permit including WebVibration from content/browser/ 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/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index 3e4e81f5da2e5af91b3b21df8e59230261adbaa1..676a6173d9c9ef6a298279fb5e59ad086736c64a 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -1699,6 +1699,17 @@ IPC_SYNC_MESSAGE_CONTROL4_2(ViewHostMsg_OpenChannelToPlugin,
IPC::ChannelHandle /* channel_handle */,
webkit::WebPluginInfo /* info */)
+#if defined(OS_ANDROID)
jam 2013/07/12 00:12:04 there's one OS_ANDROID section below for android-s
Michael van Ouwerkerk 2013/07/12 10:49:14 Done.
+// Sent by the renderer to the browser to start a vibration with the given
+// duration.
+IPC_MESSAGE_CONTROL1(ViewHostMsg_Vibrate,
+ int64 /* milliseconds */)
+
+// Sent by the renderer to the browser to cancel the currently running
+// vibration, if there is one.
+IPC_MESSAGE_CONTROL0(ViewHostMsg_CancelVibration)
+#endif
+
#if defined(OS_WIN)
IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowCreated,
gfx::NativeViewId /* dummy_activation_window */)

Powered by Google App Engine
This is Rietveld 408576698