OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/feature_utilities.h" | 5 #include "chrome/browser/android/feature_utilities.h" |
6 | 6 |
7 #include "jni/FeatureUtilities_jni.h" | 7 #include "jni/FeatureUtilities_jni.h" |
8 | 8 |
9 namespace { | 9 namespace { |
10 bool document_mode_enabled = false; | 10 bool document_mode_enabled = false; |
(...skipping 22 matching lines...) Expand all Loading... |
33 jboolean enabled) { | 33 jboolean enabled) { |
34 document_mode_enabled = enabled; | 34 document_mode_enabled = enabled; |
35 } | 35 } |
36 | 36 |
37 static void SetCustomTabVisible(JNIEnv* env, | 37 static void SetCustomTabVisible(JNIEnv* env, |
38 jclass clazz, | 38 jclass clazz, |
39 jboolean visible) { | 39 jboolean visible) { |
40 custom_tab_visible = visible; | 40 custom_tab_visible = visible; |
41 } | 41 } |
42 | 42 |
| 43 static jboolean GetCustomTabVisible(JNIEnv* env, |
| 44 jclass clazz) { |
| 45 return custom_tab_visible; |
| 46 } |
| 47 |
43 bool RegisterFeatureUtilities(JNIEnv* env) { | 48 bool RegisterFeatureUtilities(JNIEnv* env) { |
44 return RegisterNativesImpl(env); | 49 return RegisterNativesImpl(env); |
45 } | 50 } |
OLD | NEW |