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

Issue 1517003002: Fixes stale hover or ink ripple visuals when dragging over extension buttons (Closed)

Created:
5 years ago by varkha
Modified:
4 years, 11 months ago
Reviewers:
Devlin, sky, bruthig
CC:
chromium-reviews, tfarina, tdanderson
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixes stale hover / ink ripple when dragging over extension buttons BUG=568436 TEST= Install at least 2 extensions Move their icons to overflow Chrome menu Open the chrome menu, Position the mouse cursor to the left of the leftmost extension button Hold down the left mouse button Move the cursor over the extension buttons Only a single extension icon should have ink ripple BUG=564941 TEST= Drag an extension button. ink drop should disappear when drag starts. Committed: https://crrev.com/a431b315b4805f8d87df83e79ca8e59a0123b030 Cr-Commit-Position: refs/heads/master@{#368105}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixes stale hover or ink ripple visuals when dragging over extension buttons (for all buttons) #

Patch Set 3 : Fixes stale hover or ink ripple visuals when dragging over extension buttons (adds test) #

Total comments: 2

Patch Set 4 : Fixes stale hover or ink ripple visuals when dragging over extension buttons (moved the test to cus… #

Total comments: 7

Patch Set 5 : Fixes stale hover or ink ripple visuals when dragging over extension buttons (nits) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -7 lines) Patch
M ui/views/controls/button/custom_button.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/controls/button/custom_button_unittest.cc View 1 2 3 4 5 chunks +119 lines, -7 lines 0 comments Download

Messages

Total messages: 34 (12 generated)
varkha
rdevlin.cronin@, can you please take a look? Thanks! This solution should work because capture lost ...
5 years ago (2015-12-10 22:06:56 UTC) #2
Devlin
https://codereview.chromium.org/1517003002/diff/1/chrome/browser/ui/views/toolbar/toolbar_action_view.cc File chrome/browser/ui/views/toolbar/toolbar_action_view.cc (right): https://codereview.chromium.org/1517003002/diff/1/chrome/browser/ui/views/toolbar/toolbar_action_view.cc#newcode235 chrome/browser/ui/views/toolbar/toolbar_action_view.cc:235: ink_drop_delegate()->OnAction(views::InkDropState::HIDDEN); Why are these in ToolbarActionView, instead of CustomButton? ...
5 years ago (2015-12-10 22:18:23 UTC) #3
varkha
Yes, I think we can make this apply to all buttons, I just didn't know ...
5 years ago (2015-12-11 02:09:44 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1517003002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1517003002/20001
5 years ago (2015-12-11 02:18:43 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-11 03:16:59 UTC) #9
Devlin
I'm not an OWNER in ui/views, so passing it over to Sky. That said, I ...
5 years ago (2015-12-11 18:03:18 UTC) #11
sky
I agree, please add test coverage. Are there other views that need to be updated ...
5 years ago (2015-12-11 18:38:51 UTC) #12
varkha
bruthig@, can you please take a first look at a unit test for basic ripple ...
4 years, 11 months ago (2016-01-04 20:41:53 UTC) #14
bruthig
As discussed offline these tests probably should live in custom_button_unittest.cc. https://codereview.chromium.org/1517003002/diff/40001/ui/views/animation/ink_drop_delegate_unittest.cc File ui/views/animation/ink_drop_delegate_unittest.cc (right): https://codereview.chromium.org/1517003002/diff/40001/ui/views/animation/ink_drop_delegate_unittest.cc#newcode107 ...
4 years, 11 months ago (2016-01-06 22:46:00 UTC) #15
varkha
> these tests probably should live in custom_button_unittest.cc. Done, PTAL. https://codereview.chromium.org/1517003002/diff/40001/ui/views/animation/ink_drop_delegate_unittest.cc File ui/views/animation/ink_drop_delegate_unittest.cc (right): https://codereview.chromium.org/1517003002/diff/40001/ui/views/animation/ink_drop_delegate_unittest.cc#newcode107 ...
4 years, 11 months ago (2016-01-07 01:37:37 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1517003002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1517003002/60001
4 years, 11 months ago (2016-01-07 01:38:25 UTC) #18
varkha
https://codereview.chromium.org/1517003002/diff/60001/ui/views/controls/button/custom_button_unittest.cc File ui/views/controls/button/custom_button_unittest.cc (left): https://codereview.chromium.org/1517003002/diff/60001/ui/views/controls/button/custom_button_unittest.cc#oldcode109 ui/views/controls/button/custom_button_unittest.cc:109: widget_->SetBounds(widget_bounds); This code made sense in the original first ...
4 years, 11 months ago (2016-01-07 01:40:35 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-07 02:17:44 UTC) #21
sky
On 2015/12/11 18:38:51, sky wrote: > I agree, please add test coverage. Are there other ...
4 years, 11 months ago (2016-01-07 16:10:50 UTC) #22
varkha
On 2016/01/07 16:10:50, sky wrote: > On 2015/12/11 18:38:51, sky wrote: > > I agree, ...
4 years, 11 months ago (2016-01-07 16:15:42 UTC) #23
sky
Ok, LGTM
4 years, 11 months ago (2016-01-07 16:42:20 UTC) #24
bruthig
Some minor considerations, otherwise lgtm https://codereview.chromium.org/1517003002/diff/60001/ui/views/controls/button/custom_button_unittest.cc File ui/views/controls/button/custom_button_unittest.cc (right): https://codereview.chromium.org/1517003002/diff/60001/ui/views/controls/button/custom_button_unittest.cc#newcode90 ui/views/controls/button/custom_button_unittest.cc:90: // An InkDropDelegate that ...
4 years, 11 months ago (2016-01-07 16:55:09 UTC) #25
varkha
https://codereview.chromium.org/1517003002/diff/60001/ui/views/controls/button/custom_button_unittest.cc File ui/views/controls/button/custom_button_unittest.cc (right): https://codereview.chromium.org/1517003002/diff/60001/ui/views/controls/button/custom_button_unittest.cc#newcode90 ui/views/controls/button/custom_button_unittest.cc:90: // An InkDropDelegate that keeps track of order of ...
4 years, 11 months ago (2016-01-07 17:06:39 UTC) #26
bruthig
Awesome, thx. Still LGTM
4 years, 11 months ago (2016-01-07 17:08:08 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1517003002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1517003002/80001
4 years, 11 months ago (2016-01-07 17:08:28 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 11 months ago (2016-01-07 18:11:41 UTC) #32
commit-bot: I haz the power
4 years, 11 months ago (2016-01-07 18:12:21 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a431b315b4805f8d87df83e79ca8e59a0123b030
Cr-Commit-Position: refs/heads/master@{#368105}

Powered by Google App Engine
This is Rietveld 408576698