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

Issue 1298513003: Implemented prototype for new ink drop specs. (Closed)

Created:
5 years, 4 months ago by bruthig
Modified:
5 years, 3 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

Implemented prototype for new ink drop specs. - Updated the InkDropAnimation to composite 2 rectangles and 4 circles to smoothly animate between a circle and a rounded rectangle of different sizes. - Created a new InkDropHost that Views can extend in order to host the ink drop animation. - Updated the ToolbarButtons to work with the new InkDropAnimation API. - Added SLOW_ACTION_PENDING and DEACTIVATED InkDropStates. TEST=InkDropAnimationTest.* TEST=InkDropAnimationControllerFactoryTest.* TEST=MDInkDropAnimationControllerFactoryTest.* BUG=517903, 522170 Committed: https://crrev.com/8e8496ec69c203243767cec3014cd7232909e805 Cr-Commit-Position: refs/heads/master@{#349100}

Patch Set 1 #

Patch Set 2 : Working prototype. #

Total comments: 51

Patch Set 3 : Merge with changes to https://codereview.chromium.org/1286693004/ . #

Patch Set 4 : Addressed most concerns from patch set 2. #

Total comments: 4

Patch Set 5 : Merge with 'master'. #

Patch Set 6 : Added some unit tests and fixed bugs accordingly. #

Patch Set 7 : Addressed outstanding concerns and improved documentation. #

Total comments: 16

Patch Set 8 : Merged with master. #

Patch Set 9 : Addressed concerns from patch set 7. #

Total comments: 8

Patch Set 10 : Addressed pkasting@'s nits from patch set 9. #

Total comments: 39

Patch Set 11 : Addressed comments from patch set 10. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1271 lines, -550 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 1 chunk +0 lines, -12 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -13 lines 0 comments Download
M chrome/browser/ui/views/toolbar/back_button.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/toolbar/back_button.cc View 1 2 3 4 5 6 7 8 1 chunk +2 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 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_button.cc View 1 2 3 4 5 6 7 8 9 5 chunks +46 lines, -25 lines 0 comments Download
M ui/base/ui_base_switches.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M ui/base/ui_base_switches.cc View 1 2 3 4 1 chunk +0 lines, -9 lines 0 comments Download
M ui/views/animation/ink_drop_animation.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +116 lines, -63 lines 0 comments Download
M ui/views/animation/ink_drop_animation.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +374 lines, -238 lines 0 comments Download
M ui/views/animation/ink_drop_animation_controller.h View 1 2 3 4 5 6 1 chunk +16 lines, -13 lines 0 comments Download
M ui/views/animation/ink_drop_animation_controller_factory.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -2 lines 0 comments Download
M ui/views/animation/ink_drop_animation_controller_factory.cc View 1 2 3 4 5 6 2 chunks +25 lines, -20 lines 0 comments Download
A ui/views/animation/ink_drop_animation_controller_factory_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +163 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_animation_controller_impl.h View 1 2 3 4 5 6 2 chunks +30 lines, -8 lines 0 comments Download
M ui/views/animation/ink_drop_animation_controller_impl.cc View 1 2 3 4 5 1 chunk +51 lines, -15 lines 0 comments Download
A ui/views/animation/ink_drop_animation_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +301 lines, -0 lines 0 comments Download
D ui/views/animation/ink_drop_delegate.h View 1 1 chunk +0 lines, -60 lines 0 comments Download
D ui/views/animation/ink_drop_delegate.cc View 1 chunk +0 lines, -53 lines 0 comments Download
M ui/views/animation/ink_drop_state.h View 1 2 3 1 chunk +11 lines, -5 lines 0 comments Download
A ui/views/animation/test/ink_drop_animation_test_api.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +41 lines, -0 lines 0 comments Download
A ui/views/animation/test/ink_drop_animation_test_api.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +31 lines, -0 lines 0 comments Download
A ui/views/animation/test/test_ink_drop_host.h View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
A ui/views/animation/test/test_ink_drop_host.cc View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 6 3 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (4 generated)
bruthig
tdanderson@, jonross@, can you guys PTAL?
5 years, 4 months ago (2015-08-19 20:51:40 UTC) #2
tdanderson
Looks good to me as a first draft. https://chromiumcodereview.appspot.com/1298513003/diff/20001/chrome/browser/ui/views/toolbar/toolbar_button.cc File chrome/browser/ui/views/toolbar/toolbar_button.cc (right): https://chromiumcodereview.appspot.com/1298513003/diff/20001/chrome/browser/ui/views/toolbar/toolbar_button.cc#newcode102 chrome/browser/ui/views/toolbar/toolbar_button.cc:102: // ...
5 years, 4 months ago (2015-08-19 22:11:19 UTC) #3
jonross
https://codereview.chromium.org/1298513003/diff/20001/chrome/browser/ui/views/toolbar/toolbar_button.cc File chrome/browser/ui/views/toolbar/toolbar_button.cc (right): https://codereview.chromium.org/1298513003/diff/20001/chrome/browser/ui/views/toolbar/toolbar_button.cc#newcode103 chrome/browser/ui/views/toolbar/toolbar_button.cc:103: if (event.IsLeftMouseButton() || event.IsMiddleMouseButton()) { Do you need to ...
5 years, 4 months ago (2015-08-19 22:13:36 UTC) #4
bruthig
I've addressed all comments except requests for documentation. I plan on doing one more pass ...
5 years, 4 months ago (2015-08-20 20:35:36 UTC) #5
jonross
https://codereview.chromium.org/1298513003/diff/20001/chrome/browser/ui/views/toolbar/toolbar_button.cc File chrome/browser/ui/views/toolbar/toolbar_button.cc (right): https://codereview.chromium.org/1298513003/diff/20001/chrome/browser/ui/views/toolbar/toolbar_button.cc#newcode103 chrome/browser/ui/views/toolbar/toolbar_button.cc:103: if (event.IsLeftMouseButton() || event.IsMiddleMouseButton()) { On 2015/08/20 20:35:35, bruthig ...
5 years, 4 months ago (2015-08-21 15:14:49 UTC) #6
bruthig
jonross@/tdanderson@: An you please take a look from a feature correctness perspective. pkasting@: Can you ...
5 years, 3 months ago (2015-09-03 21:21:05 UTC) #8
Peter Kasting
https://codereview.chromium.org/1298513003/diff/120001/chrome/browser/ui/views/toolbar/back_button.cc File chrome/browser/ui/views/toolbar/back_button.cc (right): https://codereview.chromium.org/1298513003/diff/120001/chrome/browser/ui/views/toolbar/back_button.cc#newcode36 chrome/browser/ui/views/toolbar/back_button.cc:36: ToolbarButton::LayoutInkDrop(); As a reader I'm unsure whether this line ...
5 years, 3 months ago (2015-09-03 21:53:06 UTC) #9
bruthig
I've addressed pkasting@'s concerns from patch set 7. pkasting@: Can you please review changes in: ...
5 years, 3 months ago (2015-09-09 18:00:36 UTC) #10
Peter Kasting
LGTM https://codereview.chromium.org/1298513003/diff/160001/chrome/browser/ui/views/toolbar/toolbar_button.cc File chrome/browser/ui/views/toolbar/toolbar_button.cc (right): https://codereview.chromium.org/1298513003/diff/160001/chrome/browser/ui/views/toolbar/toolbar_button.cc#newcode303 chrome/browser/ui/views/toolbar/toolbar_button.cc:303: views::MenuRunner::RunResult result = views::MenuRunner::MENU_DELETED; Nit: For clarity, I'd ...
5 years, 3 months ago (2015-09-09 22:50:46 UTC) #11
bruthig
I have addressed pkasting@'s nits from patch set 9 and updated the CL description. pkasting@: ...
5 years, 3 months ago (2015-09-10 14:57:39 UTC) #12
jonross
On 2015/09/10 14:57:39, bruthig wrote: > I have addressed pkasting@'s nits from patch set 9 ...
5 years, 3 months ago (2015-09-10 14:58:57 UTC) #13
tdanderson
LGTM with two nits https://chromiumcodereview.appspot.com/1298513003/diff/180001/ui/views/animation/ink_drop_animation.h File ui/views/animation/ink_drop_animation.h (right): https://chromiumcodereview.appspot.com/1298513003/diff/180001/ui/views/animation/ink_drop_animation.h#newcode85 ui/views/animation/ink_drop_animation.h:85: // Resets the Transforms on ...
5 years, 3 months ago (2015-09-10 15:37:51 UTC) #14
sadrul
https://codereview.chromium.org/1298513003/diff/180001/ui/views/animation/ink_drop_animation.cc File ui/views/animation/ink_drop_animation.cc (right): https://codereview.chromium.org/1298513003/diff/180001/ui/views/animation/ink_drop_animation.cc#newcode134 ui/views/animation/ink_drop_animation.cc:134: void OnPaintLayer(const ui::PaintContext& context) override; Should this be left ...
5 years, 3 months ago (2015-09-14 20:05:41 UTC) #15
sadrul
https://codereview.chromium.org/1298513003/diff/180001/ui/views/animation/ink_drop_animation.cc File ui/views/animation/ink_drop_animation.cc (right): https://codereview.chromium.org/1298513003/diff/180001/ui/views/animation/ink_drop_animation.cc#newcode475 ui/views/animation/ink_drop_animation.cc:475: painted_layers_[painted_shape].reset(layer); On 2015/09/14 20:05:40, sadrul wrote: > Looks like ...
5 years, 3 months ago (2015-09-14 20:06:25 UTC) #16
bruthig
sadrul@, Can you PTAL? https://codereview.chromium.org/1298513003/diff/180001/ui/views/animation/ink_drop_animation.cc File ui/views/animation/ink_drop_animation.cc (right): https://codereview.chromium.org/1298513003/diff/180001/ui/views/animation/ink_drop_animation.cc#newcode134 ui/views/animation/ink_drop_animation.cc:134: void OnPaintLayer(const ui::PaintContext& context) override; ...
5 years, 3 months ago (2015-09-15 19:47:10 UTC) #17
sadrul
lgtm https://codereview.chromium.org/1298513003/diff/180001/ui/views/animation/ink_drop_animation_controller_impl.cc File ui/views/animation/ink_drop_animation_controller_impl.cc (right): https://codereview.chromium.org/1298513003/diff/180001/ui/views/animation/ink_drop_animation_controller_impl.cc#newcode65 ui/views/animation/ink_drop_animation_controller_impl.cc:65: ink_drop_host_->RemoveInkDropLayer(ink_drop_animation_->root_layer()); On 2015/09/15 19:47:09, bruthig wrote: > On ...
5 years, 3 months ago (2015-09-16 11:19:05 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1298513003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1298513003/200001
5 years, 3 months ago (2015-09-16 12:09:37 UTC) #21
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 3 months ago (2015-09-16 12:15:12 UTC) #22
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/8e8496ec69c203243767cec3014cd7232909e805 Cr-Commit-Position: refs/heads/master@{#349100}
5 years, 3 months ago (2015-09-16 12:15:47 UTC) #23
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:54:43 UTC) #24
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/8e8496ec69c203243767cec3014cd7232909e805
Cr-Commit-Position: refs/heads/master@{#349100}

Powered by Google App Engine
This is Rietveld 408576698