| 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 "base/android/context_utils.h" | 5 #include "base/android/context_utils.h" |
| 6 #include "base/android/jni_android.h" | 6 #include "base/android/jni_android.h" |
| 7 #include "chrome/browser/android/accessibility_util.h" | 7 #include "chrome/browser/android/accessibility_util.h" |
| 8 #include "jni/AccessibilityUtil_jni.h" | 8 #include "jni/AccessibilityUtil_jni.h" |
| 9 | 9 |
| 10 namespace chrome { | 10 namespace chrome { |
| 11 namespace android { | 11 namespace android { |
| 12 | 12 |
| 13 bool AccessibilityUtil::Register(JNIEnv* env) { | |
| 14 return RegisterNativesImpl(env); | |
| 15 } | |
| 16 | |
| 17 bool AccessibilityUtil::IsAccessibilityEnabled() { | 13 bool AccessibilityUtil::IsAccessibilityEnabled() { |
| 18 return Java_AccessibilityUtil_isAccessibilityEnabled( | 14 return Java_AccessibilityUtil_isAccessibilityEnabled( |
| 19 base::android::AttachCurrentThread(), | 15 base::android::AttachCurrentThread(), |
| 20 base::android::GetApplicationContext()); | 16 base::android::GetApplicationContext()); |
| 21 } | 17 } |
| 22 | 18 |
| 23 AccessibilityUtil::AccessibilityUtil() { } | 19 AccessibilityUtil::AccessibilityUtil() { } |
| 24 | 20 |
| 25 } // namespace android | 21 } // namespace android |
| 26 } // namespace chrome | 22 } // namespace chrome |
| OLD | NEW |