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

Issue 1478303003: Converted all Views to use an InkDropDelegate instead of a InkDropAnimationController. (Closed)

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

Description

Converted all Views to use an InkDropDelegate instead of a InkDropAnimationController. An InkDropDelegate was introduced in https://codereview.chromium.org/1411833006/ but not all the Views were updated to use the InkDropDelegate instead of the InkDropAnimationController. This review is the follow up that updates all the Views to use the delegate instead of the controller. Committed: https://crrev.com/502a5c9660bfd1c2ac949e4388bc8697d06b5507 Cr-Commit-Position: refs/heads/master@{#366694}

Patch Set 1 #

Patch Set 2 : Fixed issue where the ACTIVATED state did not show up on the Back button. #

Patch Set 3 : Revereted any mouse event handling that was pushed in to CustomButton. #

Patch Set 4 : Fixed compile errors #

Total comments: 8

Patch Set 5 : Merge with master. #

Patch Set 6 : Moved some ripple controlling logic up the Button hierarchy. #

Total comments: 2

Patch Set 7 : Collapsed 'if' conditionals in to a single 'if' in ToolbarButton::OnMousePressed(). #

Total comments: 3

Patch Set 8 : Merged with master / https://codereview.chromium.org/1494433003. #

Total comments: 8

Patch Set 9 : Made the ripple animation triggered in CustomButton::NotifyClick() configurable. #

Patch Set 10 : Removed unnecessary include. #

Patch Set 11 : Added missing include. #

Total comments: 3

Patch Set 12 : Removed explicit deletes of the ink drop delegates. #

Total comments: 10

Patch Set 13 : Addressed pkasting@'s comments from patch set 12. #

Patch Set 14 : Merge with master. #

Total comments: 8

Patch Set 15 : Added TODO's to track adding an InkDropAction enum. #

Patch Set 16 : Removed CustomButton::set_ink_drop_action_on_click() method. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -352 lines) Patch
M chrome/browser/ui/views/bar_control_button.h View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/bar_control_button.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +9 lines, -63 lines 0 comments Download
M chrome/browser/ui/views/dropdown_bar_host.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/dropdown_bar_host.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +18 lines, -30 lines 0 comments Download
M chrome/browser/ui/views/dropdown_bar_host_delegate.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/dropdown_bar_view.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/dropdown_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +32 lines, -1 line 0 comments Download
M chrome/browser/ui/views/find_bar_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/app_menu_button.h View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/toolbar/app_menu_button.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +7 lines, -19 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_action_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_button.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +3 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_button.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +23 lines, -75 lines 0 comments Download
M ui/views/animation/button_ink_drop_delegate.cc View 1 2 3 4 2 chunks +7 lines, -4 lines 0 comments Download
M ui/views/animation/ink_drop_animation_controller_factory_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +10 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
D ui/views/animation/ink_drop_delegate_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -113 lines 0 comments Download
M ui/views/animation/test/test_ink_drop_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +6 lines, -2 lines 0 comments Download
M ui/views/animation/test/test_ink_drop_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +7 lines, -3 lines 0 comments Download
M ui/views/controls/button/custom_button.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +18 lines, -0 lines 0 comments Download
M ui/views/controls/button/custom_button.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +20 lines, -7 lines 0 comments Download
M ui/views/controls/button/menu_button.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 40 (11 generated)
bruthig
varkha@, can you please take a first look?
5 years ago (2015-11-27 20:49:30 UTC) #2
varkha
https://codereview.chromium.org/1478303003/diff/60001/chrome/browser/ui/views/bar_control_button.cc File chrome/browser/ui/views/bar_control_button.cc (right): https://codereview.chromium.org/1478303003/diff/60001/chrome/browser/ui/views/bar_control_button.cc#newcode91 chrome/browser/ui/views/bar_control_button.cc:91: ink_drop_delegate()->OnAction(views::InkDropState::HIDDEN); Just heads up. I think with https://codereview.chromium.org/1411523009/ this ...
5 years ago (2015-11-27 22:07:50 UTC) #3
bruthig
varkha@, can you PTAL for correctness? sadrul@ Please review changes in: - ui/views/* pkasting@ Please ...
5 years ago (2015-12-07 18:44:47 UTC) #5
varkha
I'll pull it to try locally. https://codereview.chromium.org/1478303003/diff/100001/chrome/browser/ui/views/toolbar/toolbar_button.cc File chrome/browser/ui/views/toolbar/toolbar_button.cc (right): https://codereview.chromium.org/1478303003/diff/100001/chrome/browser/ui/views/toolbar/toolbar_button.cc#newcode89 chrome/browser/ui/views/toolbar/toolbar_button.cc:89: if (IsTriggerableEvent(event)) { ...
5 years ago (2015-12-07 19:24:47 UTC) #8
bruthig
https://codereview.chromium.org/1478303003/diff/100001/chrome/browser/ui/views/toolbar/toolbar_button.cc File chrome/browser/ui/views/toolbar/toolbar_button.cc (right): https://codereview.chromium.org/1478303003/diff/100001/chrome/browser/ui/views/toolbar/toolbar_button.cc#newcode89 chrome/browser/ui/views/toolbar/toolbar_button.cc:89: if (IsTriggerableEvent(event)) { On 2015/12/07 19:24:47, varkha wrote: > ...
5 years ago (2015-12-07 19:39:03 UTC) #9
varkha
The change LG but I would probably wait for https://codereview.chromium.org/1494433003/ to land in order to ...
5 years ago (2015-12-07 19:50:13 UTC) #10
Peter Kasting
LGTM https://codereview.chromium.org/1478303003/diff/120001/chrome/browser/ui/views/bar_control_button.cc File chrome/browser/ui/views/bar_control_button.cc (right): https://codereview.chromium.org/1478303003/diff/120001/chrome/browser/ui/views/bar_control_button.cc#newcode24 chrome/browser/ui/views/bar_control_button.cc:24: SetInkDropDelegate(new_ink_drop_delegate.Pass()); Nit: Can this just be this?: SetInkDropDelegate( ...
5 years ago (2015-12-08 20:47:49 UTC) #11
varkha
https://codereview.chromium.org/1478303003/diff/120001/chrome/browser/ui/views/bar_control_button.cc File chrome/browser/ui/views/bar_control_button.cc (right): https://codereview.chromium.org/1478303003/diff/120001/chrome/browser/ui/views/bar_control_button.cc#newcode24 chrome/browser/ui/views/bar_control_button.cc:24: SetInkDropDelegate(new_ink_drop_delegate.Pass()); On 2015/12/08 20:47:49, Peter Kasting wrote: > Nit: ...
5 years ago (2015-12-08 21:25:31 UTC) #12
bruthig
varkha@ Please review merge with https://codereview.chromium.org/1494433003 sadrul@ Please review changes in: - ui/views/* https://codereview.chromium.org/1478303003/diff/120001/chrome/browser/ui/views/bar_control_button.cc File ...
5 years ago (2015-12-09 18:20:21 UTC) #13
varkha
https://codereview.chromium.org/1478303003/diff/140001/chrome/browser/ui/views/bar_control_button.h File chrome/browser/ui/views/bar_control_button.h (right): https://codereview.chromium.org/1478303003/diff/140001/chrome/browser/ui/views/bar_control_button.h#newcode45 chrome/browser/ui/views/bar_control_button.h:45: scoped_ptr<views::InkDropDelegate> ink_drop_delegate_; Do you need forward declaration for InkDropDelegate? ...
5 years ago (2015-12-09 21:23:36 UTC) #14
bruthig
varkha@, can you PTAL for correctness? sadrul@ Please review changes in: - ui/views/* pkasting@ Please ...
5 years ago (2015-12-11 22:09:46 UTC) #15
Peter Kasting
I reviewed the diff between patch set 7 (what I last reviewed) and the current ...
5 years ago (2015-12-12 01:56:19 UTC) #16
varkha
https://codereview.chromium.org/1478303003/diff/200001/chrome/browser/ui/views/bar_control_button.cc File chrome/browser/ui/views/bar_control_button.cc (right): https://codereview.chromium.org/1478303003/diff/200001/chrome/browser/ui/views/bar_control_button.cc#newcode38 chrome/browser/ui/views/bar_control_button.cc:38: ink_drop_delegate_.reset(); On 2015/12/12 01:56:18, Peter Kasting wrote: > I ...
5 years ago (2015-12-12 02:43:03 UTC) #17
Peter Kasting
https://codereview.chromium.org/1478303003/diff/200001/chrome/browser/ui/views/bar_control_button.cc File chrome/browser/ui/views/bar_control_button.cc (right): https://codereview.chromium.org/1478303003/diff/200001/chrome/browser/ui/views/bar_control_button.cc#newcode38 chrome/browser/ui/views/bar_control_button.cc:38: ink_drop_delegate_.reset(); On 2015/12/12 02:43:03, varkha wrote: > On 2015/12/12 ...
5 years ago (2015-12-12 02:46:09 UTC) #18
varkha
On 2015/12/12 02:46:09, Peter Kasting wrote: > https://codereview.chromium.org/1478303003/diff/200001/chrome/browser/ui/views/bar_control_button.cc > File chrome/browser/ui/views/bar_control_button.cc (right): > > https://codereview.chromium.org/1478303003/diff/200001/chrome/browser/ui/views/bar_control_button.cc#newcode38 ...
5 years ago (2015-12-12 02:53:06 UTC) #19
Peter Kasting
On 2015/12/12 02:53:06, varkha wrote: > On 2015/12/12 02:46:09, Peter Kasting wrote: > > > ...
5 years ago (2015-12-12 02:58:25 UTC) #20
varkha
On 2015/12/12 02:58:25, Peter Kasting wrote: > On 2015/12/12 02:53:06, varkha wrote: > > On ...
5 years ago (2015-12-12 03:09:26 UTC) #21
Peter Kasting
On 2015/12/12 03:09:26, varkha wrote: > On 2015/12/12 02:58:25, Peter Kasting wrote: > > On ...
5 years ago (2015-12-12 05:55:38 UTC) #22
bruthig
pkasting@, I've removed the explicit calls to destroy the InkDropDelegates. Review if you wish, but ...
5 years ago (2015-12-18 18:36:05 UTC) #25
Peter Kasting
LGTM https://codereview.chromium.org/1478303003/diff/260001/ui/views/animation/test/test_ink_drop_host.h File ui/views/animation/test/test_ink_drop_host.h (right): https://codereview.chromium.org/1478303003/diff/260001/ui/views/animation/test/test_ink_drop_host.h#newcode13 ui/views/animation/test/test_ink_drop_host.h:13: // A non-functional, implementation of an InkDropHost that ...
5 years ago (2015-12-18 18:44:03 UTC) #26
bruthig
I have addressed pkasting@'s nits from patch set 12. varkha@, I've removed ALL explicit calls ...
5 years ago (2015-12-21 16:54:34 UTC) #27
varkha
Still LGTM.
5 years ago (2015-12-21 18:37:31 UTC) #28
sadrul
https://codereview.chromium.org/1478303003/diff/300001/ui/views/controls/button/custom_button.cc File ui/views/controls/button/custom_button.cc (left): https://codereview.chromium.org/1478303003/diff/300001/ui/views/controls/button/custom_button.cc#oldcode62 ui/views/controls/button/custom_button.cc:62: } This looks like a good check to have. ...
5 years ago (2015-12-21 22:24:35 UTC) #29
bruthig
sadrul@, can you PTAL? https://codereview.chromium.org/1478303003/diff/300001/ui/views/controls/button/custom_button.cc File ui/views/controls/button/custom_button.cc (left): https://codereview.chromium.org/1478303003/diff/300001/ui/views/controls/button/custom_button.cc#oldcode62 ui/views/controls/button/custom_button.cc:62: } On 2015/12/21 22:24:35, sadrul ...
5 years ago (2015-12-22 16:49:18 UTC) #30
sadrul
lgtm https://codereview.chromium.org/1478303003/diff/300001/ui/views/controls/button/custom_button.h File ui/views/controls/button/custom_button.h (right): https://codereview.chromium.org/1478303003/diff/300001/ui/views/controls/button/custom_button.h#newcode130 ui/views/controls/button/custom_button.h:130: } On 2015/12/22 16:49:17, bruthig wrote: > On ...
5 years ago (2015-12-22 22:34:35 UTC) #31
bruthig
https://codereview.chromium.org/1478303003/diff/300001/ui/views/controls/button/custom_button.h File ui/views/controls/button/custom_button.h (right): https://codereview.chromium.org/1478303003/diff/300001/ui/views/controls/button/custom_button.h#newcode130 ui/views/controls/button/custom_button.h:130: } On 2015/12/22 22:34:35, sadrul (slow until new year) ...
5 years ago (2015-12-22 23:10:15 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1478303003/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1478303003/340001
5 years ago (2015-12-22 23:11:03 UTC) #35
commit-bot: I haz the power
Committed patchset #16 (id:340001)
5 years ago (2015-12-22 23:57:52 UTC) #37
commit-bot: I haz the power
5 years ago (2015-12-22 23:58:30 UTC) #39
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/502a5c9660bfd1c2ac949e4388bc8697d06b5507
Cr-Commit-Position: refs/heads/master@{#366694}

Powered by Google App Engine
This is Rietveld 408576698