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

Unified Diff: ui/chromeos/touch_accessibility_enabler.cc

Issue 2808053004: Fire accessibilityPrivate events on two-finger hold gesture. (Closed)
Patch Set: Address feedback Created 3 years, 8 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 | « ui/chromeos/touch_accessibility_enabler.h ('k') | ui/chromeos/touch_accessibility_enabler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/chromeos/touch_accessibility_enabler.cc
diff --git a/ui/chromeos/touch_accessibility_enabler.cc b/ui/chromeos/touch_accessibility_enabler.cc
index 004929ae3b571296da665c80203a6b4d85e95bb7..347e8de92f1204651fd4a45a6aada8031b53682f 100644
--- a/ui/chromeos/touch_accessibility_enabler.cc
+++ b/ui/chromeos/touch_accessibility_enabler.cc
@@ -109,6 +109,7 @@ void TouchAccessibilityEnabler::HandleTouchEvent(const ui::TouchEvent& event) {
state_ = TWO_FINGERS_DOWN;
two_finger_start_time_ = Now();
StartTimer();
+ delegate_->OnTwoFingerTouchStart();
}
}
@@ -130,8 +131,10 @@ void TouchAccessibilityEnabler::StartTimer() {
}
void TouchAccessibilityEnabler::CancelTimer() {
- if (timer_.IsRunning())
+ if (timer_.IsRunning()) {
timer_.Stop();
+ delegate_->OnTwoFingerTouchStop();
+ }
}
void TouchAccessibilityEnabler::OnTimer() {
« no previous file with comments | « ui/chromeos/touch_accessibility_enabler.h ('k') | ui/chromeos/touch_accessibility_enabler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698