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

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

Issue 681503002: Add Android AX functions to set the value and selection of a text field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@link_text_from_image
Patch Set: Add to supported actions Created 6 years, 1 month 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 "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
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
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 _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698