Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Unified Diff: content/browser/accessibility/browser_accessibility_manager.cc

Issue 8770021: Initial implementation of IAccessible2 scrollTo and setTextSelection and (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/accessibility/browser_accessibility_manager.cc
===================================================================
--- content/browser/accessibility/browser_accessibility_manager.cc (revision 112482)
+++ content/browser/accessibility/browser_accessibility_manager.cc (working copy)
@@ -206,6 +206,22 @@
delegate_->AccessibilityDoDefaultAction(node.renderer_id());
}
+void BrowserAccessibilityManager::ChangeScrollPosition(
+ const BrowserAccessibility& node, int scroll_x, int scroll_y) {
+ if (delegate_) {
+ delegate_->AccessibilityChangeScrollPosition(
+ node.renderer_id(), scroll_x, scroll_y);
+ }
+}
+
+void BrowserAccessibilityManager::SetTextSelection(
+ const BrowserAccessibility& node, int start_offset, int end_offset) {
+ if (delegate_) {
+ delegate_->AccessibilitySetTextSelection(
+ node.renderer_id(), start_offset, end_offset);
+ }
+}
+
gfx::Rect BrowserAccessibilityManager::GetViewBounds() {
if (delegate_)
return delegate_->GetViewBounds();

Powered by Google App Engine
This is Rietveld 408576698