Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
index aebda91e321f592e556799e3420e4d064a3ef890..c288b189f539a3a2169f35f41ff2dbec61a651b2 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
@@ -297,6 +297,12 @@ public class ContentViewCore |
// Accessibility touch exploration state. |
private boolean mTouchExplorationEnabled; |
+ // Whether accessibility focus should be set to the page when it finishes loading. |
+ // This only applies if an accessibility service like TalkBack is running. |
+ // This is desirable behavior for a browser window, but not for an embedded |
+ // WebView. |
+ private boolean mShouldSetAccessibilityFocusOnPageLoad; |
+ |
// Allows us to dynamically respond when the accessibility script injection flag changes. |
private ContentObserver mAccessibilityScriptInjectionObserver; |
@@ -2893,6 +2899,23 @@ public class ContentViewCore |
} |
/** |
+ * Return whether or not we should set accessibility focus on page load. |
+ */ |
+ public boolean shouldSetAccessibilityFocusOnPageLoad() { |
+ return mShouldSetAccessibilityFocusOnPageLoad; |
+ } |
+ |
+ /** |
+ * Return whether or not we should set accessibility focus on page load. |
hush (inactive)
2014/08/27 18:35:37
sorry for the commenting on this after it is commi
|
+ * This only applies if an accessibility service like TalkBack is running. |
+ * This is desirable behavior for a browser window, but not for an embedded |
+ * WebView. |
+ */ |
+ public void setShouldSetAccessibilityFocusOnPageLoad(boolean on) { |
+ mShouldSetAccessibilityFocusOnPageLoad = on; |
+ } |
+ |
+ /** |
* Inform WebKit that Fullscreen mode has been exited by the user. |
*/ |
public void exitFullscreen() { |