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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 15741009: Native Android accessibility. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/accessibility/accessibility_tree_formatter_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/java/src/org/chromium/android_webview/AwContents.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index d7f3727c3ab972137be8428edc8ab529f63b34eb..9da7fd51ff651ed90e8f0bbbaac445f58c20bb63 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -26,6 +26,7 @@ import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityNodeInfo;
+import android.view.accessibility.AccessibilityNodeProvider;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.webkit.GeolocationPermissions;
@@ -1295,6 +1296,16 @@ public class AwContents {
}
/**
+ * If native accessibility (not script injection) is enabled, and if this is
+ * running on JellyBean or later, returns an AccessibilityNodeProvider that
+ * implements native accessibility for this view. Returns null otherwise.
+ * @return The AccessibilityNodeProvider, if available, or null otherwise.
+ */
+ public AccessibilityNodeProvider getAccessibilityNodeProvider() {
+ return mContentViewCore.getAccessibilityNodeProvider();
+ }
+
+ /**
* @see android.webkit.WebView#onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo)
*/
public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) {
« no previous file with comments | « no previous file | content/browser/accessibility/accessibility_tree_formatter_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698