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

Issue 2506133003: [ash-md] Allows ToggleButton to have a border and adds focus rectangle (Closed)

Created:
4 years, 1 month ago by varkha
Modified:
4 years, 1 month ago
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, tfarina, shuchen+watch_chromium.org, nona+watch_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[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). Committed: https://crrev.com/9bd7f8c886e2b6131646b78d7598d2115894b385 Cr-Commit-Position: refs/heads/master@{#433386}

Patch Set 1 #

Patch Set 2 : [ash-md] Allows ToggleButton to have a border and adds focus rectangle (rebase) #

Total comments: 12

Patch Set 3 : [ash-md] Allows ToggleButton to have a border and adds focus rectangle (comments) #

Total comments: 14

Patch Set 4 : [ash-md] Allows ToggleButton to have a border and adds focus rectangle (comments) #

Total comments: 2

Patch Set 5 : [ash-md] Allows ToggleButton to have a border and adds focus rectangle (comments) #

Patch Set 6 : [ash-md] Allows ToggleButton to have a border and adds focus rectangle (use GetContentBounds to cen… #

Total comments: 7

Patch Set 7 : [ash-md] Allows ToggleButton to have a border and adds focus rectangle (nits) #

Total comments: 2

Patch Set 8 : [ash-md] Allows ToggleButton to have a border and adds focus rectangle (nits) #

Total comments: 4

Patch Set 9 : [ash-md] Allows ToggleButton to have a border and adds focus rectangle (nits) #

Total comments: 10

Patch Set 10 : [ash-md] Allows ToggleButton to have a border and adds focus rectangle (nits) #

Patch Set 11 : [ash-md] Allows ToggleButton to have a border and adds focus rectangle (rebase) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -47 lines) Patch
M ash/common/system/chromeos/bluetooth/tray_bluetooth.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -7 lines 0 comments Download
M ash/common/system/chromeos/ime_menu/ime_list_view.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -5 lines 0 comments Download
M ash/common/system/chromeos/network/network_list_md.cc View 1 3 chunks +5 lines, -11 lines 0 comments Download
M ash/common/system/tray/tray_constants.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M ash/common/system/tray/tray_constants.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ash/common/system/tray/tray_popup_utils.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -0 lines 0 comments Download
M ash/common/system/tray/tray_popup_utils.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +21 lines, -0 lines 0 comments Download
M ui/views/controls/button/toggle_button.h View 1 2 3 4 5 6 7 8 9 4 chunks +18 lines, -4 lines 0 comments Download
M ui/views/controls/button/toggle_button.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +52 lines, -20 lines 0 comments Download

Messages

Total messages: 59 (29 generated)
varkha
estade@, tdanderson@, Please see if you like this better than https://codereview.chromium.org/2509943002/. I tried to simplify ...
4 years, 1 month ago (2016-11-17 07:15:13 UTC) #2
Evan Stade
sorry for not being clear in the other patch. I would like to implement the ...
4 years, 1 month ago (2016-11-17 19:01:19 UTC) #11
Evan Stade
https://codereview.chromium.org/2506133003/diff/20001/ui/views/controls/button/toggle_button.cc File ui/views/controls/button/toggle_button.cc (right): https://codereview.chromium.org/2506133003/diff/20001/ui/views/controls/button/toggle_button.cc#newcode56 ui/views/controls/button/toggle_button.cc:56: return parent_->GetTooltipText(p, tooltip); can't we just make this view ...
4 years, 1 month ago (2016-11-17 21:11:26 UTC) #12
varkha
Thanks estade@! I think I've addressed the comments, PTAL. +sadrul@ for OWNERS in ui/views/. https://codereview.chromium.org/2506133003/diff/20001/ui/views/controls/button/toggle_button.cc ...
4 years, 1 month ago (2016-11-17 22:24:57 UTC) #16
Evan Stade
https://codereview.chromium.org/2506133003/diff/40001/ash/common/system/tray/tray_popup_utils.cc File ash/common/system/tray/tray_popup_utils.cc (right): https://codereview.chromium.org/2506133003/diff/40001/ash/common/system/tray/tray_popup_utils.cc#newcode259 ash/common/system/tray/tray_popup_utils.cc:259: kFocusBorderColor, gfx::Insets(1))); insets should be gfx::Insets(0,0,1,1) (CreateSolidFocusPainter is broken ...
4 years, 1 month ago (2016-11-17 22:32:22 UTC) #17
varkha
https://codereview.chromium.org/2506133003/diff/40001/ash/common/system/tray/tray_popup_utils.cc File ash/common/system/tray/tray_popup_utils.cc (right): https://codereview.chromium.org/2506133003/diff/40001/ash/common/system/tray/tray_popup_utils.cc#newcode259 ash/common/system/tray/tray_popup_utils.cc:259: kFocusBorderColor, gfx::Insets(1))); On 2016/11/17 22:32:22, Evan Stade wrote: > ...
4 years, 1 month ago (2016-11-17 22:51:54 UTC) #18
Evan Stade
https://codereview.chromium.org/2506133003/diff/40001/ui/views/controls/button/toggle_button.cc File ui/views/controls/button/toggle_button.cc (right): https://codereview.chromium.org/2506133003/diff/40001/ui/views/controls/button/toggle_button.cc#newcode209 ui/views/controls/button/toggle_button.cc:209: gfx::ScopedCanvas scoped_canvas(canvas); On 2016/11/17 22:51:54, varkha wrote: > On ...
4 years, 1 month ago (2016-11-17 23:00:43 UTC) #22
varkha
https://codereview.chromium.org/2506133003/diff/40001/ui/views/controls/button/toggle_button.cc File ui/views/controls/button/toggle_button.cc (right): https://codereview.chromium.org/2506133003/diff/40001/ui/views/controls/button/toggle_button.cc#newcode209 ui/views/controls/button/toggle_button.cc:209: gfx::ScopedCanvas scoped_canvas(canvas); On 2016/11/17 23:00:43, Evan Stade wrote: > ...
4 years, 1 month ago (2016-11-17 23:18:11 UTC) #23
Evan Stade
lgtm https://codereview.chromium.org/2506133003/diff/100001/ash/common/system/tray/tray_constants.cc File ash/common/system/tray/tray_constants.cc (right): https://codereview.chromium.org/2506133003/diff/100001/ash/common/system/tray/tray_constants.cc#newcode59 ash/common/system/tray/tray_constants.cc:59: const int kTrayToggleButtonVerticalPadding = 13; can we calculate ...
4 years, 1 month ago (2016-11-17 23:24:37 UTC) #24
varkha
https://codereview.chromium.org/2506133003/diff/100001/ash/common/system/tray/tray_constants.cc File ash/common/system/tray/tray_constants.cc (right): https://codereview.chromium.org/2506133003/diff/100001/ash/common/system/tray/tray_constants.cc#newcode59 ash/common/system/tray/tray_constants.cc:59: const int kTrayToggleButtonVerticalPadding = 13; On 2016/11/17 23:24:36, Evan ...
4 years, 1 month ago (2016-11-17 23:40:51 UTC) #25
varkha
https://codereview.chromium.org/2506133003/diff/100001/ash/common/system/tray/tray_constants.cc File ash/common/system/tray/tray_constants.cc (right): https://codereview.chromium.org/2506133003/diff/100001/ash/common/system/tray/tray_constants.cc#newcode59 ash/common/system/tray/tray_constants.cc:59: const int kTrayToggleButtonVerticalPadding = 13; On 2016/11/17 23:40:51, varkha ...
4 years, 1 month ago (2016-11-18 00:00:34 UTC) #26
Evan Stade
https://codereview.chromium.org/2506133003/diff/100001/ash/common/system/tray/tray_constants.cc File ash/common/system/tray/tray_constants.cc (right): https://codereview.chromium.org/2506133003/diff/100001/ash/common/system/tray/tray_constants.cc#newcode59 ash/common/system/tray/tray_constants.cc:59: const int kTrayToggleButtonVerticalPadding = 13; On 2016/11/18 00:00:34, varkha ...
4 years, 1 month ago (2016-11-18 00:20:21 UTC) #27
varkha
https://codereview.chromium.org/2506133003/diff/100001/ash/common/system/tray/tray_constants.cc File ash/common/system/tray/tray_constants.cc (right): https://codereview.chromium.org/2506133003/diff/100001/ash/common/system/tray/tray_constants.cc#newcode59 ash/common/system/tray/tray_constants.cc:59: const int kTrayToggleButtonVerticalPadding = 13; On 2016/11/18 00:20:21, Evan ...
4 years, 1 month ago (2016-11-18 01:13:40 UTC) #28
tdanderson
LGTM with a nit and a question. https://codereview.chromium.org/2506133003/diff/140001/ash/common/system/tray/tray_constants.h File ash/common/system/tray/tray_constants.h (right): https://codereview.chromium.org/2506133003/diff/140001/ash/common/system/tray/tray_constants.h#newcode65 ash/common/system/tray/tray_constants.h:65: // The ...
4 years, 1 month ago (2016-11-18 01:46:50 UTC) #31
varkha
sadrul@, PTAL, hoping to land this before M-56 branches out. https://codereview.chromium.org/2506133003/diff/140001/ash/common/system/tray/tray_constants.h File ash/common/system/tray/tray_constants.h (right): https://codereview.chromium.org/2506133003/diff/140001/ash/common/system/tray/tray_constants.h#newcode65 ...
4 years, 1 month ago (2016-11-18 01:52:07 UTC) #32
Evan Stade
https://codereview.chromium.org/2506133003/diff/160001/ui/views/controls/button/toggle_button.cc File ui/views/controls/button/toggle_button.cc (right): https://codereview.chromium.org/2506133003/diff/160001/ui/views/controls/button/toggle_button.cc#newcode56 ui/views/controls/button/toggle_button.cc:56: // Make the thumb behave as part of the ...
4 years, 1 month ago (2016-11-18 14:29:06 UTC) #37
Evan Stade
https://codereview.chromium.org/2506133003/diff/160001/ui/views/controls/button/toggle_button.cc File ui/views/controls/button/toggle_button.cc (right): https://codereview.chromium.org/2506133003/diff/160001/ui/views/controls/button/toggle_button.cc#newcode56 ui/views/controls/button/toggle_button.cc:56: // Make the thumb behave as part of the ...
4 years, 1 month ago (2016-11-18 16:25:38 UTC) #38
sadrul
https://codereview.chromium.org/2506133003/diff/160001/ui/views/controls/button/toggle_button.cc File ui/views/controls/button/toggle_button.cc (right): https://codereview.chromium.org/2506133003/diff/160001/ui/views/controls/button/toggle_button.cc#newcode144 ui/views/controls/button/toggle_button.cc:144: void ToggleButton::set_focus_painter(std::unique_ptr<Painter> focus_painter) { Not sure if std::move is ...
4 years, 1 month ago (2016-11-18 16:37:30 UTC) #39
varkha
https://codereview.chromium.org/2506133003/diff/160001/ui/views/controls/button/toggle_button.cc File ui/views/controls/button/toggle_button.cc (right): https://codereview.chromium.org/2506133003/diff/160001/ui/views/controls/button/toggle_button.cc#newcode144 ui/views/controls/button/toggle_button.cc:144: void ToggleButton::set_focus_painter(std::unique_ptr<Painter> focus_painter) { On 2016/11/18 16:37:30, sadrul wrote: ...
4 years, 1 month ago (2016-11-18 16:55:35 UTC) #40
sadrul
lgtm
4 years, 1 month ago (2016-11-18 16:55:44 UTC) #41
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/2506133003/180001
4 years, 1 month ago (2016-11-18 16:56:49 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/108705) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 1 month ago (2016-11-18 17:00:13 UTC) #46
Evan Stade
https://codereview.chromium.org/2506133003/diff/160001/ui/views/controls/button/toggle_button.cc File ui/views/controls/button/toggle_button.cc (right): https://codereview.chromium.org/2506133003/diff/160001/ui/views/controls/button/toggle_button.cc#newcode144 ui/views/controls/button/toggle_button.cc:144: void ToggleButton::set_focus_painter(std::unique_ptr<Painter> focus_painter) { On 2016/11/18 16:55:35, varkha wrote: ...
4 years, 1 month ago (2016-11-18 17:10:42 UTC) #47
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/2506133003/200001
4 years, 1 month ago (2016-11-18 17:15:21 UTC) #50
sadrul
https://codereview.chromium.org/2506133003/diff/160001/ui/views/controls/button/toggle_button.cc File ui/views/controls/button/toggle_button.cc (right): https://codereview.chromium.org/2506133003/diff/160001/ui/views/controls/button/toggle_button.cc#newcode144 ui/views/controls/button/toggle_button.cc:144: void ToggleButton::set_focus_painter(std::unique_ptr<Painter> focus_painter) { On 2016/11/18 17:10:42, Evan Stade ...
4 years, 1 month ago (2016-11-18 17:22:46 UTC) #51
Evan Stade
On 2016/11/18 17:22:46, sadrul wrote: > https://codereview.chromium.org/2506133003/diff/160001/ui/views/controls/button/toggle_button.cc > File ui/views/controls/button/toggle_button.cc (right): > > https://codereview.chromium.org/2506133003/diff/160001/ui/views/controls/button/toggle_button.cc#newcode144 > ...
4 years, 1 month ago (2016-11-18 17:43:20 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/318152)
4 years, 1 month ago (2016-11-18 21:56:05 UTC) #54
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/2506133003/200001
4 years, 1 month ago (2016-11-18 23:53:59 UTC) #56
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 1 month ago (2016-11-19 02:34:14 UTC) #57
commit-bot: I haz the power
4 years, 1 month ago (2016-11-19 02:39:05 UTC) #59
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/9bd7f8c886e2b6131646b78d7598d2115894b385
Cr-Commit-Position: refs/heads/master@{#433386}

Powered by Google App Engine
This is Rietveld 408576698