Index: content/browser/android/content_view_core_impl.cc |
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc |
index e8fbdf5e6df0863622294e81684ad7c8e19bccb1..4b23fa8ea497d561b013bc7786605dd59bab0d26 100644 |
--- a/content/browser/android/content_view_core_impl.cc |
+++ b/content/browser/android/content_view_core_impl.cc |
@@ -619,6 +619,26 @@ void ContentViewCoreImpl::NotifyExternalSurface( |
static_cast<jfloat>(rect.height())); |
} |
+ScopedJavaLocalRef<jobject> ContentViewCoreImpl::GetContentVideoViewClient() { |
+ JNIEnv* env = AttachCurrentThread(); |
+ |
+ ScopedJavaLocalRef<jobject> obj = java_ref_.get(env); |
+ if (obj.is_null()) |
+ return ScopedJavaLocalRef<jobject>(); |
+ |
+ return Java_ContentViewCore_getContentVideoViewClient(env, obj.obj()); |
+} |
+ |
+ScopedJavaLocalRef<jobject> ContentViewCoreImpl::GetContext() { |
+ JNIEnv* env = AttachCurrentThread(); |
+ |
+ ScopedJavaLocalRef<jobject> obj = java_ref_.get(env); |
+ if (obj.is_null()) |
+ return ScopedJavaLocalRef<jobject>(); |
+ |
+ return Java_ContentViewCore_getContext(env, obj.obj()); |
+} |
+ |
gfx::Size ContentViewCoreImpl::GetPhysicalBackingSize() const { |
JNIEnv* env = AttachCurrentThread(); |
ScopedJavaLocalRef<jobject> j_obj = java_ref_.get(env); |