|
|
Chromium Code Reviews|
Created:
4 years, 5 months ago by David Tseng Modified:
4 years, 5 months ago CC:
dmazzoni, chromium-reviews, tfarina Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionMake ToggleImageButton into an accessible toggle button.
BUG=628965
TEST=on Chrome OS, with ChromeVox on, alt-shift-n, tab to do not distrub and toggle. Verify "Do not disturb" and "Do not disturb, pressed" are announced by ChromeVox.
Committed: https://crrev.com/83cc54ce489016614d04f9148a884d20e3a67c0b
Cr-Commit-Position: refs/heads/master@{#407509}
Patch Set 1 #Patch Set 2 : Add test. #
Total comments: 1
Patch Set 3 : Fix test. #Patch Set 4 : Rework toggle logic. #
Total comments: 6
Messages
Total messages: 23 (11 generated)
Description was changed from ========== Make ImageToggleButton into an accessible toggle button. ========== to ========== Make ImageToggleButton into an accessible toggle button. BUG=628965 TEST=on Chrome OS, with ChromeVox on, alt-shift-n, tab to do not distrub and toggle. Verify "Do not disturb" and "Do not disturb, pressed" are announced by ChromeVox. ==========
dtseng@chromium.org changed reviewers: + sadrul@chromium.org
Description was changed from ========== Make ImageToggleButton into an accessible toggle button. BUG=628965 TEST=on Chrome OS, with ChromeVox on, alt-shift-n, tab to do not distrub and toggle. Verify "Do not disturb" and "Do not disturb, pressed" are announced by ChromeVox. ========== to ========== Make ToggleImageButton into an accessible toggle button. BUG=628965 TEST=on Chrome OS, with ChromeVox on, alt-shift-n, tab to do not distrub and toggle. Verify "Do not disturb" and "Do not disturb, pressed" are announced by ChromeVox. ==========
sadrul@chromium.org changed reviewers: + dmazzoni@chromium.org
+dmazzoni@ for review. Is this testable?
On 2016/07/19 23:52:34, sadrul wrote: > +dmazzoni@ for review. > > Is this testable? Added test.
Would it be possible to fix various subclasses? In cases where it really is a toggle button it seems weird to not have the right role when un-toggled. https://codereview.chromium.org/2162083004/diff/20001/chrome/browser/chromeos... File chrome/browser/chromeos/accessibility/spoken_feedback_browsertest.cc (right): https://codereview.chromium.org/2162083004/diff/20001/chrome/browser/chromeos... chrome/browser/chromeos/accessibility/spoken_feedback_browsertest.cc:681: do { This looks incomplete?
On Thu, Jul 21, 2016 at 10:05 AM, <dmazzoni@chromium.org> wrote: > Would it be possible to fix various subclasses? > > Not really. See below. > In cases where it really is a toggle button it seems weird to > not have the right role when un-toggled. > > The subclasses (mostly Notification CenterButton) mix up the notion of the toggle button because it provides different images for different button states. The fact that the ToggleImageButton is "toggleable" is visually centric it seems so I went ahead and check for the caller that uses setToggledImage which sets either images_ or alternate_images_ with a ImageSkia. > > https://codereview.chromium.org/2162083004/diff/20001/chrome > /browser/chromeos/accessibility/spoken_feedback_browsertest.cc > File > chrome/browser/chromeos/accessibility/spoken_feedback_browsertest.cc > (right): > > https://codereview.chromium.org/2162083004/diff/20001/chrome > /browser/chromeos/accessibility/spoken_feedback_browsertest.cc#newcode681 > chrome/browser/chromeos/accessibility/spoken_feedback_browsertest.cc:681: > do { > This looks incomplete? > Oops. Yes, should now be in the latest patchset. > > https://codereview.chromium.org/2162083004/ > > -- > You received this message because you are subscribed to the Google Groups > "Chromium-reviews" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chromium-reviews+unsubscribe@chromium.org. > -- You received this message because you are subscribed to the Google Groups "Chromium-reviews" group. To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
lgtm Please run git cl format on the test, but otherwise lg https://codereview.chromium.org/2162083004/diff/60001/chrome/browser/chromeos... File chrome/browser/chromeos/accessibility/spoken_feedback_browsertest.cc (right): https://codereview.chromium.org/2162083004/diff/60001/chrome/browser/chromeos... chrome/browser/chromeos/accessibility/spoken_feedback_browsertest.cc:230: IN_PROC_BROWSER_TEST_F(LoggedInSpokenFeedbackTest, NavigateNotificationCenter) { wrap https://codereview.chromium.org/2162083004/diff/60001/chrome/browser/chromeos... chrome/browser/chromeos/accessibility/spoken_feedback_browsertest.cc:233: EXPECT_TRUE(PerformAcceleratorAction(ash::SHOW_MESSAGE_CENTER_BUBBLE)); fix indentation https://codereview.chromium.org/2162083004/diff/60001/ui/views/controls/butto... File ui/views/controls/button/image_button.cc (right): https://codereview.chromium.org/2162083004/diff/60001/ui/views/controls/butto... ui/views/controls/button/image_button.cc:274: // Use the visual pressed image as a cue for making this control into an wrap? looks like more than 80 chars in Rietveld
Re: the formatting issues. I checked manually and also re-ran git cl format on the offending files, and I could see nothing wrong. https://codereview.chromium.org/2162083004/diff/60001/chrome/browser/chromeos... File chrome/browser/chromeos/accessibility/spoken_feedback_browsertest.cc (right): https://codereview.chromium.org/2162083004/diff/60001/chrome/browser/chromeos... chrome/browser/chromeos/accessibility/spoken_feedback_browsertest.cc:230: IN_PROC_BROWSER_TEST_F(LoggedInSpokenFeedbackTest, NavigateNotificationCenter) { On 2016/07/22 18:06:29, dmazzoni wrote: > wrap This is 80 characters. https://codereview.chromium.org/2162083004/diff/60001/chrome/browser/chromeos... chrome/browser/chromeos/accessibility/spoken_feedback_browsertest.cc:233: EXPECT_TRUE(PerformAcceleratorAction(ash::SHOW_MESSAGE_CENTER_BUBBLE)); On 2016/07/22 18:06:29, dmazzoni wrote: > fix indentation Something strange is going on...this is a two character indent like everything else. https://codereview.chromium.org/2162083004/diff/60001/ui/views/controls/butto... File ui/views/controls/button/image_button.cc (right): https://codereview.chromium.org/2162083004/diff/60001/ui/views/controls/butto... ui/views/controls/button/image_button.cc:274: // Use the visual pressed image as a cue for making this control into an On 2016/07/22 18:06:29, dmazzoni wrote: > wrap? looks like more than 80 chars in Rietveld Hmm...strange, it's 73 characters.
lgtm
Sorry about that, Rietveld has a new UI and it seems to be wrapping wrong On Fri, Jul 22, 2016, 6:10 PM <sadrul@chromium.org> wrote: > lgtm > > > > https://codereview.chromium.org/2162083004/ > > -- > You received this message because you are subscribed to the Google Groups > "Chromium-reviews" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to chromium-reviews+unsubscribe@chromium.org. > -- You received this message because you are subscribed to the Google Groups "Chromium-reviews" group. To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
The CQ bit was checked by dtseng@chromium.org to run a CQ dry run
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.
The CQ bit was checked by dtseng@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.
Description was changed from ========== Make ToggleImageButton into an accessible toggle button. BUG=628965 TEST=on Chrome OS, with ChromeVox on, alt-shift-n, tab to do not distrub and toggle. Verify "Do not disturb" and "Do not disturb, pressed" are announced by ChromeVox. ========== to ========== Make ToggleImageButton into an accessible toggle button. BUG=628965 TEST=on Chrome OS, with ChromeVox on, alt-shift-n, tab to do not distrub and toggle. Verify "Do not disturb" and "Do not disturb, pressed" are announced by ChromeVox. ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== Make ToggleImageButton into an accessible toggle button. BUG=628965 TEST=on Chrome OS, with ChromeVox on, alt-shift-n, tab to do not distrub and toggle. Verify "Do not disturb" and "Do not disturb, pressed" are announced by ChromeVox. ========== to ========== Make ToggleImageButton into an accessible toggle button. BUG=628965 TEST=on Chrome OS, with ChromeVox on, alt-shift-n, tab to do not distrub and toggle. Verify "Do not disturb" and "Do not disturb, pressed" are announced by ChromeVox. Committed: https://crrev.com/83cc54ce489016614d04f9148a884d20e3a67c0b Cr-Commit-Position: refs/heads/master@{#407509} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/83cc54ce489016614d04f9148a884d20e3a67c0b Cr-Commit-Position: refs/heads/master@{#407509} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
