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

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: rebase to #407492(Jul 25) Created 4 years, 5 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..2153e7c498b5a848feeffef871c5bcfba8033537 100644
--- a/content/public/common/media_stream_request.cc
+++ b/content/public/common/media_stream_request.cc
@@ -21,6 +21,13 @@ bool IsVideoMediaType(MediaStreamType type) {
type == content::MEDIA_DESKTOP_VIDEO_CAPTURE);
}
+bool IsContentCaptureMediaType(MediaStreamType type) {
+ return (type == content::MEDIA_TAB_AUDIO_CAPTURE ||
+ type == content::MEDIA_TAB_VIDEO_CAPTURE ||
+ type == content::MEDIA_DESKTOP_AUDIO_CAPTURE ||
+ type == content::MEDIA_DESKTOP_VIDEO_CAPTURE);
Sergey Ulanov 2016/08/01 18:20:36 don't need to specify namespace, because this code
braveyao 2016/08/03 00:23:47 Done.
+}
+
MediaStreamDevice::MediaStreamDevice()
: type(MEDIA_NO_SERVICE),
video_facing(MEDIA_VIDEO_FACING_NONE) {

Powered by Google App Engine
This is Rietveld 408576698