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

Unified Diff: media/video/capture/video_capture_device_info.h

Issue 616833004: chrome://media-internals: update MediaInternals when devices capabilities are enumerated. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: perkj@s comments Created 6 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: media/video/capture/video_capture_device_info.h
diff --git a/media/video/capture/video_capture_device_info.h b/media/video/capture/video_capture_device_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..5186a347334f17d3dfcfc61ea34c8a5f068d00a3
--- /dev/null
+++ b/media/video/capture/video_capture_device_info.h
@@ -0,0 +1,28 @@
+// Copyright 2014 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 MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_INFO_H_
+#define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_INFO_H_
+
+#include "media/video/capture/video_capture_device.h"
+#include "media/video/capture/video_capture_types.h"
+
+namespace media {
+
+// A convenience wrap of a devices' name and associated supported formats.
wolenetz 2014/10/09 20:51:43 nit: s/devices'/device's/
mcasas 2014/10/10 11:30:42 Done.
+struct MEDIA_EXPORT VideoCaptureDeviceInfo {
+ VideoCaptureDeviceInfo();
+ VideoCaptureDeviceInfo(const VideoCaptureDevice::Name& name,
+ const VideoCaptureFormats& supported_formats);
+ ~VideoCaptureDeviceInfo();
+
+ VideoCaptureDevice::Name name;
+ VideoCaptureFormats supported_formats;
+};
+
+typedef std::vector<VideoCaptureDeviceInfo> VideoCaptureDeviceInfos;
+
+} // namespace media
+
+#endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_INFO_H_

Powered by Google App Engine
This is Rietveld 408576698