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

Issue 1748903003: Resets hover state when ToolbarActionView is dragged (Closed)

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

Description

Resets hover state when ToolbarActionView is dragged HOVERED state is now reset when drag is started. The fix is similar to https://codereview.chromium.org/1517003002 BUG=590941 Committed: https://crrev.com/fb50932d80d11040f5637b17173c072a61d15f5a Cr-Commit-Position: refs/heads/master@{#378810}

Patch Set 1 #

Patch Set 2 : Resets hover state when ToolbarActionView is dragged (added a test) #

Total comments: 3

Patch Set 3 : Resets hover state when ToolbarActionView is dragged (hide set_dragged_view) #

Total comments: 5

Patch Set 4 : Resets hover state when ToolbarActionView is dragged (nit) #

Patch Set 5 : Resets hover or pressed state when CustomButton is dragged (MD and non-MD) #

Patch Set 6 : Resets hover or pressed state when CustomButton is dragged (MD only for now) #

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

Messages

Total messages: 49 (18 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1748903003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1748903003/20001
4 years, 9 months ago (2016-03-01 02:53:04 UTC) #2
varkha
rdevlin.cronin@chromium.org: Please review changes in chrome/browser/ui/views/toolbar/. sky@chromium.org: Please review a small change in ui/views/widget/widget.h to ...
4 years, 9 months ago (2016-03-01 02:54:55 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-01 03:42:52 UTC) #6
sky
https://codereview.chromium.org/1748903003/diff/20001/ui/views/widget/widget.h File ui/views/widget/widget.h (right): https://codereview.chromium.org/1748903003/diff/20001/ui/views/widget/widget.h#newcode600 ui/views/widget/widget.h:600: void set_dragged_view(View* dragged_view) { dragged_view_ = dragged_view; } Exposing ...
4 years, 9 months ago (2016-03-01 03:58:48 UTC) #7
varkha
https://codereview.chromium.org/1748903003/diff/20001/ui/views/widget/widget.h File ui/views/widget/widget.h (right): https://codereview.chromium.org/1748903003/diff/20001/ui/views/widget/widget.h#newcode600 ui/views/widget/widget.h:600: void set_dragged_view(View* dragged_view) { dragged_view_ = dragged_view; } On ...
4 years, 9 months ago (2016-03-01 04:03:34 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1748903003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1748903003/40001
4 years, 9 months ago (2016-03-01 04:58:45 UTC) #10
varkha
https://codereview.chromium.org/1748903003/diff/20001/ui/views/widget/widget.h File ui/views/widget/widget.h (right): https://codereview.chromium.org/1748903003/diff/20001/ui/views/widget/widget.h#newcode600 ui/views/widget/widget.h:600: void set_dragged_view(View* dragged_view) { dragged_view_ = dragged_view; } On ...
4 years, 9 months ago (2016-03-01 04:58:53 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-01 05:48:20 UTC) #13
Devlin
https://codereview.chromium.org/1748903003/diff/40001/chrome/browser/ui/views/toolbar/toolbar_action_view.cc File chrome/browser/ui/views/toolbar/toolbar_action_view.cc (right): https://codereview.chromium.org/1748903003/diff/40001/chrome/browser/ui/views/toolbar/toolbar_action_view.cc#newcode202 chrome/browser/ui/views/toolbar/toolbar_action_view.cc:202: void ToolbarActionView::OnMouseCaptureLost() { Why is this in ToolbarActionView instead ...
4 years, 9 months ago (2016-03-01 15:00:59 UTC) #14
varkha
estade@, can you comment here? I think we can simplify it by resetting state even ...
4 years, 9 months ago (2016-03-01 16:32:31 UTC) #16
sky
LGTM https://codereview.chromium.org/1748903003/diff/40001/ui/views/widget/widget.h File ui/views/widget/widget.h (right): https://codereview.chromium.org/1748903003/diff/40001/ui/views/widget/widget.h#newcode849 ui/views/widget/widget.h:849: void set_dragged_view(View* dragged_view) { dragged_view_ = dragged_view; } ...
4 years, 9 months ago (2016-03-01 17:24:48 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/1748903003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1748903003/60001
4 years, 9 months ago (2016-03-01 17:59:19 UTC) #19
varkha
I commented on the bug, seeking some feedback. My preference would be to remove the ...
4 years, 9 months ago (2016-03-01 18:00:05 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-01 18:44:03 UTC) #22
Evan Stade
https://codereview.chromium.org/1748903003/diff/40001/chrome/browser/ui/views/toolbar/toolbar_action_view.cc File chrome/browser/ui/views/toolbar/toolbar_action_view.cc (right): https://codereview.chromium.org/1748903003/diff/40001/chrome/browser/ui/views/toolbar/toolbar_action_view.cc#newcode202 chrome/browser/ui/views/toolbar/toolbar_action_view.cc:202: void ToolbarActionView::OnMouseCaptureLost() { On 2016/03/01 16:32:31, varkha wrote: > ...
4 years, 9 months ago (2016-03-01 21:01:17 UTC) #23
Devlin
On 2016/03/01 21:01:17, Evan Stade wrote: > https://codereview.chromium.org/1748903003/diff/40001/chrome/browser/ui/views/toolbar/toolbar_action_view.cc > File chrome/browser/ui/views/toolbar/toolbar_action_view.cc (right): > > https://codereview.chromium.org/1748903003/diff/40001/chrome/browser/ui/views/toolbar/toolbar_action_view.cc#newcode202 ...
4 years, 9 months ago (2016-03-01 21:03:38 UTC) #24
Evan Stade
On 2016/03/01 21:03:38, Devlin wrote: > On 2016/03/01 21:01:17, Evan Stade wrote: > > > ...
4 years, 9 months ago (2016-03-01 21:12:14 UTC) #25
varkha
We are not really dropping the pressed or hovered state, just resetting to NORMAL on ...
4 years, 9 months ago (2016-03-01 21:40:25 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1748903003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1748903003/100001
4 years, 9 months ago (2016-03-01 22:36:43 UTC) #29
varkha
sky@, I feel like you should have another look at this. The change is effectively ...
4 years, 9 months ago (2016-03-01 22:36:55 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1748903003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1748903003/120001
4 years, 9 months ago (2016-03-01 22:49:54 UTC) #33
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-01 23:45:21 UTC) #35
Devlin
Looks like you need fewer reviewers now (i.e., just sky@). :) That said, it looks ...
4 years, 9 months ago (2016-03-02 03:08:42 UTC) #36
sky
I tend to think removing the IsDrag conditional is right. That said, I'm not sure ...
4 years, 9 months ago (2016-03-02 03:48:28 UTC) #37
varkha
On 2016/03/02 03:48:28, sky wrote: > I tend to think removing the IsDrag conditional is ...
4 years, 9 months ago (2016-03-02 16:00:36 UTC) #39
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1748903003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1748903003/140001
4 years, 9 months ago (2016-03-02 16:00:58 UTC) #41
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-02 16:46:13 UTC) #43
sky
Ok, LGTM
4 years, 9 months ago (2016-03-02 18:52:20 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1748903003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1748903003/140001
4 years, 9 months ago (2016-03-02 20:04:57 UTC) #46
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years, 9 months ago (2016-03-02 20:10:24 UTC) #47
commit-bot: I haz the power
4 years, 9 months ago (2016-03-02 20:12:02 UTC) #49
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/fb50932d80d11040f5637b17173c072a61d15f5a
Cr-Commit-Position: refs/heads/master@{#378810}

Powered by Google App Engine
This is Rietveld 408576698