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

Issue 410783002: Corner Passthrough for Accessibility (Closed)

Created:
6 years, 5 months ago by lisayin
Modified:
6 years, 4 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org, evy
Base URL:
https://chromium.googlesource.com/chromium/src.git@side-gestures
Project:
chromium
Visibility:
Public.

Description

Implementated corner passthrough when touch exploration controller is on. If the user presses and holds the bottom right or left corner of the screen past a time delay, an earcon will sound, and then any subsequent fingers added onto the screen will send touch events as normal (passed through) as long as one finger is at a corner of the screen. Once the finger on the corner of the screen has lifted, then nothing will happen until all the fingers on the screen have been lifted. UPDATE: Added earcons (short sound notifications) to indicate to the user if they have moved their finger off the screen or onto the screen or if they are in passthrough. BUG=396310 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289468

Patch Set 1 #

Patch Set 2 : Added tests and Rebase off Master #

Total comments: 22

Patch Set 3 : Added Earcons for Corner Passthrough #

Patch Set 4 : Refactored tests #

Total comments: 4

Patch Set 5 : Earcons through manager and delegate #

Total comments: 12

Patch Set 6 : Addressed comments and added more earcons #

Patch Set 7 : Rebased off Master #

Patch Set 8 : Fixed some rebase quirks #

Total comments: 10

Patch Set 9 : Included sound files and addressed comments #

Patch Set 10 : Added Exit and Enter Screen tests #

Total comments: 1

Patch Set 11 : Rebase off Master #

Total comments: 11

Patch Set 12 : Rebase off Master #

Patch Set 13 : Fixed rebase errors #

Patch Set 14 : Refactored tests and addressed comments #

Patch Set 15 : Added more Edge tests #

Patch Set 16 : Rebase off Master #

Patch Set 17 : Left out two soundkeys to change to ints #

Patch Set 18 : Rebase off Master #

Total comments: 19

Patch Set 19 : Addressed Alice's Comments #

Total comments: 6

Patch Set 20 : Addressed Comments #

Total comments: 3

Patch Set 21 : Addressed Comment #

Patch Set 22 : Rebase off master #

Patch Set 23 : Removed extra files #

Patch Set 24 : Rebase off master #

Patch Set 25 : Removed extra comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+434 lines, -39 lines) Patch
M ash/accessibility_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M ash/ash_touch_exploration_manager_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +4 lines, -1 line 0 comments Download
M ash/ash_touch_exploration_manager_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +23 lines, -8 lines 0 comments Download
M ash/default_accessibility_delegate.h View 1 2 3 4 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M ash/default_accessibility_delegate.cc View 1 2 3 4 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/accessibility/accessibility_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/accessibility/accessibility_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +12 lines, -1 line 0 comments Download
A chrome/browser/resources/chromeos/sounds/earcons/enter_screen.wav View 1 2 3 4 5 6 7 8 Binary file 0 comments Download
A chrome/browser/resources/chromeos/sounds/earcons/exit_screen.wav View 1 2 3 4 5 6 7 8 Binary file 0 comments Download
A chrome/browser/resources/chromeos/sounds/earcons/passthrough.wav View 1 2 3 4 5 6 7 8 Binary file 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc View 1 2 3 4 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate_views.cc View 1 2 3 4 9 10 11 12 13 14 15 16 1 chunk +3 lines, -0 lines 0 comments Download
M chromeos/audio/chromeos_sounds.h View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M ui/chromeos/touch_exploration_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 7 chunks +41 lines, -4 lines 0 comments Download
M ui/chromeos/touch_exploration_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 14 chunks +133 lines, -19 lines 0 comments Download
M ui/chromeos/touch_exploration_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 7 chunks +192 lines, -5 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
lisayin
Implementation of Corner Passthrough
6 years, 5 months ago (2014-07-24 18:10:53 UTC) #1
lisayin
Implementation of Corner Passthrough
6 years, 5 months ago (2014-07-24 18:10:54 UTC) #2
aboxhall
Haven't looked at test yet. https://codereview.chromium.org/410783002/diff/20001/ash/ash_touch_exploration_manager_chromeos.cc File ash/ash_touch_exploration_manager_chromeos.cc (right): https://codereview.chromium.org/410783002/diff/20001/ash/ash_touch_exploration_manager_chromeos.cc#newcode63 ash/ash_touch_exploration_manager_chromeos.cc:63: PlaySystemSoundIfSpokenFeedback(chromeos::SOUND_VOLUME_ADJUST); nit: indentation https://codereview.chromium.org/410783002/diff/20001/ui/chromeos/touch_exploration_controller.cc ...
6 years, 5 months ago (2014-07-24 18:26:34 UTC) #3
James Cook
Ping me separately for ash OWNERS after dmazzoni/aboxhall are happy with the a11y bits.
6 years, 5 months ago (2014-07-24 18:29:17 UTC) #4
aboxhall
https://codereview.chromium.org/410783002/diff/20001/ui/chromeos/touch_exploration_controller_unittest.cc File ui/chromeos/touch_exploration_controller_unittest.cc (right): https://codereview.chromium.org/410783002/diff/20001/ui/chromeos/touch_exploration_controller_unittest.cc#newcode1644 ui/chromeos/touch_exploration_controller_unittest.cc:1644: gfx::Point left_corner_press(10, nit: left_corner rather than left_corner_press. https://codereview.chromium.org/410783002/diff/20001/ui/chromeos/touch_exploration_controller_unittest.cc#newcode1646 ui/chromeos/touch_exploration_controller_unittest.cc:1646: ...
6 years, 5 months ago (2014-07-24 18:34:17 UTC) #5
lisayin
Added Earcons, fixed tests, and addressed Alice's comments https://codereview.chromium.org/410783002/diff/20001/ash/ash_touch_exploration_manager_chromeos.cc File ash/ash_touch_exploration_manager_chromeos.cc (right): https://codereview.chromium.org/410783002/diff/20001/ash/ash_touch_exploration_manager_chromeos.cc#newcode63 ash/ash_touch_exploration_manager_chromeos.cc:63: PlaySystemSoundIfSpokenFeedback(chromeos::SOUND_VOLUME_ADJUST); ...
6 years, 5 months ago (2014-07-25 20:11:58 UTC) #6
dmazzoni
https://codereview.chromium.org/410783002/diff/60001/ash/ash_touch_exploration_manager_chromeos.h File ash/ash_touch_exploration_manager_chromeos.h (right): https://codereview.chromium.org/410783002/diff/60001/ash/ash_touch_exploration_manager_chromeos.h#newcode38 ash/ash_touch_exploration_manager_chromeos.h:38: virtual void PlayEarCon() OVERRIDE; This should specify a particular ...
6 years, 5 months ago (2014-07-25 20:28:15 UTC) #7
lisayin
https://codereview.chromium.org/410783002/diff/60001/ash/ash_touch_exploration_manager_chromeos.h File ash/ash_touch_exploration_manager_chromeos.h (right): https://codereview.chromium.org/410783002/diff/60001/ash/ash_touch_exploration_manager_chromeos.h#newcode38 ash/ash_touch_exploration_manager_chromeos.h:38: virtual void PlayEarCon() OVERRIDE; On 2014/07/25 20:28:14, dmazzoni wrote: ...
6 years, 5 months ago (2014-07-25 23:09:30 UTC) #8
dmazzoni
https://codereview.chromium.org/410783002/diff/80001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/410783002/diff/80001/chrome/browser/browser_resources.grd#newcode414 chrome/browser/browser_resources.grd:414: <include name="IDR_SOUND_PASSTHROUGH_WAV" file="resources\chromeos\sounds\earcons\alert_modal.wav" type="BINDATA" /> I don't see this ...
6 years, 4 months ago (2014-07-28 05:32:44 UTC) #9
aboxhall
https://codereview.chromium.org/410783002/diff/80001/ui/chromeos/touch_exploration_controller_unittest.cc File ui/chromeos/touch_exploration_controller_unittest.cc (right): https://codereview.chromium.org/410783002/diff/80001/ui/chromeos/touch_exploration_controller_unittest.cc#newcode297 ui/chromeos/touch_exploration_controller_unittest.cc:297: // bottom nit: comment formatting https://codereview.chromium.org/410783002/diff/80001/ui/chromeos/touch_exploration_controller_unittest.cc#newcode300 ui/chromeos/touch_exploration_controller_unittest.cc:300: gfx::Point passthrough) ...
6 years, 4 months ago (2014-07-28 16:00:38 UTC) #10
lisayin
Dominic and Alice, PTAL https://codereview.chromium.org/410783002/diff/80001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/410783002/diff/80001/chrome/browser/browser_resources.grd#newcode414 chrome/browser/browser_resources.grd:414: <include name="IDR_SOUND_PASSTHROUGH_WAV" file="resources\chromeos\sounds\earcons\alert_modal.wav" type="BINDATA" /> ...
6 years, 4 months ago (2014-07-28 16:28:54 UTC) #11
lisayin
+sky for owners review for browsers_resources_.grd +jennyz for owners review for chromeos/audio/chromeos_sounds.h
6 years, 4 months ago (2014-07-28 17:33:51 UTC) #12
sky
https://codereview.chromium.org/410783002/diff/140001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/410783002/diff/140001/chrome/browser/browser_resources.grd#newcode414 chrome/browser/browser_resources.grd:414: <include name="IDR_SOUND_PASSTHROUGH_WAV" file="resources\chromeos\sounds\earcons\alert_modal.wav" type="BINDATA" /> Idr and file names ...
6 years, 4 months ago (2014-07-28 19:04:59 UTC) #13
James Cook
ash/* comments https://codereview.chromium.org/410783002/diff/140001/ash/accessibility_delegate.h File ash/accessibility_delegate.h (right): https://codereview.chromium.org/410783002/diff/140001/ash/accessibility_delegate.h#newcode95 ash/accessibility_delegate.h:95: // Plays an earcon. Can you provide ...
6 years, 4 months ago (2014-07-28 19:10:42 UTC) #14
lisayin
https://codereview.chromium.org/410783002/diff/140001/ash/accessibility_delegate.h File ash/accessibility_delegate.h (right): https://codereview.chromium.org/410783002/diff/140001/ash/accessibility_delegate.h#newcode95 ash/accessibility_delegate.h:95: // Plays an earcon. On 2014/07/28 19:10:41, James Cook ...
6 years, 4 months ago (2014-07-28 20:31:28 UTC) #15
lisayin
https://codereview.chromium.org/410783002/diff/140001/ash/accessibility_delegate.h File ash/accessibility_delegate.h (right): https://codereview.chromium.org/410783002/diff/140001/ash/accessibility_delegate.h#newcode95 ash/accessibility_delegate.h:95: // Plays an earcon. On 2014/07/28 20:31:27, lisayin wrote: ...
6 years, 4 months ago (2014-07-28 20:35:51 UTC) #16
dmazzoni
https://codereview.chromium.org/410783002/diff/140001/ash/accessibility_delegate.h File ash/accessibility_delegate.h (right): https://codereview.chromium.org/410783002/diff/140001/ash/accessibility_delegate.h#newcode95 ash/accessibility_delegate.h:95: // Plays an earcon. On 2014/07/28 20:35:50, lisayin wrote: ...
6 years, 4 months ago (2014-07-28 20:39:05 UTC) #17
aboxhall
https://codereview.chromium.org/410783002/diff/180001/ui/chromeos/touch_exploration_controller_unittest.cc File ui/chromeos/touch_exploration_controller_unittest.cc (right): https://codereview.chromium.org/410783002/diff/180001/ui/chromeos/touch_exploration_controller_unittest.cc#newcode1756 ui/chromeos/touch_exploration_controller_unittest.cc:1756: ui::TouchEvent upper_left_corner( Suggestion (similarly for ExitEarconPlays test): pull these ...
6 years, 4 months ago (2014-07-28 22:41:45 UTC) #18
James Cook
https://codereview.chromium.org/410783002/diff/200001/ash/accessibility_delegate.h File ash/accessibility_delegate.h (right): https://codereview.chromium.org/410783002/diff/200001/ash/accessibility_delegate.h#newcode98 ash/accessibility_delegate.h:98: virtual void PlayEarcon(media::SoundsManager::SoundKey sound_key) = 0; I would prefer ...
6 years, 4 months ago (2014-07-29 04:27:24 UTC) #19
dmazzoni
https://codereview.chromium.org/410783002/diff/200001/ash/accessibility_delegate.h File ash/accessibility_delegate.h (right): https://codereview.chromium.org/410783002/diff/200001/ash/accessibility_delegate.h#newcode98 ash/accessibility_delegate.h:98: virtual void PlayEarcon(media::SoundsManager::SoundKey sound_key) = 0; On 2014/07/29 04:27:24, ...
6 years, 4 months ago (2014-07-29 05:47:50 UTC) #20
James Cook
https://codereview.chromium.org/410783002/diff/200001/chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc File chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc (right): https://codereview.chromium.org/410783002/diff/200001/chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc#newcode204 chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc:204: DCHECK(chromeos::AccessibilityManager::Get()); On 2014/07/29 05:47:50, dmazzoni wrote: > On 2014/07/29 ...
6 years, 4 months ago (2014-07-29 15:45:51 UTC) #21
lisayin
https://codereview.chromium.org/410783002/diff/200001/ash/accessibility_delegate.h File ash/accessibility_delegate.h (right): https://codereview.chromium.org/410783002/diff/200001/ash/accessibility_delegate.h#newcode98 ash/accessibility_delegate.h:98: virtual void PlayEarcon(media::SoundsManager::SoundKey sound_key) = 0; On 2014/07/29 05:47:49, ...
6 years, 4 months ago (2014-07-30 15:32:51 UTC) #22
James Cook
*/ash/* LGTM
6 years, 4 months ago (2014-07-30 15:36:35 UTC) #23
aboxhall
https://codereview.chromium.org/410783002/diff/360001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/410783002/diff/360001/ui/chromeos/touch_exploration_controller.cc#newcode92 ui/chromeos/touch_exploration_controller.cc:92: if (FindEdgesWithinBounds(edges, kLeavingScreenEdge) != NO_EDGE) Do we want to ...
6 years, 4 months ago (2014-08-06 18:10:45 UTC) #24
lisayin
https://codereview.chromium.org/410783002/diff/360001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/410783002/diff/360001/ui/chromeos/touch_exploration_controller.cc#newcode92 ui/chromeos/touch_exploration_controller.cc:92: if (FindEdgesWithinBounds(edges, kLeavingScreenEdge) != NO_EDGE) On 2014/08/06 18:10:45, aboxhall ...
6 years, 4 months ago (2014-08-06 20:37:36 UTC) #25
aboxhall
https://codereview.chromium.org/410783002/diff/360001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/410783002/diff/360001/ui/chromeos/touch_exploration_controller.cc#newcode101 ui/chromeos/touch_exploration_controller.cc:101: if (FindEdgesWithinBounds(edges, kLeavingScreenEdge) != NO_EDGE) { On 2014/08/06 20:37:35, ...
6 years, 4 months ago (2014-08-06 21:03:12 UTC) #26
lisayin
https://codereview.chromium.org/410783002/diff/360001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/410783002/diff/360001/ui/chromeos/touch_exploration_controller.cc#newcode101 ui/chromeos/touch_exploration_controller.cc:101: if (FindEdgesWithinBounds(edges, kLeavingScreenEdge) != NO_EDGE) { So another thing ...
6 years, 4 months ago (2014-08-06 21:48:23 UTC) #27
aboxhall
lgtm https://codereview.chromium.org/410783002/diff/360001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/410783002/diff/360001/ui/chromeos/touch_exploration_controller.cc#newcode221 ui/chromeos/touch_exploration_controller.cc:221: OnTapTimerFired(); On 2014/08/06 21:48:22, lisayin wrote: > In ...
6 years, 4 months ago (2014-08-06 22:01:25 UTC) #28
lisayin
https://codereview.chromium.org/410783002/diff/420001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/410783002/diff/420001/ui/chromeos/touch_exploration_controller.cc#newcode712 ui/chromeos/touch_exploration_controller.cc:712: DCHECK(touch_locations_.end() != Would the change in this next patch ...
6 years, 4 months ago (2014-08-06 22:18:20 UTC) #29
lisayin
sky, jennyz PTAL at chrome/ and chromeos/ files. Thank you!
6 years, 4 months ago (2014-08-06 22:41:08 UTC) #30
aboxhall
lgtm https://codereview.chromium.org/410783002/diff/420001/ui/chromeos/touch_exploration_controller.cc File ui/chromeos/touch_exploration_controller.cc (right): https://codereview.chromium.org/410783002/diff/420001/ui/chromeos/touch_exploration_controller.cc#newcode712 ui/chromeos/touch_exploration_controller.cc:712: DCHECK(touch_locations_.end() != On 2014/08/06 22:18:19, lisayin wrote: > ...
6 years, 4 months ago (2014-08-06 23:35:19 UTC) #31
jennyz
lgtm
6 years, 4 months ago (2014-08-06 23:44:42 UTC) #32
sky
LGTM
6 years, 4 months ago (2014-08-07 21:05:28 UTC) #33
dmazzoni
lgtm
6 years, 4 months ago (2014-08-11 08:29:43 UTC) #34
lisayin
The CQ bit was checked by lisayin@chromium.org
6 years, 4 months ago (2014-08-13 21:28:33 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lisayin@chromium.org/410783002/510001
6 years, 4 months ago (2014-08-13 21:29:41 UTC) #36
commit-bot: I haz the power
6 years, 4 months ago (2014-08-14 05:24:00 UTC) #37
Message was sent while issue was closed.
Committed patchset #25 (510001) as 289468

Powered by Google App Engine
This is Rietveld 408576698