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 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H_ |
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H_ |
7 | 7 |
8 #include "base/android/scoped_java_ref.h" | 8 #include "base/android/scoped_java_ref.h" |
9 #include "content/browser/accessibility/browser_accessibility_manager.h" | 9 #include "content/browser/accessibility/browser_accessibility_manager.h" |
10 #include "content/browser/android/content_view_core_impl.h" | 10 #include "content/browser/android/content_view_core_impl.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 base::android::ScopedJavaLocalRef<jobject> content_view_core, | 23 base::android::ScopedJavaLocalRef<jobject> content_view_core, |
24 const AccessibilityNodeData& src, | 24 const AccessibilityNodeData& src, |
25 BrowserAccessibilityDelegate* delegate, | 25 BrowserAccessibilityDelegate* delegate, |
26 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory()); | 26 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory()); |
27 | 27 |
28 virtual ~BrowserAccessibilityManagerAndroid(); | 28 virtual ~BrowserAccessibilityManagerAndroid(); |
29 | 29 |
30 static AccessibilityNodeData GetEmptyDocument(); | 30 static AccessibilityNodeData GetEmptyDocument(); |
31 | 31 |
32 // Implementation of BrowserAccessibilityManager. | 32 // Implementation of BrowserAccessibilityManager. |
33 virtual void NotifyAccessibilityEvent(int type, | 33 virtual void NotifyAccessibilityEvent( |
34 BrowserAccessibility* node) OVERRIDE; | 34 WebKit::WebAXEvent event_type, BrowserAccessibility* node) OVERRIDE; |
35 | 35 |
36 // -------------------------------------------------------------------------- | 36 // -------------------------------------------------------------------------- |
37 // Methods called from Java via JNI | 37 // Methods called from Java via JNI |
38 // -------------------------------------------------------------------------- | 38 // -------------------------------------------------------------------------- |
39 | 39 |
40 // Tree methods. | 40 // Tree methods. |
41 jint GetRootId(JNIEnv* env, jobject obj); | 41 jint GetRootId(JNIEnv* env, jobject obj); |
42 jint HitTest(JNIEnv* env, jobject obj, jint x, jint y); | 42 jint HitTest(JNIEnv* env, jobject obj, jint x, jint y); |
43 | 43 |
44 // Populate Java accessibility data structures with info about a node. | 44 // Populate Java accessibility data structures with info about a node. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 static int CalculateDistanceSquared(int x, int y, BrowserAccessibility* node); | 83 static int CalculateDistanceSquared(int x, int y, BrowserAccessibility* node); |
84 | 84 |
85 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerAndroid); | 85 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerAndroid); |
86 }; | 86 }; |
87 | 87 |
88 bool RegisterBrowserAccessibilityManager(JNIEnv* env); | 88 bool RegisterBrowserAccessibilityManager(JNIEnv* env); |
89 | 89 |
90 } | 90 } |
91 | 91 |
92 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H
_ | 92 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H
_ |
OLD | NEW |