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

Side by Side Diff: chrome/browser/android/chrome_web_contents_delegate_android.cc

Issue 972973002: Revert of Propagate audible state from player to the containing tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/android/chrome_web_contents_delegate_android.h" 5 #include "chrome/browser/android/chrome_web_contents_delegate_android.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 jclass clazz, 364 jclass clazz,
365 jobject java_web_contents) { 365 jobject java_web_contents) {
366 content::WebContents* web_contents = 366 content::WebContents* web_contents =
367 content::WebContents::FromJavaWebContents(java_web_contents); 367 content::WebContents::FromJavaWebContents(java_web_contents);
368 scoped_refptr<MediaStreamCaptureIndicator> indicator = 368 scoped_refptr<MediaStreamCaptureIndicator> indicator =
369 MediaCaptureDevicesDispatcher::GetInstance()-> 369 MediaCaptureDevicesDispatcher::GetInstance()->
370 GetMediaStreamCaptureIndicator(); 370 GetMediaStreamCaptureIndicator();
371 return indicator->IsCapturingVideo(web_contents); 371 return indicator->IsCapturingVideo(web_contents);
372 } 372 }
373 373
374 jboolean HasAudibleAudio(JNIEnv* env,
375 jclass clazz,
376 jobject java_web_contents) {
377 content::WebContents* web_contents =
378 content::WebContents::FromJavaWebContents(java_web_contents);
379 return web_contents->WasRecentlyAudible();
380 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698