OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/tab_web_contents_delegate_android.h" | 5 #include "chrome/browser/android/tab_web_contents_delegate_android.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #include "jni/TabWebContentsDelegateAndroid_jni.h" | 43 #include "jni/TabWebContentsDelegateAndroid_jni.h" |
44 #include "third_party/WebKit/public/web/WebWindowFeatures.h" | 44 #include "third_party/WebKit/public/web/WebWindowFeatures.h" |
45 #include "ui/gfx/geometry/rect.h" | 45 #include "ui/gfx/geometry/rect.h" |
46 #include "ui/gfx/geometry/rect_f.h" | 46 #include "ui/gfx/geometry/rect_f.h" |
47 | 47 |
48 #if defined(ENABLE_PLUGINS) | 48 #if defined(ENABLE_PLUGINS) |
49 #include "chrome/browser/pepper_broker_infobar_delegate.h" | 49 #include "chrome/browser/pepper_broker_infobar_delegate.h" |
50 #endif | 50 #endif |
51 | 51 |
52 using base::android::AttachCurrentThread; | 52 using base::android::AttachCurrentThread; |
| 53 using base::android::JavaParamRef; |
53 using base::android::ScopedJavaLocalRef; | 54 using base::android::ScopedJavaLocalRef; |
54 using content::BluetoothChooser; | 55 using content::BluetoothChooser; |
55 using content::FileChooserParams; | 56 using content::FileChooserParams; |
56 using content::WebContents; | 57 using content::WebContents; |
57 | 58 |
58 namespace { | 59 namespace { |
59 | 60 |
60 ScopedJavaLocalRef<jobject> CreateJavaRectF( | 61 ScopedJavaLocalRef<jobject> CreateJavaRectF( |
61 JNIEnv* env, | 62 JNIEnv* env, |
62 const gfx::RectF& rect) { | 63 const gfx::RectF& rect) { |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 jboolean IsCapturingVideo(JNIEnv* env, | 477 jboolean IsCapturingVideo(JNIEnv* env, |
477 const JavaParamRef<jclass>& clazz, | 478 const JavaParamRef<jclass>& clazz, |
478 const JavaParamRef<jobject>& java_web_contents) { | 479 const JavaParamRef<jobject>& java_web_contents) { |
479 content::WebContents* web_contents = | 480 content::WebContents* web_contents = |
480 content::WebContents::FromJavaWebContents(java_web_contents); | 481 content::WebContents::FromJavaWebContents(java_web_contents); |
481 scoped_refptr<MediaStreamCaptureIndicator> indicator = | 482 scoped_refptr<MediaStreamCaptureIndicator> indicator = |
482 MediaCaptureDevicesDispatcher::GetInstance()-> | 483 MediaCaptureDevicesDispatcher::GetInstance()-> |
483 GetMediaStreamCaptureIndicator(); | 484 GetMediaStreamCaptureIndicator(); |
484 return indicator->IsCapturingVideo(web_contents); | 485 return indicator->IsCapturingVideo(web_contents); |
485 } | 486 } |
OLD | NEW |