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

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

Issue 2813343002: [Mojo Video Capture] Switch to using Mojo structs in media/capture/mojo (Closed)
Patch Set: Removed extraneous AtLeast Created 3 years, 8 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/capture_settings_traits.h
diff --git a/services/video_capture/public/interfaces/capture_settings_traits.h b/services/video_capture/public/interfaces/capture_settings_traits.h
deleted file mode 100644
index 1074f71b31fe5cf778ae60d6fc455d9bec5c296d..0000000000000000000000000000000000000000
--- a/services/video_capture/public/interfaces/capture_settings_traits.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// 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_CAPTURE_SETTINGS_TRAITS_H_
-#define SERVICES_VIDEO_CAPTURE_PUBLIC_INTERFACES_CAPTURE_SETTINGS_TRAITS_H_
-
-#include "media/capture/video_capture_types.h"
-#include "mojo/common/common_custom_types_struct_traits.h"
-#include "services/video_capture/public/interfaces/device.mojom.h"
-
-namespace mojo {
-
-template <>
-struct StructTraits<video_capture::mojom::I420CaptureFormatDataView,
- video_capture::I420CaptureFormat> {
- static const gfx::Size& frame_size(
- const video_capture::I420CaptureFormat& input) {
- return input.frame_size;
- }
-
- static float frame_rate(const video_capture::I420CaptureFormat& input) {
- return input.frame_rate;
- }
-
- static bool Read(video_capture::mojom::I420CaptureFormatDataView data,
- video_capture::I420CaptureFormat* out);
-};
-
-template <>
-struct StructTraits<video_capture::mojom::CaptureSettingsDataView,
- video_capture::CaptureSettings> {
- static const video_capture::I420CaptureFormat& format(
- const video_capture::CaptureSettings& input) {
- return input.format;
- }
-
- static media::ResolutionChangePolicy resolution_change_policy(
- const video_capture::CaptureSettings& input) {
- return input.resolution_change_policy;
- }
-
- static media::PowerLineFrequency power_line_frequency(
- const video_capture::CaptureSettings& input) {
- return input.power_line_frequency;
- }
-
- static bool Read(video_capture::mojom::CaptureSettingsDataView data,
- video_capture::CaptureSettings* out);
-};
-}
-
-#endif // SERVICES_VIDEO_CAPTURE_PUBLIC_INTERFACES_CAPTURE_SETTINGS_TRAITS_H_

Powered by Google App Engine
This is Rietveld 408576698