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

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

Issue 2738893002: Add flag for enabling/disabling video fullscreen detection (Closed)
Patch Set: rebased Created 3 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
« no previous file with comments | « chrome/browser/android/app_hooks.h ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « chrome/browser/android/app_hooks.h ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698