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

Issue 1550443002: Pushed InkDropHost inheritence up to CustomButton. (Closed)

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

Description

Pushed InkDropHost inheritence up to CustomButton. A handful of CustomButton descendants inherited the InkDropHost interface and they all had the same function implementations. This changelist pushes the common functionality up in to CustomButton. TEST=Manual Committed: https://crrev.com/f8882433a6e62219aeecdd7654d3bcba2409f768 Cr-Commit-Position: refs/heads/master@{#368867}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Added default implementations of Add/RemoveInkDropLayer. #

Patch Set 3 : Fixed diff delta. #

Total comments: 2

Patch Set 4 : Fixed doc typo. #

Total comments: 2

Patch Set 5 : Merge with master. #

Patch Set 6 : Pushed default implementation of Add/RemoveInkDropLayer in to CustomButton. #

Patch Set 7 : Promoted Add/RemoveInkDropLayer from private to public. #

Patch Set 8 : Merge with master. #

Patch Set 9 : Fixed whitespace in toolbar_action_view.h #

Total comments: 1

Patch Set 10 : Merge with master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -106 lines) Patch
M chrome/browser/ui/views/bar_control_button.h View 1 2 3 4 5 3 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/ui/views/bar_control_button.cc View 1 2 3 4 5 1 chunk +0 lines, -19 lines 0 comments Download
M chrome/browser/ui/views/toolbar/app_menu_button.h View 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/toolbar/app_menu_button.cc View 1 2 3 4 5 1 chunk +2 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_action_view.h View 1 2 3 4 5 6 7 8 5 chunks +3 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_action_view.cc View 1 2 3 4 5 6 3 chunks +12 lines, -22 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_button.h View 1 2 3 4 4 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 2 chunks +12 lines, -22 lines 0 comments Download
M ui/views/animation/ink_drop_host.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/button/custom_button.h View 1 2 3 4 5 3 chunks +8 lines, -1 line 0 comments Download
M ui/views/controls/button/custom_button.cc View 1 2 3 4 5 6 7 8 9 1 chunk +20 lines, -0 lines 0 comments Download
M ui/views/controls/button/custom_button_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M ui/views/controls/button/image_button.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (8 generated)
bruthig
varkha@, Can you review all changes for correctness? sadrul@, Can you provide an OWNERs review ...
5 years ago (2015-12-23 20:05:12 UTC) #2
Peter Kasting
LGTM https://codereview.chromium.org/1550443002/diff/1/chrome/browser/ui/views/bar_control_button.h File chrome/browser/ui/views/bar_control_button.h (right): https://codereview.chromium.org/1550443002/diff/1/chrome/browser/ui/views/bar_control_button.h#newcode23 chrome/browser/ui/views/bar_control_button.h:23: class BarControlButton : public views::ImageButton { Does it ...
4 years, 12 months ago (2015-12-28 13:44:33 UTC) #5
varkha
lgtm
4 years, 12 months ago (2015-12-28 14:54:55 UTC) #6
bruthig
estade@, what are your thoughts regarding the BarControlButton class? https://codereview.chromium.org/1550443002/diff/1/chrome/browser/ui/views/bar_control_button.h File chrome/browser/ui/views/bar_control_button.h (right): https://codereview.chromium.org/1550443002/diff/1/chrome/browser/ui/views/bar_control_button.h#newcode23 chrome/browser/ui/views/bar_control_button.h:23: ...
4 years, 12 months ago (2015-12-28 17:36:16 UTC) #7
Peter Kasting
https://codereview.chromium.org/1550443002/diff/1/ui/views/controls/button/custom_button.cc File ui/views/controls/button/custom_button.cc (right): https://codereview.chromium.org/1550443002/diff/1/ui/views/controls/button/custom_button.cc#newcode338 ui/views/controls/button/custom_button.cc:338: void CustomButton::RemoveInkDropLayer(ui::Layer* ink_drop_layer) {} On 2015/12/28 17:36:16, bruthig wrote: ...
4 years, 12 months ago (2015-12-28 17:38:41 UTC) #8
bruthig
https://codereview.chromium.org/1550443002/diff/1/chrome/browser/ui/views/bar_control_button.h File chrome/browser/ui/views/bar_control_button.h (right): https://codereview.chromium.org/1550443002/diff/1/chrome/browser/ui/views/bar_control_button.h#newcode23 chrome/browser/ui/views/bar_control_button.h:23: class BarControlButton : public views::ImageButton { On 2015/12/28 17:36:16, ...
4 years, 12 months ago (2015-12-28 18:35:40 UTC) #9
Peter Kasting
https://codereview.chromium.org/1550443002/diff/1/chrome/browser/ui/views/bar_control_button.h File chrome/browser/ui/views/bar_control_button.h (right): https://codereview.chromium.org/1550443002/diff/1/chrome/browser/ui/views/bar_control_button.h#newcode23 chrome/browser/ui/views/bar_control_button.h:23: class BarControlButton : public views::ImageButton { On 2015/12/28 18:35:40, ...
4 years, 12 months ago (2015-12-28 18:38:02 UTC) #10
varkha
A small nit while you are at it. https://codereview.chromium.org/1550443002/diff/40001/ui/views/animation/ink_drop_host.h File ui/views/animation/ink_drop_host.h (right): https://codereview.chromium.org/1550443002/diff/40001/ui/views/animation/ink_drop_host.h#newcode30 ui/views/animation/ink_drop_host.h:30: // ...
4 years, 12 months ago (2015-12-28 19:06:30 UTC) #11
bruthig
https://codereview.chromium.org/1550443002/diff/40001/ui/views/animation/ink_drop_host.h File ui/views/animation/ink_drop_host.h (right): https://codereview.chromium.org/1550443002/diff/40001/ui/views/animation/ink_drop_host.h#newcode30 ui/views/animation/ink_drop_host.h:30: // Add the |ink_drop_layer| in to a visible layer ...
4 years, 12 months ago (2015-12-29 00:09:33 UTC) #12
Evan Stade
https://codereview.chromium.org/1550443002/diff/1/chrome/browser/ui/views/bar_control_button.h File chrome/browser/ui/views/bar_control_button.h (right): https://codereview.chromium.org/1550443002/diff/1/chrome/browser/ui/views/bar_control_button.h#newcode23 chrome/browser/ui/views/bar_control_button.h:23: class BarControlButton : public views::ImageButton { On 2015/12/28 17:36:16, ...
4 years, 11 months ago (2015-12-29 19:20:36 UTC) #14
Evan Stade
https://codereview.chromium.org/1550443002/diff/60001/ui/views/animation/ink_drop_host.cc File ui/views/animation/ink_drop_host.cc (right): https://codereview.chromium.org/1550443002/diff/60001/ui/views/animation/ink_drop_host.cc#newcode15 ui/views/animation/ink_drop_host.cc:15: void InkDropHost::RemoveInkDropLayer(ui::Layer* ink_drop_layer) {} p.s. why did you add ...
4 years, 11 months ago (2015-12-29 23:03:37 UTC) #15
Evan Stade
https://codereview.chromium.org/1550443002/diff/60001/ui/views/animation/ink_drop_host.cc File ui/views/animation/ink_drop_host.cc (right): https://codereview.chromium.org/1550443002/diff/60001/ui/views/animation/ink_drop_host.cc#newcode15 ui/views/animation/ink_drop_host.cc:15: void InkDropHost::RemoveInkDropLayer(ui::Layer* ink_drop_layer) {} On 2015/12/29 23:03:37, Evan Stade ...
4 years, 11 months ago (2015-12-29 23:06:56 UTC) #16
sadrul
I don't think we should do this. CustomButton shouldn't be an InkDropHost if it doesn't ...
4 years, 11 months ago (2016-01-04 19:24:32 UTC) #17
sadrul
On 2016/01/04 19:24:32, sadrul wrote: > I don't think we should do this. CustomButton shouldn't ...
4 years, 11 months ago (2016-01-04 19:37:07 UTC) #18
bruthig
I've added a default implementation of Add/RemoveInkDropLayer to CustomButton. sadrul@, varkha@, can you take a ...
4 years, 11 months ago (2016-01-06 16:36:20 UTC) #19
sadrul
https://codereview.chromium.org/1550443002/diff/160001/ui/views/controls/button/custom_button.cc File ui/views/controls/button/custom_button.cc (right): https://codereview.chromium.org/1550443002/diff/160001/ui/views/controls/button/custom_button.cc#newcode338 ui/views/controls/button/custom_button.cc:338: SetFillsBoundsOpaquely(false); It shouldn't happen here. At most, this should ...
4 years, 11 months ago (2016-01-06 19:18:45 UTC) #20
bruthig
Ping, sadrul@
4 years, 11 months ago (2016-01-11 15:34:14 UTC) #21
sadrul
lgtm
4 years, 11 months ago (2016-01-12 02:04:38 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1550443002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1550443002/180001
4 years, 11 months ago (2016-01-12 13:26:36 UTC) #25
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 11 months ago (2016-01-12 14:08:02 UTC) #27
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/views/toolbar/toolbar_button.cc: While running git apply --index -3 -p1; error: patch ...
4 years, 11 months ago (2016-01-12 14:08:23 UTC) #28
commit-bot: I haz the power
4 years, 11 months ago (2016-01-12 14:09:29 UTC) #30
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/f8882433a6e62219aeecdd7654d3bcba2409f768
Cr-Commit-Position: refs/heads/master@{#368867}

Powered by Google App Engine
This is Rietveld 408576698