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

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

Issue 2762123006: Android Autofill Accessibility, Phase I (Closed)
Patch Set: Adds histograms for histograms test. 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(JNIEnv* env,
cpu_(ooo_6.6-7.5) 2017/04/03 23:23:59 lets indent 233 the same as the two above.
csashi 2017/04/03 23:35:08 Done.
234 const base::android::JavaParamRef<jobject>& obj,
235 jint id);
236
225 // Scrolls any scrollable container by about 80% of one page in the 237 // Scrolls any scrollable container by about 80% of one page in the
226 // given direction. 238 // given direction.
227 bool Scroll(JNIEnv* env, 239 bool Scroll(JNIEnv* env,
228 const base::android::JavaParamRef<jobject>& obj, 240 const base::android::JavaParamRef<jobject>& obj,
229 jint id, 241 jint id,
230 int direction); 242 int direction);
231 243
232 JavaObjectWeakGlobalRef& java_ref() { return java_ref_; } 244 JavaObjectWeakGlobalRef& java_ref() { return java_ref_; }
233 245
234 protected: 246 protected:
(...skipping 28 matching lines...) Expand all
263 bool prune_tree_for_screen_reader_; 275 bool prune_tree_for_screen_reader_;
264 276
265 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerAndroid); 277 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerAndroid);
266 }; 278 };
267 279
268 bool RegisterBrowserAccessibilityManager(JNIEnv* env); 280 bool RegisterBrowserAccessibilityManager(JNIEnv* env);
269 281
270 } 282 }
271 283
272 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H _ 284 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_ANDROID_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698