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

Issue 2001843002: Use ink drop hover for focus states on toolbar buttons and location (Closed)

Created:
4 years, 7 months ago by Evan Stade
Modified:
4 years, 7 months ago
Reviewers:
sky, bruthig
CC:
chromium-reviews, tfarina, noyau+watch_chromium.org, bruthig+ink_drop_chromium.org, dcheng
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use ink drop hover for focus states on buttons. Remove the dashed border. Only button-style buttons (i.e. MdTextButton) retain the blue ring for focus, as per sgabriel's orders. BUG=591140 Committed: https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3 Cr-Commit-Position: refs/heads/master@{#396328}

Patch Set 1 #

Patch Set 2 : docs #

Patch Set 3 : checkpoint #

Patch Set 4 : fix tests #

Total comments: 1

Patch Set 5 : fix ash #

Patch Set 6 : bruthig review #

Patch Set 7 : format #

Total comments: 6

Patch Set 8 : review feedback and add test #

Total comments: 2

Patch Set 9 : remove embarassing debuggingl ine #

Total comments: 4

Patch Set 10 : layout #

Unified diffs Side-by-side diffs Delta from patch set Stats (+344 lines, -266 lines) Patch
M ash/system/toast/toast_overlay.cc View 1 2 3 4 1 chunk +3 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/bar_control_button.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/bar_control_button.cc View 1 2 3 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 1 2 3 4 chunks +6 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/download/download_item_view_md.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/bubble_icon_view.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/bubble_icon_view.cc View 1 2 3 7 chunks +19 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/toolbar/app_menu_button.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/toolbar/app_menu_button.cc View 1 2 3 2 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_action_view.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_action_view.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_action_view_unittest.cc View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_button.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_button.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M ui/views/animation/button_ink_drop_delegate.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/animation/button_ink_drop_delegate.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_delegate.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_factory.cc View 1 2 3 4 5 1 chunk +10 lines, -25 lines 0 comments Download
M ui/views/animation/ink_drop_host_view.h View 1 2 3 4 5 3 chunks +20 lines, -4 lines 0 comments Download
M ui/views/animation/ink_drop_host_view.cc View 1 2 3 4 5 6 7 5 chunks +28 lines, -2 lines 0 comments Download
M ui/views/animation/ink_drop_impl.h View 1 2 3 4 5 6 7 3 chunks +13 lines, -5 lines 0 comments Download
M ui/views/animation/ink_drop_impl.cc View 1 2 3 4 5 6 8 6 chunks +28 lines, -18 lines 0 comments Download
M ui/views/animation/ink_drop_impl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +24 lines, -0 lines 0 comments Download
M ui/views/animation/test/test_ink_drop_delegate.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/animation/test/test_ink_drop_delegate.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/controls/button/blue_button_unittest.cc View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M ui/views/controls/button/custom_button.h View 1 2 3 6 chunks +2 lines, -25 lines 0 comments Download
M ui/views/controls/button/custom_button.cc View 1 2 3 13 chunks +21 lines, -83 lines 0 comments Download
M ui/views/controls/button/custom_button_unittest.cc View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M ui/views/controls/button/label_button.cc View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M ui/views/controls/button/label_button_unittest.cc View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
M ui/views/controls/button/md_text_button.h View 1 2 3 2 chunks +11 lines, -1 line 0 comments Download
M ui/views/controls/button/md_text_button.cc View 1 2 3 4 5 6 7 8 9 6 chunks +68 lines, -3 lines 0 comments Download
M ui/views/controls/button/menu_button_unittest.cc View 1 2 3 5 chunks +36 lines, -32 lines 0 comments Download

Messages

Total messages: 47 (18 generated)
Evan Stade
4 years, 7 months ago (2016-05-20 21:59:35 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001843002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2001843002/20001
4 years, 7 months ago (2016-05-20 22:00:21 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/98321)
4 years, 7 months ago (2016-05-20 22:15:27 UTC) #6
Evan Stade
(you can hold off on reviewing, I have a different version coming up soon)
4 years, 7 months ago (2016-05-24 01:32:00 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001843002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2001843002/40001
4 years, 7 months ago (2016-05-24 01:52:49 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/205319) linux_chromium_chromeos_rel_ng on ...
4 years, 7 months ago (2016-05-24 02:09:54 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001843002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2001843002/60001
4 years, 7 months ago (2016-05-24 18:44:33 UTC) #14
Evan Stade
ptal https://codereview.chromium.org/2001843002/diff/60001/ui/views/animation/ink_drop_impl.cc File ui/views/animation/ink_drop_impl.cc (right): https://codereview.chromium.org/2001843002/diff/60001/ui/views/animation/ink_drop_impl.cc#newcode113 ui/views/animation/ink_drop_impl.cc:113: void InkDropImpl::SnapToHovered(bool is_hovered) { I specifically avoided turning ...
4 years, 7 months ago (2016-05-24 18:47:18 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/142472) chromeos_x86-generic_chromium_compile_only_ng on ...
4 years, 7 months ago (2016-05-24 18:57:32 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001843002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2001843002/80001
4 years, 7 months ago (2016-05-25 17:12:58 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/235346)
4 years, 7 months ago (2016-05-25 17:52:24 UTC) #21
bruthig
1.) [Discussed offline but summarized here] Can you introduce a Focus concept on InkDrop instead ...
4 years, 7 months ago (2016-05-25 18:46:37 UTC) #22
Evan Stade
On 2016/05/25 18:46:37, bruthig wrote: > 1.) [Discussed offline but summarized here] Can you introduce ...
4 years, 7 months ago (2016-05-25 19:21:17 UTC) #23
Evan Stade
OK, I believe I've resolved all 3 points of feedback. There are many more places ...
4 years, 7 months ago (2016-05-25 22:24:08 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001843002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2001843002/120001
4 years, 7 months ago (2016-05-25 22:24:58 UTC) #26
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-25 23:46:26 UTC) #28
commit-bot: I haz the power
Dry run: None
4 years, 7 months ago (2016-05-25 23:46:48 UTC) #29
bruthig
Overall looking good. Can you add some tests to ink_drop_impl_unittest.cc to verify the interplay between ...
4 years, 7 months ago (2016-05-26 00:40:52 UTC) #30
Evan Stade
test added https://codereview.chromium.org/2001843002/diff/120001/ui/views/animation/ink_drop_host_view.cc File ui/views/animation/ink_drop_host_view.cc (right): https://codereview.chromium.org/2001843002/diff/120001/ui/views/animation/ink_drop_host_view.cc#newcode48 ui/views/animation/ink_drop_host_view.cc:48: // No need to do anything when ...
4 years, 7 months ago (2016-05-26 18:45:01 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001843002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2001843002/140001
4 years, 7 months ago (2016-05-26 18:45:32 UTC) #33
commit-bot: I haz the power
Dry run: None
4 years, 7 months ago (2016-05-26 19:00:32 UTC) #34
bruthig
lgtm https://codereview.chromium.org/2001843002/diff/140001/ui/views/animation/ink_drop_impl.cc File ui/views/animation/ink_drop_impl.cc (right): https://codereview.chromium.org/2001843002/diff/140001/ui/views/animation/ink_drop_impl.cc#newcode115 ui/views/animation/ink_drop_impl.cc:115: NOTIMPLEMENTED() << " DAS BLUNT"; is this wanted?
4 years, 7 months ago (2016-05-26 19:04:36 UTC) #35
Evan Stade
+sky for ownership review https://codereview.chromium.org/2001843002/diff/140001/ui/views/animation/ink_drop_impl.cc File ui/views/animation/ink_drop_impl.cc (right): https://codereview.chromium.org/2001843002/diff/140001/ui/views/animation/ink_drop_impl.cc#newcode115 ui/views/animation/ink_drop_impl.cc:115: NOTIMPLEMENTED() << " DAS BLUNT"; ...
4 years, 7 months ago (2016-05-26 19:06:55 UTC) #37
sky
https://codereview.chromium.org/2001843002/diff/160001/ui/views/controls/button/md_text_button.cc File ui/views/controls/button/md_text_button.cc (right): https://codereview.chromium.org/2001843002/diff/160001/ui/views/controls/button/md_text_button.cc#newcode128 ui/views/controls/button/md_text_button.cc:128: void MdTextButton::Layout() { Don't you need to call LabelButton::Layout ...
4 years, 7 months ago (2016-05-26 21:13:01 UTC) #38
Evan Stade
https://codereview.chromium.org/2001843002/diff/160001/ui/views/controls/button/md_text_button.cc File ui/views/controls/button/md_text_button.cc (right): https://codereview.chromium.org/2001843002/diff/160001/ui/views/controls/button/md_text_button.cc#newcode128 ui/views/controls/button/md_text_button.cc:128: void MdTextButton::Layout() { On 2016/05/26 21:13:01, sky wrote: > ...
4 years, 7 months ago (2016-05-26 22:26:30 UTC) #39
sky
LGTM
4 years, 7 months ago (2016-05-26 22:45:18 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001843002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2001843002/180001
4 years, 7 months ago (2016-05-26 23:29:17 UTC) #43
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 7 months ago (2016-05-27 00:30:52 UTC) #45
commit-bot: I haz the power
4 years, 7 months ago (2016-05-27 00:32:01 UTC) #47
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/43b34ce93a59b52dfb0f5c125a12d66b299c36d3
Cr-Commit-Position: refs/heads/master@{#396328}

Powered by Google App Engine
This is Rietveld 408576698