This source file includes following definitions.
- JNINamespace
- getAccessibilityNodeProvider
package org.chromium.content.browser.accessibility;
import android.os.Bundle;
import android.view.accessibility.AccessibilityNodeInfo;
import android.view.accessibility.AccessibilityNodeProvider;
import org.chromium.base.JNINamespace;
import org.chromium.content.browser.ContentViewCore;
import java.util.List;
@JNINamespace("content")
public class JellyBeanBrowserAccessibilityManager extends BrowserAccessibilityManager {
private AccessibilityNodeProvider mAccessibilityNodeProvider;
JellyBeanBrowserAccessibilityManager(long nativeBrowserAccessibilityManagerAndroid,
ContentViewCore contentViewCore) {
super(nativeBrowserAccessibilityManagerAndroid, contentViewCore);
final BrowserAccessibilityManager delegate = this;
mAccessibilityNodeProvider = new AccessibilityNodeProvider() {
@Override
public AccessibilityNodeInfo createAccessibilityNodeInfo(int virtualViewId) {
return delegate.createAccessibilityNodeInfo(virtualViewId);
}
@Override
public List<AccessibilityNodeInfo> findAccessibilityNodeInfosByText(String text,
int virtualViewId) {
return delegate.findAccessibilityNodeInfosByText(text, virtualViewId);
}
@Override
public boolean performAction(int virtualViewId, int action, Bundle arguments) {
return delegate.performAction(virtualViewId, action, arguments);
}
};
}
@Override
public AccessibilityNodeProvider getAccessibilityNodeProvider() {
return mAccessibilityNodeProvider;
}
}