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

Unified Diff: chrome/browser/accessibility/accessibility_extension_api.cc

Issue 2007863004: Fix the double-tap to click gesture in touch accessibility mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add TODO for second display Created 4 years, 7 months 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
« no previous file with comments | « ash/root_window_controller.cc ('k') | chrome/browser/chromeos/accessibility/accessibility_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/accessibility/accessibility_extension_api.cc
diff --git a/chrome/browser/accessibility/accessibility_extension_api.cc b/chrome/browser/accessibility/accessibility_extension_api.cc
index 851097eb88614e3d3563c2e533aa5a2b553bedd5..e73e48cff8c1ce1fc5f0f0940cc4bf0d6017c690 100644
--- a/chrome/browser/accessibility/accessibility_extension_api.cc
+++ b/chrome/browser/accessibility/accessibility_extension_api.cc
@@ -77,8 +77,18 @@ bool AccessibilityPrivateSetFocusRingFunction::RunSync() {
rects.push_back(gfx::Rect(left, top, width, height));
}
+ // Move the visible focus ring to cover all of these rects.
chromeos::AccessibilityFocusRingController::GetInstance()->SetFocusRing(
rects);
+
+ // Also update the touch exploration controller so that synthesized
+ // touch events are anchored within the focused object.
+ if (!rects.empty()) {
+ chromeos::AccessibilityManager* manager =
+ chromeos::AccessibilityManager::Get();
+ manager->SetTouchAccessibilityAnchorPoint(rects[0].CenterPoint());
+ }
+
return true;
#endif // defined(OS_CHROMEOS)
« no previous file with comments | « ash/root_window_controller.cc ('k') | chrome/browser/chromeos/accessibility/accessibility_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698