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

Issue 2665073002: Allow ripple hover/press effects to be more easily sized by subclasses. (Closed)

Created:
3 years, 10 months ago by Peter Kasting
Modified:
3 years, 10 months ago
Reviewers:
bruthig
CC:
chromium-reviews, tfarina, bruthig+ink_drop_chromium.org, dcheng
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow ripple hover/press effects to be more easily sized by subclasses. This will be useful in the harmony work, where we want icon buttons to have a ripple size that matches the button size, rather than using the fixed 24 px size. This also converts some consts to constexprs -- I needed to move one constant to the header for my default argument values, and having it constexpr and the things above it const looked weird. BUG=686962 TEST=none Review-Url: https://codereview.chromium.org/2665073002 Cr-Commit-Position: refs/heads/master@{#447178} Committed: https://chromium.googlesource.com/chromium/src/+/233a48eb42ca4b36a788c7d366a438ff4066015b

Patch Set 1 #

Total comments: 2

Patch Set 2 : Review comment, compile fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -21 lines) Patch
M ui/views/animation/ink_drop_host_view.h View 1 2 chunks +11 lines, -4 lines 0 comments Download
M ui/views/animation/ink_drop_host_view.cc View 1 3 chunks +12 lines, -17 lines 0 comments Download

Messages

Total messages: 14 (9 generated)
Peter Kasting
3 years, 10 months ago (2017-01-31 01:31:14 UTC) #2
bruthig
lgtm https://codereview.chromium.org/2665073002/diff/1/ui/views/animation/ink_drop_host_view.h File ui/views/animation/ink_drop_host_view.h (right): https://codereview.chromium.org/2665073002/diff/1/ui/views/animation/ink_drop_host_view.h#newcode61 ui/views/animation/ink_drop_host_view.h:61: static constexpr int kInkDropSize = 24; nit: Can ...
3 years, 10 months ago (2017-01-31 01:43:19 UTC) #5
Peter Kasting
https://codereview.chromium.org/2665073002/diff/1/ui/views/animation/ink_drop_host_view.h File ui/views/animation/ink_drop_host_view.h (right): https://codereview.chromium.org/2665073002/diff/1/ui/views/animation/ink_drop_host_view.h#newcode61 ui/views/animation/ink_drop_host_view.h:61: static constexpr int kInkDropSize = 24; On 2017/01/31 01:43:19, ...
3 years, 10 months ago (2017-01-31 02:13:51 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2665073002/20001
3 years, 10 months ago (2017-01-31 02:14:13 UTC) #11
commit-bot: I haz the power
3 years, 10 months ago (2017-01-31 03:37:35 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/233a48eb42ca4b36a788c7d366a4...

Powered by Google App Engine
This is Rietveld 408576698