| 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 using base::android::JavaParamRef; |
| 10 |
| 9 namespace { | 11 namespace { |
| 10 bool document_mode_enabled = false; | 12 bool document_mode_enabled = false; |
| 11 bool custom_tab_visible = false; | 13 bool custom_tab_visible = false; |
| 12 bool is_in_multi_window_mode = false; | 14 bool is_in_multi_window_mode = false; |
| 13 } // namespace | 15 } // namespace |
| 14 | 16 |
| 15 namespace chrome { | 17 namespace chrome { |
| 16 namespace android { | 18 namespace android { |
| 17 | 19 |
| 18 RunningModeHistogram GetDocumentModeValue() { | 20 RunningModeHistogram GetDocumentModeValue() { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 46 | 48 |
| 47 static void SetIsInMultiWindowMode(JNIEnv* env, | 49 static void SetIsInMultiWindowMode(JNIEnv* env, |
| 48 const JavaParamRef<jclass>& clazz, | 50 const JavaParamRef<jclass>& clazz, |
| 49 jboolean j_is_in_multi_window_mode) { | 51 jboolean j_is_in_multi_window_mode) { |
| 50 is_in_multi_window_mode = j_is_in_multi_window_mode; | 52 is_in_multi_window_mode = j_is_in_multi_window_mode; |
| 51 } | 53 } |
| 52 | 54 |
| 53 bool RegisterFeatureUtilities(JNIEnv* env) { | 55 bool RegisterFeatureUtilities(JNIEnv* env) { |
| 54 return RegisterNativesImpl(env); | 56 return RegisterNativesImpl(env); |
| 55 } | 57 } |
| OLD | NEW |