| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // Populate Java accessibility data structures with info about a node. | 48 // Populate Java accessibility data structures with info about a node. |
| 49 jboolean PopulateAccessibilityNodeInfo( | 49 jboolean PopulateAccessibilityNodeInfo( |
| 50 JNIEnv* env, jobject obj, jobject info, jint id); | 50 JNIEnv* env, jobject obj, jobject info, jint id); |
| 51 jboolean PopulateAccessibilityEvent( | 51 jboolean PopulateAccessibilityEvent( |
| 52 JNIEnv* env, jobject obj, jobject event, jint id, jint event_type); | 52 JNIEnv* env, jobject obj, jobject event, jint id, jint event_type); |
| 53 | 53 |
| 54 // Perform actions. | 54 // Perform actions. |
| 55 void Click(JNIEnv* env, jobject obj, jint id); | 55 void Click(JNIEnv* env, jobject obj, jint id); |
| 56 void Focus(JNIEnv* env, jobject obj, jint id); | 56 void Focus(JNIEnv* env, jobject obj, jint id); |
| 57 void Blur(JNIEnv* env, jobject obj); | 57 void Blur(JNIEnv* env, jobject obj); |
| 58 void ScrollToMakeNodeVisible(JNIEnv* env, jobject obj, int id); | 58 void ScrollToMakeNodeVisible(JNIEnv* env, jobject obj, jint id); |
| 59 void SetTextFieldValue(JNIEnv* env, jobject obj, jint id, jstring value); |
| 60 void SetSelection(JNIEnv* env, jobject obj, jint id, jint start, jint end); |
| 59 | 61 |
| 60 // Return the id of the next node in tree order in the direction given by | 62 // Return the id of the next node in tree order in the direction given by |
| 61 // |forwards|, starting with |start_id|, that matches |element_type|, | 63 // |forwards|, starting with |start_id|, that matches |element_type|, |
| 62 // where |element_type| is a special uppercase string from TalkBack or | 64 // where |element_type| is a special uppercase string from TalkBack or |
| 63 // BrailleBack indicating general categories of web content like | 65 // BrailleBack indicating general categories of web content like |
| 64 // "SECTION" or "CONTROL". Return 0 if not found. | 66 // "SECTION" or "CONTROL". Return 0 if not found. |
| 65 jint FindElementType(JNIEnv* env, jobject obj, jint start_id, | 67 jint FindElementType(JNIEnv* env, jobject obj, jint start_id, |
| 66 jstring element_type, jboolean forwards); | 68 jstring element_type, jboolean forwards); |
| 67 | 69 |
| 68 protected: | 70 protected: |
| (...skipping 18 matching lines...) Expand all Loading... |
| 87 void HandleHoverEvent(BrowserAccessibility* node); | 89 void HandleHoverEvent(BrowserAccessibility* node); |
| 88 | 90 |
| 89 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerAndroid); | 91 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerAndroid); |
| 90 }; | 92 }; |
| 91 | 93 |
| 92 bool RegisterBrowserAccessibilityManager(JNIEnv* env); | 94 bool RegisterBrowserAccessibilityManager(JNIEnv* env); |
| 93 | 95 |
| 94 } | 96 } |
| 95 | 97 |
| 96 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H
_ | 98 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H
_ |
| OLD | NEW |