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

Issue 1373983002: Enhanced the InkDropRippleImpl to create/destroy InkDropAnimations as needed. (Closed)

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

Description

Enhanced the InkDropRippleImpl to create/destroy InkDropAnimations as needed. NOTE: This is based on the CL here: https://codereview.chromium.org/1369393002/ Before this CL InkDropAnimations were created lazily and never destroyed or released until the ripple owner was destroyed. This change adds the necessary events required to destroy an InkDropAnimation when it becomes hidden. BUG=522175, 537614 Committed: https://crrev.com/09219a0b1d34102258dfc0d43d3f0bfdaedb1d3b Cr-Commit-Position: refs/heads/master@{#353906}

Patch Set 1 #

Patch Set 2 : Fixed typo and added dummy fall through return statements. #

Patch Set 3 : Reworked patch to use new LayerAnimationObserver::OnAnimationStarted() event. #

Total comments: 4

Patch Set 4 : Removed unneccessary 'return' from ToolbarButton::OnMouseReleased(). #

Patch Set 5 : Based diff delta on dependant branch. #

Total comments: 32

Patch Set 6 : Addressed concerns from patch set 5. #

Patch Set 7 : Based diff delta on dependant branch. #

Patch Set 8 : Updated InkDropAnimationTests. #

Patch Set 9 : Fixed merge with master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+336 lines, -66 lines) Patch
M chrome/browser/ui/views/toolbar/toolbar_button.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/animation/ink_drop_animation.h View 1 2 3 4 5 6 chunks +38 lines, -4 lines 0 comments Download
M ui/views/animation/ink_drop_animation.cc View 1 2 3 4 5 7 chunks +97 lines, -34 lines 0 comments Download
M ui/views/animation/ink_drop_animation_controller.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/animation/ink_drop_animation_controller_impl.h View 1 2 3 4 5 4 chunks +14 lines, -4 lines 0 comments Download
M ui/views/animation/ink_drop_animation_controller_impl.cc View 1 2 3 4 5 3 chunks +41 lines, -13 lines 0 comments Download
A ui/views/animation/ink_drop_animation_observer.h View 1 2 3 4 5 1 chunk +57 lines, -0 lines 0 comments Download
A ui/views/animation/ink_drop_animation_observer.cc View 1 2 3 4 5 1 chunk +27 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_animation_unittest.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -3 lines 0 comments Download
M ui/views/animation/ink_drop_state.h View 1 2 3 4 5 2 chunks +13 lines, -5 lines 0 comments Download
A ui/views/animation/ink_drop_state.cc View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (10 generated)
bruthig
varkha@, just an FYI at this point but, this CL lays the groundwork to add/destroy ...
5 years, 2 months ago (2015-09-28 20:32:53 UTC) #2
bruthig
pkasting@chromium.org: Please review changes in - chrome/browser/ui/views/toolbar/toolbar_button.cc sadrul@chromium.org: Please review changes in - ui/views/*
5 years, 2 months ago (2015-10-05 20:56:24 UTC) #4
Peter Kasting
https://codereview.chromium.org/1373983002/diff/40001/chrome/browser/ui/views/toolbar/toolbar_button.cc File chrome/browser/ui/views/toolbar/toolbar_button.cc (right): https://codereview.chromium.org/1373983002/diff/40001/chrome/browser/ui/views/toolbar/toolbar_button.cc#newcode40 chrome/browser/ui/views/toolbar/toolbar_button.cc:40: const int kInkDropSmallCornerRadius = 2; Is there some way ...
5 years, 2 months ago (2015-10-05 21:01:54 UTC) #5
bruthig
pkasting@, Can you PTAL? https://codereview.chromium.org/1373983002/diff/40001/chrome/browser/ui/views/toolbar/toolbar_button.cc File chrome/browser/ui/views/toolbar/toolbar_button.cc (right): https://codereview.chromium.org/1373983002/diff/40001/chrome/browser/ui/views/toolbar/toolbar_button.cc#newcode40 chrome/browser/ui/views/toolbar/toolbar_button.cc:40: const int kInkDropSmallCornerRadius = 2; ...
5 years, 2 months ago (2015-10-06 15:31:38 UTC) #6
varkha
A few nits. https://codereview.chromium.org/1373983002/diff/80001/ui/views/animation/ink_drop_animation.cc File ui/views/animation/ink_drop_animation.cc (right): https://codereview.chromium.org/1373983002/diff/80001/ui/views/animation/ink_drop_animation.cc#newcode267 ui/views/animation/ink_drop_animation.cc:267: if (!observers_.HasObserver(observer)) When is this the ...
5 years, 2 months ago (2015-10-06 20:58:38 UTC) #7
Peter Kasting
LGTM
5 years, 2 months ago (2015-10-06 21:50:24 UTC) #8
sadrul
https://codereview.chromium.org/1373983002/diff/80001/ui/views/animation/ink_drop_animation.cc File ui/views/animation/ink_drop_animation.cc (right): https://codereview.chromium.org/1373983002/diff/80001/ui/views/animation/ink_drop_animation.cc#newcode267 ui/views/animation/ink_drop_animation.cc:267: if (!observers_.HasObserver(observer)) On 2015/10/06 20:58:38, varkha wrote: > When ...
5 years, 2 months ago (2015-10-08 01:06:01 UTC) #9
bruthig
sadrul@, varkha@, can you PTAL? https://codereview.chromium.org/1373983002/diff/80001/ui/views/animation/ink_drop_animation.cc File ui/views/animation/ink_drop_animation.cc (right): https://codereview.chromium.org/1373983002/diff/80001/ui/views/animation/ink_drop_animation.cc#newcode267 ui/views/animation/ink_drop_animation.cc:267: if (!observers_.HasObserver(observer)) On 2015/10/08 ...
5 years, 2 months ago (2015-10-08 21:42:55 UTC) #10
sadrul
lgtm https://codereview.chromium.org/1373983002/diff/80001/ui/views/animation/ink_drop_animation.cc File ui/views/animation/ink_drop_animation.cc (right): https://codereview.chromium.org/1373983002/diff/80001/ui/views/animation/ink_drop_animation.cc#newcode534 ui/views/animation/ink_drop_animation.cc:534: observer.aborted_count() On 2015/10/08 21:42:55, bruthig wrote: > On ...
5 years, 2 months ago (2015-10-09 20:36:27 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1373983002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1373983002/120001
5 years, 2 months ago (2015-10-13 21:31:09 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/74662) linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 2 months ago (2015-10-13 22:12:26 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1373983002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1373983002/140001
5 years, 2 months ago (2015-10-13 22:18:36 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/109610) mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 2 months ago (2015-10-13 22:28:43 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1373983002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1373983002/160001
5 years, 2 months ago (2015-10-13 22:34:59 UTC) #24
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 2 months ago (2015-10-13 23:40:21 UTC) #25
commit-bot: I haz the power
5 years, 2 months ago (2015-10-13 23:42:13 UTC) #26
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/09219a0b1d34102258dfc0d43d3f0bfdaedb1d3b
Cr-Commit-Position: refs/heads/master@{#353906}

Powered by Google App Engine
This is Rietveld 408576698