ToggleButton should have focus rectangle |
||||||||||
Issue descriptionSpec here: https://lh3.googleusercontent.com/-2OxkdpF4_rI/V_LdCAxYTrI/AAAAAAAAPow/b_LAvtB-vCY984NaP5z2cCVe9b0ETwdsACL0B/h592/2016-10-03.png Focus painter similar to ImageButton::SetFocusPainter.
,
Oct 3 2016
Not sure I understood #1.
,
Oct 4 2016
we should be able to use a painter to make the painting code shared between all these controls, but the code for ToggleButton is going to just be a couple extra lines in ToggleButton::OnPaint (there's no need to allow for a settable focus painter a la ImageView).
,
Oct 4 2016
#3, that's precisely what I meant.
,
Oct 12 2016
,
Oct 24 2016
,
Nov 17 2016
Have a draft CL at https://codereview.chromium.org/2509943002.
,
Nov 17 2016
Another draft at https://codereview.chromium.org/2506133003.
,
Nov 19 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/9bd7f8c886e2b6131646b78d7598d2115894b385 commit 9bd7f8c886e2b6131646b78d7598d2115894b385 Author: varkha <varkha@chromium.org> Date: Sat Nov 19 02:33:43 2016 [ash-md] Allows ToggleButton to have a border and adds focus rectangle - Allows ToggleButton to accept a border set externally. - Allows ToggleButton to have a tooltip that includes ThumbView. - Adds TrayPopupUtils::CreateToggleButton to set up ToggleButtons for use in system menu. - Uses TrayPopupUtils::CreateToggleButton in IME, Bluetooth and Network pages. BUG= 652492 TEST=manual Bring focus using Tab to a toggle button in Network detailed page. (focus rectangle appears). Press Space (toggle switches) Press Enter (toggle switches) Tab (focus switches to the next row). Review-Url: https://codereview.chromium.org/2506133003 Cr-Commit-Position: refs/heads/master@{#433386} [modify] https://crrev.com/9bd7f8c886e2b6131646b78d7598d2115894b385/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc [modify] https://crrev.com/9bd7f8c886e2b6131646b78d7598d2115894b385/ash/common/system/chromeos/ime_menu/ime_list_view.cc [modify] https://crrev.com/9bd7f8c886e2b6131646b78d7598d2115894b385/ash/common/system/chromeos/network/network_list_md.cc [modify] https://crrev.com/9bd7f8c886e2b6131646b78d7598d2115894b385/ash/common/system/tray/tray_constants.cc [modify] https://crrev.com/9bd7f8c886e2b6131646b78d7598d2115894b385/ash/common/system/tray/tray_constants.h [modify] https://crrev.com/9bd7f8c886e2b6131646b78d7598d2115894b385/ash/common/system/tray/tray_popup_utils.cc [modify] https://crrev.com/9bd7f8c886e2b6131646b78d7598d2115894b385/ash/common/system/tray/tray_popup_utils.h [modify] https://crrev.com/9bd7f8c886e2b6131646b78d7598d2115894b385/ui/views/controls/button/toggle_button.cc [modify] https://crrev.com/9bd7f8c886e2b6131646b78d7598d2115894b385/ui/views/controls/button/toggle_button.h
,
Nov 19 2016
This was a visible change intended to go with other MD changes in M-56 Chrome OS system menu. Requesting a merge.
,
Nov 20 2016
Your change meets the bar and is auto-approved for M56 (branch: 2924)
,
Nov 21 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/7061f7f5af36c3d2647f7179a4567493a97648d0 commit 7061f7f5af36c3d2647f7179a4567493a97648d0 Author: Valery Arkhangorodsky <varkha@chromium.org> Date: Mon Nov 21 03:35:30 2016 [ash-md] Allows ToggleButton to have a border and adds focus rectangle - Allows ToggleButton to accept a border set externally. - Allows ToggleButton to have a tooltip that includes ThumbView. - Adds TrayPopupUtils::CreateToggleButton to set up ToggleButtons for use in system menu. - Uses TrayPopupUtils::CreateToggleButton in IME, Bluetooth and Network pages. BUG= 652492 TEST=manual Bring focus using Tab to a toggle button in Network detailed page. (focus rectangle appears). Press Space (toggle switches) Press Enter (toggle switches) Tab (focus switches to the next row). Review-Url: https://codereview.chromium.org/2506133003 Cr-Commit-Position: refs/heads/master@{#433386} (cherry picked from commit 9bd7f8c886e2b6131646b78d7598d2115894b385) Review URL: https://codereview.chromium.org/2520793002 . Cr-Commit-Position: refs/branch-heads/2924@{#17} Cr-Branched-From: 3a87aecc31cd1ffe751dd72c04e5a96a1fc8108a-refs/heads/master@{#433059} [modify] https://crrev.com/7061f7f5af36c3d2647f7179a4567493a97648d0/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc [modify] https://crrev.com/7061f7f5af36c3d2647f7179a4567493a97648d0/ash/common/system/chromeos/ime_menu/ime_list_view.cc [modify] https://crrev.com/7061f7f5af36c3d2647f7179a4567493a97648d0/ash/common/system/chromeos/network/network_list_md.cc [modify] https://crrev.com/7061f7f5af36c3d2647f7179a4567493a97648d0/ash/common/system/tray/tray_constants.cc [modify] https://crrev.com/7061f7f5af36c3d2647f7179a4567493a97648d0/ash/common/system/tray/tray_constants.h [modify] https://crrev.com/7061f7f5af36c3d2647f7179a4567493a97648d0/ash/common/system/tray/tray_popup_utils.cc [modify] https://crrev.com/7061f7f5af36c3d2647f7179a4567493a97648d0/ash/common/system/tray/tray_popup_utils.h [modify] https://crrev.com/7061f7f5af36c3d2647f7179a4567493a97648d0/ui/views/controls/button/toggle_button.cc [modify] https://crrev.com/7061f7f5af36c3d2647f7179a4567493a97648d0/ui/views/controls/button/toggle_button.h
,
Nov 21 2016
,
Mar 1 2017
|
||||||||||
►
Sign in to add a comment |
||||||||||
Comment 1 by varkha@chromium.org
, Oct 3 2016