OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/browser/accessibility/browser_accessibility_manager_android.h" | 5 #include "content/browser/accessibility/browser_accessibility_manager_android.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <cmath> | 9 #include <cmath> |
10 | 10 |
11 #include "base/android/jni_android.h" | 11 #include "base/android/jni_android.h" |
12 #include "base/android/jni_string.h" | 12 #include "base/android/jni_string.h" |
13 #include "base/i18n/char_iterator.h" | 13 #include "base/i18n/char_iterator.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "content/browser/accessibility/browser_accessibility_android.h" | 17 #include "content/browser/accessibility/browser_accessibility_android.h" |
18 #include "content/browser/accessibility/one_shot_accessibility_tree_search.h" | 18 #include "content/browser/accessibility/one_shot_accessibility_tree_search.h" |
19 #include "content/common/accessibility_messages.h" | 19 #include "content/common/accessibility_messages.h" |
20 #include "jni/BrowserAccessibilityManager_jni.h" | 20 #include "jni/BrowserAccessibilityManager_jni.h" |
21 #include "ui/accessibility/ax_text_utils.h" | 21 #include "ui/accessibility/ax_text_utils.h" |
22 | 22 |
23 using base::android::AttachCurrentThread; | 23 using base::android::AttachCurrentThread; |
| 24 using base::android::JavaParamRef; |
24 using base::android::ScopedJavaLocalRef; | 25 using base::android::ScopedJavaLocalRef; |
25 | 26 |
26 namespace content { | 27 namespace content { |
27 | 28 |
28 namespace { | 29 namespace { |
29 | 30 |
30 using SearchKeyToPredicateMap = | 31 using SearchKeyToPredicateMap = |
31 base::hash_map<base::string16, AccessibilityMatchPredicate>; | 32 base::hash_map<base::string16, AccessibilityMatchPredicate>; |
32 base::LazyInstance<SearchKeyToPredicateMap> g_search_key_to_predicate_map = | 33 base::LazyInstance<SearchKeyToPredicateMap> g_search_key_to_predicate_map = |
33 LAZY_INSTANCE_INITIALIZER; | 34 LAZY_INSTANCE_INITIALIZER; |
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
954 | 955 |
955 JNIEnv* env = AttachCurrentThread(); | 956 JNIEnv* env = AttachCurrentThread(); |
956 return root_manager->java_ref().get(env); | 957 return root_manager->java_ref().get(env); |
957 } | 958 } |
958 | 959 |
959 bool RegisterBrowserAccessibilityManager(JNIEnv* env) { | 960 bool RegisterBrowserAccessibilityManager(JNIEnv* env) { |
960 return RegisterNativesImpl(env); | 961 return RegisterNativesImpl(env); |
961 } | 962 } |
962 | 963 |
963 } // namespace content | 964 } // namespace content |
OLD | NEW |