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

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

Issue 2380793002: Migrate MediaDevices.enumerateDevices to Mojo (Closed)
Patch Set: rebase Created 4 years, 2 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
« no previous file with comments | « content/common/media/media_devices.typemap ('k') | content/common/media/media_devices_param_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/media/media_devices_param_traits.h
diff --git a/content/common/media/media_devices_param_traits.h b/content/common/media/media_devices_param_traits.h
new file mode 100644
index 0000000000000000000000000000000000000000..ed0830c108f8f092abfac4fd78cabdfcec8de590
--- /dev/null
+++ b/content/common/media/media_devices_param_traits.h
@@ -0,0 +1,21 @@
+// Copyright 2016 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.
+
+// Multiply-included IPC traits file, hence no include guard.
+
+#include "content/common/content_export.h"
+#include "content/common/media/media_devices.h"
+#include "ipc/ipc_message_macros.h"
+
+#undef IPC_MESSAGE_EXPORT
+#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
+
+IPC_ENUM_TRAITS_MAX_VALUE(content::MediaDeviceType,
+ content::NUM_MEDIA_DEVICE_TYPES - 1)
+
+IPC_STRUCT_TRAITS_BEGIN(content::MediaDeviceInfo)
+ IPC_STRUCT_TRAITS_MEMBER(device_id)
+ IPC_STRUCT_TRAITS_MEMBER(label)
+ IPC_STRUCT_TRAITS_MEMBER(group_id)
+IPC_STRUCT_TRAITS_END()
« no previous file with comments | « content/common/media/media_devices.typemap ('k') | content/common/media/media_devices_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698