diff options
author | plundblad@chromium.org <plundblad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-28 21:06:21 +0000 |
---|---|---|
committer | plundblad@chromium.org <plundblad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-28 21:06:21 +0000 |
commit | 82d3777f5efefc0ed406ba2680240493eedee3e4 (patch) | |
tree | 394a8be6df934b1f161d4fff82c9bfc093a11aca /content/browser/accessibility/browser_accessibility_manager_android.h | |
parent | a343f085d7bfe400075d6f511407235953c55a1b (diff) | |
download | chromium_src-82d3777f5efefc0ed406ba2680240493eedee3e4.zip chromium_src-82d3777f5efefc0ed406ba2680240493eedee3e4.tar.gz chromium_src-82d3777f5efefc0ed406ba2680240493eedee3e4.tar.bz2 |
Scroll accessibility focused nodes to make them visible.
Since nodes must be (at least partially) visible on screen for
double taps to work when touch exploration is enabled, we scroll the content
whenever accessibility focus is set. During touch exploration, we delay scrolling
until the pointer goes up to avoid scrolling when the user is actually
exploring the screen.
BUG=335630
Review URL: https://codereview.chromium.org/137533014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247500 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/accessibility/browser_accessibility_manager_android.h')
-rw-r--r-- | content/browser/accessibility/browser_accessibility_manager_android.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/content/browser/accessibility/browser_accessibility_manager_android.h b/content/browser/accessibility/browser_accessibility_manager_android.h index 921ca3a..53cb617 100644 --- a/content/browser/accessibility/browser_accessibility_manager_android.h +++ b/content/browser/accessibility/browser_accessibility_manager_android.h @@ -55,6 +55,7 @@ class CONTENT_EXPORT BrowserAccessibilityManagerAndroid void Click(JNIEnv* env, jobject obj, jint id); void Focus(JNIEnv* env, jobject obj, jint id); void Blur(JNIEnv* env, jobject obj); + void ScrollToMakeNodeVisible(JNIEnv* env, jobject obj, int id); protected: virtual void NotifyRootChanged() OVERRIDE; |