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

Side by Side Diff: content/common/media/midi_messages.h

Issue 185863003: [Media] Add user gesture reporting for API calls to midi and media streams. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test merge Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « content/common/media/media_stream_messages.h ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 access to MIDI hardware. 5 // IPC messages for access to MIDI hardware.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
11 #include "media/midi/midi_port_info.h" 11 #include "media/midi/midi_port_info.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 #undef IPC_MESSAGE_EXPORT 14 #undef IPC_MESSAGE_EXPORT
15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
16 #define IPC_MESSAGE_START MidiMsgStart 16 #define IPC_MESSAGE_START MidiMsgStart
17 17
18 IPC_STRUCT_TRAITS_BEGIN(media::MidiPortInfo) 18 IPC_STRUCT_TRAITS_BEGIN(media::MidiPortInfo)
19 IPC_STRUCT_TRAITS_MEMBER(id) 19 IPC_STRUCT_TRAITS_MEMBER(id)
20 IPC_STRUCT_TRAITS_MEMBER(manufacturer) 20 IPC_STRUCT_TRAITS_MEMBER(manufacturer)
21 IPC_STRUCT_TRAITS_MEMBER(name) 21 IPC_STRUCT_TRAITS_MEMBER(name)
22 IPC_STRUCT_TRAITS_MEMBER(version) 22 IPC_STRUCT_TRAITS_MEMBER(version)
23 IPC_STRUCT_TRAITS_END() 23 IPC_STRUCT_TRAITS_END()
24 24
25 // Messages for IPC between MidiDispatcher and MidiDispatcherHost. 25 // Messages for IPC between MidiDispatcher and MidiDispatcherHost.
26 26
27 // Renderer request to browser for using system exclusive messages. 27 // Renderer request to browser for using system exclusive messages.
28 IPC_MESSAGE_CONTROL3(MidiHostMsg_RequestSysExPermission, 28 IPC_MESSAGE_CONTROL4(MidiHostMsg_RequestSysExPermission,
29 int /* routing id */, 29 int /* routing id */,
30 int /* client id */, 30 int /* client id */,
31 GURL /* origin */) 31 GURL /* origin */,
32 bool /* user_gesture */)
32 33
33 // Renderer request to browser for canceling a previous permission request. 34 // Renderer request to browser for canceling a previous permission request.
34 IPC_MESSAGE_CONTROL3(MidiHostMsg_CancelSysExPermissionRequest, 35 IPC_MESSAGE_CONTROL3(MidiHostMsg_CancelSysExPermissionRequest,
35 int /* render_view_id */, 36 int /* render_view_id */,
36 int /* bridge_id */, 37 int /* bridge_id */,
37 GURL /* GURL of the frame */) 38 GURL /* GURL of the frame */)
38 39
39 // Messages sent from the browser to the renderer. 40 // Messages sent from the browser to the renderer.
40 41
41 IPC_MESSAGE_ROUTED2(MidiMsg_SysExPermissionApproved, 42 IPC_MESSAGE_ROUTED2(MidiMsg_SysExPermissionApproved,
(...skipping 19 matching lines...) Expand all
61 media::MidiPortInfoList /* input ports */, 62 media::MidiPortInfoList /* input ports */,
62 media::MidiPortInfoList /* output ports */) 63 media::MidiPortInfoList /* output ports */)
63 64
64 IPC_MESSAGE_CONTROL3(MidiMsg_DataReceived, 65 IPC_MESSAGE_CONTROL3(MidiMsg_DataReceived,
65 uint32 /* port */, 66 uint32 /* port */,
66 std::vector<uint8> /* data */, 67 std::vector<uint8> /* data */,
67 double /* timestamp */) 68 double /* timestamp */)
68 69
69 IPC_MESSAGE_CONTROL1(MidiMsg_AcknowledgeSentData, 70 IPC_MESSAGE_CONTROL1(MidiMsg_AcknowledgeSentData,
70 uint32 /* bytes sent */) 71 uint32 /* bytes sent */)
OLDNEW
« no previous file with comments | « content/common/media/media_stream_messages.h ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698