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

Unified Diff: content/common/media/midi_messages.h

Issue 16025005: Web MIDI API back-end (work-in-progress) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years, 7 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/media/midi_messages.h
diff --git a/content/common/media/midi_messages.h b/content/common/media/midi_messages.h
new file mode 100644
index 0000000000000000000000000000000000000000..c9a9bfcb5b6259cd73952e1a13253da8b5f8c1dd
--- /dev/null
+++ b/content/common/media/midi_messages.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// IPC messages for access to MIDI hardware.
+// Multiply-included message file, hence no include guard.
+
+#include "base/basictypes.h"
+#include "content/common/content_export.h"
+#include "ipc/ipc_message_macros.h"
+
+#undef IPC_MESSAGE_EXPORT
+#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
+#define IPC_MESSAGE_START MIDIMsgStart
+
+// Renderer request to browser for access to MIDI services.
+IPC_MESSAGE_CONTROL0(MIDIHostMsg_RequestAccess);
+
+// Messages sent from the browser to the renderer.
+
+IPC_MESSAGE_CONTROL2(MIDIMsg_AccessApproved,
+ int /* access */,
+ bool /* success */)
+
+IPC_MESSAGE_CONTROL3(MIDIMsg_DataReceived,
+ int /* port */,
+ std::vector<uint8> /* data */,
+ double /* timestamp */)

Powered by Google App Engine
This is Rietveld 408576698