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

Issue 1757993004: Added ink drop hover/ripple to menu hosting bookmark buttons. (Closed)

Created:
4 years, 9 months ago by bruthig
Modified:
4 years, 9 months ago
Reviewers:
varkha, sky
CC:
chromium-reviews, tfarina, noyau+watch_chromium.org, bruthig+ink_drop_chromium.org, dcheng
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added ink drop hover/ripple to menu hosting bookmark buttons. BUG=592058 TEST=InkDropAnimationControllerImplTest.* TEST=InkDropAnimationTest.* TEST=CustomButtonTest.InkDropAfterShowingContextMenu TEST=CustomButtonTest.InkDropAfterTryingToShowContextMenu TEST=Manual Committed: https://crrev.com/db5c17d7fd792247f8e852881f16a4d5ab228afb Cr-Commit-Position: refs/heads/master@{#380786}

Patch Set 1 #

Patch Set 2 : Merge with master #

Patch Set 3 : Added BookmarkMenuButtonBase::OnQuickAction(). #

Patch Set 4 : Some minor fix-ups after self review. #

Patch Set 5 : Added SnapToActivatedWithoutActiveAnimations and SnapToActivatedWithActiveAnimations tests. #

Patch Set 6 : Updated docs for InkDropAnimationTest.SnapToActivatedWithActiveAnimations test. #

Patch Set 7 : Merge with https://codereview.chromium.org/1778643002 #

Patch Set 8 : Merge with master. #

Patch Set 9 : Updated the ripple to behave resonably when showing context menus. #

Total comments: 10

Patch Set 10 : Added tests. #

Total comments: 10

Patch Set 11 : Addressed sky@ & varkha@ comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+364 lines, -61 lines) Patch
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +78 lines, -10 lines 0 comments Download
M ui/views/animation/button_ink_drop_delegate.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/animation/button_ink_drop_delegate.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/animation/flood_fill_ink_drop_animation.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M ui/views/animation/flood_fill_ink_drop_animation.cc View 1 2 3 4 5 6 7 8 4 chunks +17 lines, -4 lines 0 comments Download
M ui/views/animation/ink_drop_animation.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_animation.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_animation_controller.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_animation_controller_factory.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_animation_controller_impl.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_animation_controller_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +22 lines, -7 lines 0 comments Download
M ui/views/animation/ink_drop_animation_controller_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +25 lines, -2 lines 0 comments Download
M ui/views/animation/ink_drop_animation_unittest.cc View 1 2 3 4 5 1 chunk +46 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_delegate.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/animation/square_ink_drop_animation.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M ui/views/animation/square_ink_drop_animation.cc View 1 2 3 4 5 6 7 8 4 chunks +18 lines, -1 line 0 comments Download
M ui/views/animation/test/test_ink_drop_delegate.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/animation/test/test_ink_drop_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/controls/button/custom_button.cc View 1 2 3 4 5 6 7 8 1 chunk +4 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 7 chunks +73 lines, -30 lines 0 comments Download
M ui/views/controls/button/menu_button.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -2 lines 0 comments Download
M ui/views/controls/button/menu_button.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +12 lines, -4 lines 0 comments Download
M ui/views/controls/menu/menu_controller.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 19 (10 generated)
bruthig
varkha@, can you take a first look? I plan to have a look at it ...
4 years, 9 months ago (2016-03-03 21:00:08 UTC) #2
varkha
General question: will we need a snap treatment for other states? https://codereview.chromium.org/1757993004/diff/160001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (right): ...
4 years, 9 months ago (2016-03-11 17:57:17 UTC) #5
bruthig
sky@, can you please have a first look at: - chrome/browser/* - ui/views/controls/* Please note ...
4 years, 9 months ago (2016-03-11 18:02:43 UTC) #9
sky
https://codereview.chromium.org/1757993004/diff/180001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (right): https://codereview.chromium.org/1757993004/diff/180001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc#newcode213 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc:213: View* GetTooltipHandlerForPoint(const gfx::Point& point) override { I think you ...
4 years, 9 months ago (2016-03-11 20:41:33 UTC) #11
bruthig
> General question: will we need a snap treatment for other states? Maybe, but it ...
4 years, 9 months ago (2016-03-11 21:58:21 UTC) #12
sky
LGTM https://codereview.chromium.org/1757993004/diff/180001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (right): https://codereview.chromium.org/1757993004/diff/180001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc#newcode226 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc:226: bool IsTriggerableEvent(const ui::Event& e) override { On 2016/03/11 ...
4 years, 9 months ago (2016-03-11 23:11:14 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1757993004/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1757993004/200001
4 years, 9 months ago (2016-03-11 23:13:17 UTC) #15
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 9 months ago (2016-03-11 23:54:03 UTC) #17
commit-bot: I haz the power
4 years, 9 months ago (2016-03-11 23:57:00 UTC) #19
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/db5c17d7fd792247f8e852881f16a4d5ab228afb
Cr-Commit-Position: refs/heads/master@{#380786}

Powered by Google App Engine
This is Rietveld 408576698