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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/process.h" 8 #include "base/process.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 // necessary, and will return a handle to the channel on success. 1688 // necessary, and will return a handle to the channel on success.
1689 // On error an empty string is returned. 1689 // On error an empty string is returned.
1690 IPC_SYNC_MESSAGE_CONTROL4_2(ViewHostMsg_OpenChannelToPlugin, 1690 IPC_SYNC_MESSAGE_CONTROL4_2(ViewHostMsg_OpenChannelToPlugin,
1691 int /* routing_id */, 1691 int /* routing_id */,
1692 GURL /* url */, 1692 GURL /* url */,
1693 GURL /* page_url */, 1693 GURL /* page_url */,
1694 std::string /* mime_type */, 1694 std::string /* mime_type */,
1695 IPC::ChannelHandle /* channel_handle */, 1695 IPC::ChannelHandle /* channel_handle */,
1696 webkit::WebPluginInfo /* info */) 1696 webkit::WebPluginInfo /* info */)
1697 1697
1698 // 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
1699 // duration.
1700 IPC_MESSAGE_CONTROL1(ViewHostMsg_Vibrate,
1701 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
1702
1703 // Sent by the renderer to the browser to cancel the currently running
1704 // vibration, if there is one.
1705 IPC_MESSAGE_CONTROL0(ViewHostMsg_CancelVibration)
1706
1698 #if defined(OS_WIN) 1707 #if defined(OS_WIN)
1699 IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowCreated, 1708 IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowCreated,
1700 gfx::NativeViewId /* dummy_activation_window */) 1709 gfx::NativeViewId /* dummy_activation_window */)
1701 1710
1702 IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowDestroyed, 1711 IPC_MESSAGE_ROUTED1(ViewHostMsg_WindowlessPluginDummyWindowDestroyed,
1703 gfx::NativeViewId /* dummy_activation_window */) 1712 gfx::NativeViewId /* dummy_activation_window */)
1704 #endif 1713 #endif
1705 1714
1706 // Get the list of proxies to use for |url|, as a semicolon delimited list 1715 // Get the list of proxies to use for |url|, as a semicolon delimited list
1707 // of "<TYPE> <HOST>:<PORT>" | "DIRECT". 1716 // of "<TYPE> <HOST>:<PORT>" | "DIRECT".
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
2321 // Since the browser keeps handles to the allocated transport DIBs, this 2330 // Since the browser keeps handles to the allocated transport DIBs, this
2322 // message is sent to tell the browser that it may release them when the 2331 // message is sent to tell the browser that it may release them when the
2323 // renderer is finished with them. 2332 // renderer is finished with them.
2324 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, 2333 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB,
2325 TransportDIB::Id /* DIB id */) 2334 TransportDIB::Id /* DIB id */)
2326 #endif 2335 #endif
2327 2336
2328 // Adding a new message? Stick to the sort order above: first platform 2337 // Adding a new message? Stick to the sort order above: first platform
2329 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2338 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2330 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2339 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698