diff options
Diffstat (limited to 'content/browser')
-rw-r--r-- | content/browser/accessibility/browser_accessibility_manager_android.cc | 7 | ||||
-rw-r--r-- | content/browser/accessibility/browser_accessibility_manager_android.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/content/browser/accessibility/browser_accessibility_manager_android.cc b/content/browser/accessibility/browser_accessibility_manager_android.cc index 017afd1..d928258 100644 --- a/content/browser/accessibility/browser_accessibility_manager_android.cc +++ b/content/browser/accessibility/browser_accessibility_manager_android.cc @@ -379,6 +379,13 @@ void BrowserAccessibilityManagerAndroid::Blur(JNIEnv* env, jobject obj) { SetFocus(root_, true); } +void BrowserAccessibilityManagerAndroid::ScrollToMakeNodeVisible( + JNIEnv* env, jobject obj, jint id) { + BrowserAccessibility* node = GetFromRendererID(id); + if (node) + ScrollToMakeVisible(*node, gfx::Rect(node->location().size())); +} + BrowserAccessibility* BrowserAccessibilityManagerAndroid::FuzzyHitTest( int x, int y, BrowserAccessibility* start_node) { BrowserAccessibility* nearest_node = NULL; 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; |