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