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

Issue 2476843003: Toggle spoken feedback if two fingers are held down. (Closed)

Created:
4 years, 1 month ago by dmazzoni
Modified:
4 years, 1 month ago
Reviewers:
oshima, sadrul, michaelpg
CC:
chromium-reviews, alemate+watch_chromium.org, sadrul, oshima+watch_chromium.org, aboxhall+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, kalyank, davemoore+watch_chromium.org, arv+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Toggle spoken feedback if two fingers are held down. Blind users need a way to toggle spoken feedback on devices that only have a touch screen, and devices that are temporarily in a mode where the keyboard is disabled. Add a class that watches for two fingers held down, plays a tick sound to let the user know something might happen, then toggles spoken feedback if two fingers remain down without moving for enough time. BUG=662501 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/e648c7373d2a3bffb6e39bcab1ef1d7441e5ee7d Cr-Commit-Position: refs/heads/master@{#432129}

Patch Set 1 #

Total comments: 20

Patch Set 2 : Address feedback #

Patch Set 3 : Switch back to EventRewriter #

Patch Set 4 : Send events from TouchExplorationController to TouchAccessibilityEnabler #

Total comments: 4

Patch Set 5 : Address feedback from sadrul - get rid of touch_ids_ #

Patch Set 6 : Skip events rewritten by TouchExplorationController #

Total comments: 6

Patch Set 7 : Address last nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+528 lines, -6 lines) Patch
M ash/ash_touch_exploration_manager_chromeos.h View 4 chunks +7 lines, -0 lines 0 comments Download
M ash/ash_touch_exploration_manager_chromeos.cc View 1 2 3 2 chunks +19 lines, -1 line 0 comments Download
M ash/common/accessibility_delegate.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ash/common/default_accessibility_delegate.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/default_accessibility_delegate.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/accessibility/accessibility_manager.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/accessibility/accessibility_manager.cc View 1 2 chunks +12 lines, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/sounds/spoken_feedback_toggle_countdown_high.wav View Binary file 0 comments Download
A chrome/browser/resources/chromeos/sounds/spoken_feedback_toggle_countdown_low.wav View Binary file 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chromeos/audio/chromeos_sounds.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/chromeos/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
A ui/chromeos/touch_accessibility_enabler.h View 1 2 3 4 1 chunk +119 lines, -0 lines 0 comments Download
A ui/chromeos/touch_accessibility_enabler.cc View 1 2 3 4 5 6 1 chunk +147 lines, -0 lines 0 comments Download
A ui/chromeos/touch_accessibility_enabler_unittest.cc View 1 2 3 4 5 6 1 chunk +181 lines, -0 lines 0 comments Download
M ui/chromeos/touch_exploration_controller.h View 1 2 3 4 3 chunks +9 lines, -1 line 0 comments Download
M ui/chromeos/touch_exploration_controller.cc View 1 2 3 4 5 3 chunks +9 lines, -2 lines 0 comments Download
M ui/chromeos/touch_exploration_controller_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 52 (33 generated)
dmazzoni
4 years, 1 month ago (2016-11-04 19:54:20 UTC) #5
oshima
https://codereview.chromium.org/2476843003/diff/1/ash/common/accessibility_delegate.h File ash/common/accessibility_delegate.h (right): https://codereview.chromium.org/2476843003/diff/1/ash/common/accessibility_delegate.h#newcode127 ash/common/accessibility_delegate.h:127: // is about to happen. You have very similar ...
4 years, 1 month ago (2016-11-08 18:14:43 UTC) #8
dmazzoni
https://codereview.chromium.org/2476843003/diff/1/ash/common/accessibility_delegate.h File ash/common/accessibility_delegate.h (right): https://codereview.chromium.org/2476843003/diff/1/ash/common/accessibility_delegate.h#newcode127 ash/common/accessibility_delegate.h:127: // is about to happen. On 2016/11/08 18:14:43, oshima ...
4 years, 1 month ago (2016-11-08 20:43:47 UTC) #10
dmazzoni
https://codereview.chromium.org/2476843003/diff/1/ui/chromeos/touch_accessibility_enabler.cc File ui/chromeos/touch_accessibility_enabler.cc (right): https://codereview.chromium.org/2476843003/diff/1/ui/chromeos/touch_accessibility_enabler.cc#newcode47 ui/chromeos/touch_accessibility_enabler.cc:47: std::unique_ptr<ui::Event>* rewritten_event) { On 2016/11/08 20:43:47, dmazzoni wrote: > ...
4 years, 1 month ago (2016-11-08 21:18:04 UTC) #12
oshima
On 2016/11/08 21:18:04, dmazzoni wrote: > https://codereview.chromium.org/2476843003/diff/1/ui/chromeos/touch_accessibility_enabler.cc > File ui/chromeos/touch_accessibility_enabler.cc (right): > > https://codereview.chromium.org/2476843003/diff/1/ui/chromeos/touch_accessibility_enabler.cc#newcode47 > ...
4 years, 1 month ago (2016-11-09 23:48:32 UTC) #19
sadrul
https://codereview.chromium.org/2476843003/diff/1/ui/chromeos/touch_accessibility_enabler.cc File ui/chromeos/touch_accessibility_enabler.cc (right): https://codereview.chromium.org/2476843003/diff/1/ui/chromeos/touch_accessibility_enabler.cc#newcode47 ui/chromeos/touch_accessibility_enabler.cc:47: std::unique_ptr<ui::Event>* rewritten_event) { On 2016/11/08 21:18:04, dmazzoni wrote: > ...
4 years, 1 month ago (2016-11-10 20:39:03 UTC) #20
dmazzoni
On 2016/11/10 20:39:03, sadrul wrote: > I would like to understand more, because this is ...
4 years, 1 month ago (2016-11-10 21:03:43 UTC) #21
dmazzoni
On 2016/11/10 20:39:03, sadrul wrote: > Can that notify this handler before it does the ...
4 years, 1 month ago (2016-11-10 23:10:50 UTC) #22
sadrul
This looks much better! A couple of nits, other than that, lgtm https://codereview.chromium.org/2476843003/diff/60001/ui/chromeos/touch_accessibility_enabler.cc File ui/chromeos/touch_accessibility_enabler.cc ...
4 years, 1 month ago (2016-11-12 01:51:53 UTC) #27
dmazzoni
Thanks! @oshima, any last thoughts from you? https://codereview.chromium.org/2476843003/diff/60001/ui/chromeos/touch_accessibility_enabler.cc File ui/chromeos/touch_accessibility_enabler.cc (right): https://codereview.chromium.org/2476843003/diff/60001/ui/chromeos/touch_accessibility_enabler.cc#newcode91 ui/chromeos/touch_accessibility_enabler.cc:91: if (touch_ids_.size() ...
4 years, 1 month ago (2016-11-14 20:33:54 UTC) #29
oshima
lgtm https://codereview.chromium.org/2476843003/diff/100001/ui/chromeos/touch_accessibility_enabler.cc File ui/chromeos/touch_accessibility_enabler.cc (right): https://codereview.chromium.org/2476843003/diff/100001/ui/chromeos/touch_accessibility_enabler.cc#newcode53 ui/chromeos/touch_accessibility_enabler.cc:53: void TouchAccessibilityEnabler::HandleTouchEvent(const ui::TouchEvent& event) { DCHECK(!(event.flags() & EF_TOUCH_ACCESSIBILITY)); ...
4 years, 1 month ago (2016-11-14 22:02:47 UTC) #33
dmazzoni
https://codereview.chromium.org/2476843003/diff/100001/ui/chromeos/touch_accessibility_enabler.cc File ui/chromeos/touch_accessibility_enabler.cc (right): https://codereview.chromium.org/2476843003/diff/100001/ui/chromeos/touch_accessibility_enabler.cc#newcode53 ui/chromeos/touch_accessibility_enabler.cc:53: void TouchAccessibilityEnabler::HandleTouchEvent(const ui::TouchEvent& event) { On 2016/11/14 22:02:47, oshima ...
4 years, 1 month ago (2016-11-14 23:17:16 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2476843003/120001
4 years, 1 month ago (2016-11-14 23:18:32 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/303822)
4 years, 1 month ago (2016-11-14 23:34:58 UTC) #43
dmazzoni
+michaelpg for chrome/browser/browser_resources.grd and chrome/browser/resources/chromeos/sounds
4 years, 1 month ago (2016-11-15 01:23:43 UTC) #45
michaelpg
lgtm for chrome/browser/browser_resources.grd and chrome/browser/resources/chromeos/sounds
4 years, 1 month ago (2016-11-15 03:15:12 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2476843003/120001
4 years, 1 month ago (2016-11-15 06:16:07 UTC) #48
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-11-15 06:21:23 UTC) #50
commit-bot: I haz the power
4 years, 1 month ago (2016-11-15 06:23:18 UTC) #52
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/e648c7373d2a3bffb6e39bcab1ef1d7441e5ee7d
Cr-Commit-Position: refs/heads/master@{#432129}

Powered by Google App Engine
This is Rietveld 408576698