Commit edcd53a1 authored by Randy Rossi's avatar Randy Rossi Committed by Commit Bot

Send tap gesture on double tap

The 'wakeup device' tap gesture should happen on
double tap while in screen reader mode, not single
tap.

Bug: None
Test: Manual
Change-Id: I683f2d8859d1b2ab127cfa57883246bdda844e68
Reviewed-on: https://chromium-review.googlesource.com/1176214Reviewed-by: default avatarKevin Schoedel <kpschoedel@chromium.org>
Reviewed-by: default avatarAlex Sakhartchouk <alexst@chromium.org>
Commit-Queue: Randy Rossi <rmrossi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#583373}
parent becbb3c9
......@@ -577,6 +577,8 @@ ui::EventRewriteStatus TouchExplorationController::InWaitForNoFingers(
void TouchExplorationController::SendSimulatedClickOrTap() {
// If we got an anchor point from ChromeVox, send a double-tap gesture
// and let ChromeVox handle the click.
const gfx::Point location;
delegate_->HandleTap(location);
if (anchor_point_state_ == ANCHOR_POINT_EXPLICITLY_SET) {
delegate_->HandleAccessibilityGesture(ax::mojom::Gesture::kClick);
return;
......@@ -611,8 +613,6 @@ void TouchExplorationController::MaybeSendSimulatedTapInLiftActivationBounds(
lift_activation_bounds_.Contains(location)) {
accessibility_sound_player_->PlayTouchTypeEarcon();
SendSimulatedTap();
} else {
delegate_->HandleTap(location);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment