|
|
Chromium Code Reviews|
Created:
4 years, 1 month ago by dmazzoni Modified:
4 years, 1 month ago Reviewers:
David Tseng CC:
chromium-reviews, alemate+watch_chromium.org, oshima+watch_chromium.org, aboxhall+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, je_julie, arv+watch_chromium.org, dtseng+watch_chromium.org, dmazzoni+watch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionUse modes to switch cvox panel between collapsed, menus, focused, and tutorial
The ChromeVox tutorial didn't close itself properly, it didn't restore the
state of the HTML properly. To enforce that the panel UI is always in one
mode, make the mode explicit with an enum and have a single function to
transition between modes.
Fix a few related issues and ensure that once you're in the tutorial you can
exit easily with the close button or by pressing Escape.
BUG=618090
TEST=Manually test opening menus, incremental search, and tutorial, and closing each by selecting, pressing close button, or pressing escape
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/477fa87081dc2a5161594ff03ff2337898b53d15
Cr-Commit-Position: refs/heads/master@{#429224}
Patch Set 1 #
Total comments: 8
Messages
Total messages: 21 (10 generated)
Description was changed from ========== Use modes to switch cvox panel between collapsed, menus, focused, and tutorial The ChromeVox tutorial didn't close itself properly, it didn't restore the state of the HTML properly. To enforce that the panel UI is always in one mode, make the mode explicit with an enum and have a single function to transition between modes. Fix a few related issues and ensure that once you're in the tutorial you can exit easily with the close button or by pressing Escape. BUG=618090 TEST=Manually test opening menus, incremental search, and tutorial, and closing each by selecting, pressing close button, or pressing escape ========== to ========== Use modes to switch cvox panel between collapsed, menus, focused, and tutorial The ChromeVox tutorial didn't close itself properly, it didn't restore the state of the HTML properly. To enforce that the panel UI is always in one mode, make the mode explicit with an enum and have a single function to transition between modes. Fix a few related issues and ensure that once you're in the tutorial you can exit easily with the close button or by pressing Escape. BUG=618090 TEST=Manually test opening menus, incremental search, and tutorial, and closing each by selecting, pressing close button, or pressing escape CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
The CQ bit was checked by dmazzoni@chromium.org to run a CQ dry run
dmazzoni@chromium.org changed reviewers: + dtseng@chromium.org
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2454213002/diff/1/chrome/browser/resources/ch... File chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js (right): https://codereview.chromium.org/2454213002/diff/1/chrome/browser/resources/ch... chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js:34: FULLSCREEN_TUTORIAL: 'tutorial' Is there a non full screen tutorial (and menu)? https://codereview.chromium.org/2454213002/diff/1/chrome/browser/resources/ch... chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js:639: Panel.setMode(Panel.Mode.COLLAPSED); Not equivalent to the removed code.
https://codereview.chromium.org/2454213002/diff/1/chrome/browser/resources/ch... File chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js (right): https://codereview.chromium.org/2454213002/diff/1/chrome/browser/resources/ch... chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js:34: FULLSCREEN_TUTORIAL: 'tutorial' On 2016/10/28 21:24:35, David Tseng wrote: > Is there a non full screen tutorial (and menu)? Nope, the idea was just to make it clear what the purpose of the mode was. I could do that with a comment instead. I'd like to add options and keyboard explorer as fullscreen modes too.
https://codereview.chromium.org/2454213002/diff/1/chrome/browser/resources/ch... File chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js (right): https://codereview.chromium.org/2454213002/diff/1/chrome/browser/resources/ch... chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js:639: Panel.setMode(Panel.Mode.COLLAPSED); On 2016/10/28 21:24:35, David Tseng wrote: > Not equivalent to the removed code. What does setMode do that it shouldn't?
lgtm https://codereview.chromium.org/2454213002/diff/1/chrome/browser/resources/ch... File chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js (right): https://codereview.chromium.org/2454213002/diff/1/chrome/browser/resources/ch... chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js:34: FULLSCREEN_TUTORIAL: 'tutorial' On 2016/10/28 21:29:13, dmazzoni wrote: > On 2016/10/28 21:24:35, David Tseng wrote: > > Is there a non full screen tutorial (and menu)? > > Nope, the idea was just to make it clear what the purpose of the mode was. I > could do that with a comment instead. > > I'd like to add options and keyboard explorer as fullscreen modes too. > Not really an issue besides the enum values being different. https://codereview.chromium.org/2454213002/diff/1/chrome/browser/resources/ch... chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js:259: this.mode_ = mode; This is also perhaps a good opportunity to ensure we don't move from certain modes to others (e.g. tutorial -> menu, focus -> tutorial, or whatever you think is invalid here). https://codereview.chromium.org/2454213002/diff/1/chrome/browser/resources/ch... chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js:639: Panel.setMode(Panel.Mode.COLLAPSED); On 2016/10/28 21:31:29, dmazzoni wrote: > On 2016/10/28 21:24:35, David Tseng wrote: > > Not equivalent to the removed code. > > What does setMode do that it shouldn't? Previously, we only collapsed if we were focused. Just making sure you meant to always collapse here.
https://codereview.chromium.org/2454213002/diff/1/chrome/browser/resources/ch... File chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js (right): https://codereview.chromium.org/2454213002/diff/1/chrome/browser/resources/ch... chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js:259: this.mode_ = mode; On 2016/10/28 23:02:13, David Tseng wrote: > This is also perhaps a good opportunity to ensure we don't move from certain > modes to others (e.g. tutorial -> menu, focus -> tutorial, or whatever you think > is invalid here). I think I need to figure out how to support the menu while the tutorial is open, as a follow-up - or else disable the menu. In the meantime, I tested those permutations and they all work fine or at least they leave you in a consistent state now, which is much better than before so I want to land this first and keep improving it.
The CQ bit was checked by dmazzoni@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_clobber_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by dmazzoni@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #1 (id:1)
Message was sent while issue was closed.
Description was changed from ========== Use modes to switch cvox panel between collapsed, menus, focused, and tutorial The ChromeVox tutorial didn't close itself properly, it didn't restore the state of the HTML properly. To enforce that the panel UI is always in one mode, make the mode explicit with an enum and have a single function to transition between modes. Fix a few related issues and ensure that once you're in the tutorial you can exit easily with the close button or by pressing Escape. BUG=618090 TEST=Manually test opening menus, incremental search, and tutorial, and closing each by selecting, pressing close button, or pressing escape CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== Use modes to switch cvox panel between collapsed, menus, focused, and tutorial The ChromeVox tutorial didn't close itself properly, it didn't restore the state of the HTML properly. To enforce that the panel UI is always in one mode, make the mode explicit with an enum and have a single function to transition between modes. Fix a few related issues and ensure that once you're in the tutorial you can exit easily with the close button or by pressing Escape. BUG=618090 TEST=Manually test opening menus, incremental search, and tutorial, and closing each by selecting, pressing close button, or pressing escape CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/477fa87081dc2a5161594ff03ff2337898b53d15 Cr-Commit-Position: refs/heads/master@{#429224} ==========
Message was sent while issue was closed.
Patchset 1 (id:??) landed as https://crrev.com/477fa87081dc2a5161594ff03ff2337898b53d15 Cr-Commit-Position: refs/heads/master@{#429224} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
