Chromium Code Reviews| 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..cb63ba8e2cc9fdf00ee10b1ae59543e9fc1b0e6b 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 = false; |
|
Ted C
2014/08/21 20:18:57
= false isn't needed as it's the default.
dmazzoni
2014/08/25 17:06:40
Done.
|
| + |
| // 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. |
| + * 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() { |