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

Unified Diff: services/video_capture/public/interfaces/video_capture_device_proxy_traits.h

Issue 2395163002: VideoCapture: migrate VideoCapture renderer-->host messages to mojo, part 2 (Closed)
Patch Set: rockot@s comments on renaming and return types 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
Index: services/video_capture/public/interfaces/video_capture_device_proxy_traits.h
diff --git a/services/video_capture/public/interfaces/video_capture_device_proxy_traits.h b/services/video_capture/public/interfaces/video_capture_device_proxy_traits.h
new file mode 100644
index 0000000000000000000000000000000000000000..21382266ac0ca99641f67bbc42f5afefdf8ffaf9
--- /dev/null
+++ b/services/video_capture/public/interfaces/video_capture_device_proxy_traits.h
@@ -0,0 +1,36 @@
+// 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.
+
+#ifndef SERVICES_VIDEO_CAPTURE_PUBLIC_INTERFACES_VIDEO_CAPTURE_DEVICE_PROXY_TYPEMAP_H_
+#define SERVICES_VIDEO_CAPTURE_PUBLIC_INTERFACES_VIDEO_CAPTURE_DEVICE_PROXY_TYPEMAP_H_
+
+#include "media/base/video_capture_types.h"
+#include "mojo/common/common_custom_types_struct_traits.h"
+#include "services/video_capture/public/interfaces/video_capture_device_proxy.mojom.h"
+
+namespace mojo {
+
+template <>
+struct EnumTraits<video_capture::mojom::ResolutionChangePolicy,
+ media::ResolutionChangePolicy> {
+ static video_capture::mojom::ResolutionChangePolicy ToMojom(
+ media::ResolutionChangePolicy policy);
+
+ static bool FromMojom(video_capture::mojom::ResolutionChangePolicy input,
+ media::ResolutionChangePolicy* out);
+};
+
+template <>
+struct EnumTraits<video_capture::mojom::PowerLineFrequency,
+ media::PowerLineFrequency> {
+ static video_capture::mojom::PowerLineFrequency ToMojom(
+ media::PowerLineFrequency frequency);
+
+ static bool FromMojom(video_capture::mojom::PowerLineFrequency input,
+ media::PowerLineFrequency* out);
+};
+
+}
+
+#endif // SERVICES_VIDEO_CAPTURE_PUBLIC_INTERFACES_VIDEO_CAPTURE_DEVICE_PROXY_TYPEMAP_H_

Powered by Google App Engine
This is Rietveld 408576698