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

Unified Diff: content/public/common/media_stream_request.cc

Issue 2123863004: ScreenCapture for Android phase1, part II (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: UI tweaking and rebase Created 4 years, 4 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/public/common/media_stream_request.cc
diff --git a/content/public/common/media_stream_request.cc b/content/public/common/media_stream_request.cc
index d1dd847e264962808505faff909dc488e7b7aed4..adef43281d7b2cdd57705e57bffd299935ccc913 100644
--- a/content/public/common/media_stream_request.cc
+++ b/content/public/common/media_stream_request.cc
@@ -11,14 +11,21 @@ namespace content {
bool IsAudioInputMediaType(MediaStreamType type) {
return (type == MEDIA_DEVICE_AUDIO_CAPTURE ||
- type == content::MEDIA_TAB_AUDIO_CAPTURE ||
- type == content::MEDIA_DESKTOP_AUDIO_CAPTURE);
+ type == MEDIA_TAB_AUDIO_CAPTURE ||
+ type == MEDIA_DESKTOP_AUDIO_CAPTURE);
}
bool IsVideoMediaType(MediaStreamType type) {
return (type == MEDIA_DEVICE_VIDEO_CAPTURE ||
- type == content::MEDIA_TAB_VIDEO_CAPTURE ||
- type == content::MEDIA_DESKTOP_VIDEO_CAPTURE);
+ type == MEDIA_TAB_VIDEO_CAPTURE ||
+ type == MEDIA_DESKTOP_VIDEO_CAPTURE);
+}
+
+bool IsScreenCaptureMediaType(MediaStreamType type) {
+ return (type == MEDIA_TAB_AUDIO_CAPTURE ||
+ type == MEDIA_TAB_VIDEO_CAPTURE ||
+ type == MEDIA_DESKTOP_AUDIO_CAPTURE ||
+ type == MEDIA_DESKTOP_VIDEO_CAPTURE);
}
MediaStreamDevice::MediaStreamDevice()

Powered by Google App Engine
This is Rietveld 408576698