Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Side by Side Diff: content/browser/accessibility/browser_accessibility_manager_android.h

Issue 2762123006: Android Autofill Accessibility, Phase I (Closed)
Patch Set: Move kAndroidAutofillAccessibility feature under OS_ANDROID. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 // Global methods. 93 // Global methods.
94 base::android::ScopedJavaLocalRef<jstring> GetSupportedHtmlElementTypes( 94 base::android::ScopedJavaLocalRef<jstring> GetSupportedHtmlElementTypes(
95 JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); 95 JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
96 96
97 // Tree methods. 97 // Tree methods.
98 jint GetRootId(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); 98 jint GetRootId(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
99 jboolean IsNodeValid(JNIEnv* env, 99 jboolean IsNodeValid(JNIEnv* env,
100 const base::android::JavaParamRef<jobject>& obj, 100 const base::android::JavaParamRef<jobject>& obj,
101 jint id); 101 jint id);
102
102 void HitTest(JNIEnv* env, 103 void HitTest(JNIEnv* env,
103 const base::android::JavaParamRef<jobject>& obj, 104 const base::android::JavaParamRef<jobject>& obj,
104 jint x, 105 jint x,
105 jint y); 106 jint y);
106 107
107 // Methods to get information about a specific node. 108 // Methods to get information about a specific node.
108 jboolean IsEditableText(JNIEnv* env, 109 jboolean IsEditableText(JNIEnv* env,
109 const base::android::JavaParamRef<jobject>& obj, 110 const base::android::JavaParamRef<jobject>& obj,
110 jint id); 111 jint id);
111 jboolean IsFocused(JNIEnv* env, 112 jboolean IsFocused(JNIEnv* env,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 // accurate movement by granularities on this node. 216 // accurate movement by granularities on this node.
216 void SetAccessibilityFocus(JNIEnv* env, 217 void SetAccessibilityFocus(JNIEnv* env,
217 const base::android::JavaParamRef<jobject>& obj, 218 const base::android::JavaParamRef<jobject>& obj,
218 jint id); 219 jint id);
219 220
220 // Returns true if the object is a slider. 221 // Returns true if the object is a slider.
221 bool IsSlider(JNIEnv* env, 222 bool IsSlider(JNIEnv* env,
222 const base::android::JavaParamRef<jobject>& obj, 223 const base::android::JavaParamRef<jobject>& obj,
223 jint id); 224 jint id);
224 225
226 // Accessibility methods to support navigation for autofill popup.
227 void OnAutofillPopupDisplayed(
228 JNIEnv* env,
229 const base::android::JavaParamRef<jobject>& obj);
230 void OnAutofillPopupDismissed(
231 JNIEnv* env,
232 const base::android::JavaParamRef<jobject>& obj);
233 jboolean IsAutofillPopupNode(
234 JNIEnv* env,
235 const base::android::JavaParamRef<jobject>& obj,
236 jint id);
237
225 // Scrolls any scrollable container by about 80% of one page in the 238 // Scrolls any scrollable container by about 80% of one page in the
226 // given direction. 239 // given direction.
227 bool Scroll(JNIEnv* env, 240 bool Scroll(JNIEnv* env,
228 const base::android::JavaParamRef<jobject>& obj, 241 const base::android::JavaParamRef<jobject>& obj,
229 jint id, 242 jint id,
230 int direction); 243 int direction);
231 244
232 JavaObjectWeakGlobalRef& java_ref() { return java_ref_; } 245 JavaObjectWeakGlobalRef& java_ref() { return java_ref_; }
233 246
234 protected: 247 protected:
(...skipping 28 matching lines...) Expand all
263 bool prune_tree_for_screen_reader_; 276 bool prune_tree_for_screen_reader_;
264 277
265 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerAndroid); 278 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerAndroid);
266 }; 279 };
267 280
268 bool RegisterBrowserAccessibilityManager(JNIEnv* env); 281 bool RegisterBrowserAccessibilityManager(JNIEnv* env);
269 282
270 } 283 }
271 284
272 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H _ 285 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H _
OLDNEW
« no previous file with comments | « content/app/strings/content_strings.grd ('k') | content/browser/accessibility/browser_accessibility_manager_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698