| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/android/app_hooks.h" |
| 6 |
| 7 #include "base/android/jni_android.h" |
| 8 #include "jni/AppHooks_jni.h" |
| 9 |
| 10 using base::android::ScopedJavaLocalRef; |
| 11 |
| 12 namespace chrome { |
| 13 namespace android { |
| 14 |
| 15 AppHooks::AppHooks() = default; |
| 16 |
| 17 AppHooks::~AppHooks() = default; |
| 18 |
| 19 bool AppHooks::ShouldDetectVideoFullscreen() { |
| 20 JNIEnv* env = base::android::AttachCurrentThread(); |
| 21 ScopedJavaLocalRef<jobject> app_hooks_obj = Java_AppHooks_get(env); |
| 22 |
| 23 return Java_AppHooks_shouldDetectVideoFullscreen(env, app_hooks_obj); |
| 24 } |
| 25 |
| 26 } // namespace android |
| 27 } // namespace chrome |
| OLD | NEW |