| Index: chrome/browser/android/tab_web_contents_delegate_android.cc
|
| diff --git a/chrome/browser/android/tab_web_contents_delegate_android.cc b/chrome/browser/android/tab_web_contents_delegate_android.cc
|
| index ba729f83fcf3d0907b3ebbeb6f45f2d3b7e9a5e6..3da3eb0366fe0bffa2e4dfc4923bcfa2fef2b4f0 100644
|
| --- a/chrome/browser/android/tab_web_contents_delegate_android.cc
|
| +++ b/chrome/browser/android/tab_web_contents_delegate_android.cc
|
| @@ -449,8 +449,8 @@ jboolean IsCapturingAudio(JNIEnv* env,
|
| content::WebContents* web_contents =
|
| content::WebContents::FromJavaWebContents(java_web_contents);
|
| scoped_refptr<MediaStreamCaptureIndicator> indicator =
|
| - MediaCaptureDevicesDispatcher::GetInstance()->
|
| - GetMediaStreamCaptureIndicator();
|
| + MediaCaptureDevicesDispatcher::GetInstance()
|
| + ->GetMediaStreamCaptureIndicator();
|
| return indicator->IsCapturingAudio(web_contents);
|
| }
|
|
|
| @@ -460,7 +460,29 @@ jboolean IsCapturingVideo(JNIEnv* env,
|
| content::WebContents* web_contents =
|
| content::WebContents::FromJavaWebContents(java_web_contents);
|
| scoped_refptr<MediaStreamCaptureIndicator> indicator =
|
| - MediaCaptureDevicesDispatcher::GetInstance()->
|
| - GetMediaStreamCaptureIndicator();
|
| + MediaCaptureDevicesDispatcher::GetInstance()
|
| + ->GetMediaStreamCaptureIndicator();
|
| return indicator->IsCapturingVideo(web_contents);
|
| }
|
| +
|
| +jboolean IsCapturingScreen(JNIEnv* env,
|
| + const JavaParamRef<jclass>& clazz,
|
| + const JavaParamRef<jobject>& java_web_contents) {
|
| + content::WebContents* web_contents =
|
| + content::WebContents::FromJavaWebContents(java_web_contents);
|
| + scoped_refptr<MediaStreamCaptureIndicator> indicator =
|
| + MediaCaptureDevicesDispatcher::GetInstance()
|
| + ->GetMediaStreamCaptureIndicator();
|
| + return indicator->IsBeingMirrored(web_contents);
|
| +}
|
| +
|
| +void NotifyStopped(JNIEnv* env,
|
| + const JavaParamRef<jclass>& clazz,
|
| + const JavaParamRef<jobject>& java_web_contents) {
|
| + content::WebContents* web_contents =
|
| + content::WebContents::FromJavaWebContents(java_web_contents);
|
| + scoped_refptr<MediaStreamCaptureIndicator> indicator =
|
| + MediaCaptureDevicesDispatcher::GetInstance()
|
| + ->GetMediaStreamCaptureIndicator();
|
| + indicator->NotifyStopped(web_contents);
|
| +}
|
|
|