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

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

Issue 2609863004: Pass camera facing to WebKit (Closed)
Patch Set: modify settings names Created 3 years, 11 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/media_devices.h
diff --git a/content/common/media/media_devices.h b/content/common/media/media_devices.h
index 6ac1e2c5d7e5de67e65b00002ac59b7cb7a59ed9..c5b563db495fc5372226431a2b892d34edea1d61 100644
--- a/content/common/media/media_devices.h
+++ b/content/common/media/media_devices.h
@@ -12,6 +12,7 @@
namespace media {
struct AudioDeviceDescription;
+struct VideoCaptureDeviceDescriptor;
}
namespace content {
@@ -31,9 +32,13 @@ struct CONTENT_EXPORT MediaDeviceInfo {
explicit MediaDeviceInfo(
const media::AudioDeviceDescription& device_description);
+ explicit MediaDeviceInfo(
+ const media::VideoCaptureDeviceDescriptor& descriptor);
std::string device_id;
std::string label;
std::string group_id;
+ // Format is "vid:pid". Ex. "E2A1:34D0".
+ std::string model_id;
jochen (gone - plz use gerrit) 2017/01/05 12:17:59 why not a pair of ints then?
shenghao 2017/01/06 09:43:01 We use the formatted "vid:pid" string as identifie
wuchengli 2017/01/09 08:28:00 Another reason is we'll have non-USB cameras soon.
};
using MediaDeviceInfoArray = std::vector<MediaDeviceInfo>;

Powered by Google App Engine
This is Rietveld 408576698