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

Issue 2178163002: Add ink drop ripple to shelf overflow button (Closed)

Created:
4 years, 5 months ago by mohsen
Modified:
4 years, 3 months ago
Reviewers:
James Cook, sadrul, bruthig
CC:
bruthig+ink_drop_chromium.org, chromium-reviews, dcheng, kalyank, sadrul, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ink drop ripple to shelf overflow button It uses a flood fill ripple that remains active while the overflow shelf is active. InkDropHostView and CustomButton are updated to handle active case: - CustomButton does not hide the ripple if it is not a pending ripple; - InkDropHostView does not show or hide a pending ripple if it is showing an active ripple. BUG=612579 TEST=OverflowButtonInkDropTest.* in ash_unittests, manual Committed: https://crrev.com/623c7e4e56e93b450090d0dbd68e4d9221a49a18 Cr-Commit-Position: refs/heads/master@{#419232}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed review comments #

Total comments: 2

Patch Set 3 : Rebased + Added tests #

Patch Set 4 : Used scoped task runner #

Patch Set 5 : Fixed OnClickCanceled #

Patch Set 6 : Rebased #

Patch Set 7 : Fixed a failing test #

Patch Set 8 : Fixed CustomButton's OnClickCanceled test #

Patch Set 9 : Fixed scoped task runner #

Total comments: 12

Patch Set 10 : Addressed review comments #

Patch Set 11 : Created separate fixtures for overflow button tests + Cleanup #

Total comments: 2

Patch Set 12 : Rebased #

Patch Set 13 : Fixed OnClickCanceled #

Total comments: 8

Patch Set 14 : Addressed review comments #

Total comments: 35

Patch Set 15 : Addressed review comments #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+738 lines, -80 lines) Patch
M ash/common/shelf/overflow_bubble.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +7 lines, -9 lines 0 comments Download
M ash/common/shelf/overflow_bubble.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +20 lines, -22 lines 0 comments Download
M ash/common/shelf/overflow_button.h View 1 2 3 4 5 2 chunks +8 lines, -5 lines 0 comments Download
M ash/common/shelf/overflow_button.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 8 chunks +38 lines, -10 lines 0 comments Download
M ash/common/shelf/shelf_view.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 17 chunks +627 lines, -27 lines 1 comment Download
M ash/test/shelf_view_test_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +10 lines, -0 lines 1 comment Download
M ash/test/shelf_view_test_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +15 lines, -2 lines 0 comments Download
M ui/views/animation/ink_drop_host_view.cc View 1 2 chunks +5 lines, -2 lines 2 comments Download
M ui/views/controls/button/custom_button.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 85 (65 generated)
mohsen
Can you take a first look, please?
4 years, 5 months ago (2016-07-25 22:15:14 UTC) #4
bruthig
https://codereview.chromium.org/2178163002/diff/1/ash/common/shelf/overflow_button.cc File ash/common/shelf/overflow_button.cc (right): https://codereview.chromium.org/2178163002/diff/1/ash/common/shelf/overflow_button.cc#newcode62 ash/common/shelf/overflow_button.cc:62: set_hide_ink_drop_when_showing_context_menu(false); Does this need to be toggled or can ...
4 years, 4 months ago (2016-07-26 13:57:16 UTC) #7
mohsen
https://codereview.chromium.org/2178163002/diff/1/ash/common/shelf/overflow_button.cc File ash/common/shelf/overflow_button.cc (right): https://codereview.chromium.org/2178163002/diff/1/ash/common/shelf/overflow_button.cc#newcode62 ash/common/shelf/overflow_button.cc:62: set_hide_ink_drop_when_showing_context_menu(false); On 2016/07/26 at 13:57:15, bruthig wrote: > Does ...
4 years, 4 months ago (2016-07-26 20:00:58 UTC) #10
bruthig
https://codereview.chromium.org/2178163002/diff/20001/ui/views/controls/button/custom_button.cc File ui/views/controls/button/custom_button.cc (right): https://codereview.chromium.org/2178163002/diff/20001/ui/views/controls/button/custom_button.cc#newcode473 ui/views/controls/button/custom_button.cc:473: if (ink_drop()->GetTargetInkDropState() != views::InkDropState::ACTIVATED) { I think I'd feel ...
4 years, 4 months ago (2016-07-26 21:24:27 UTC) #13
mohsen
https://codereview.chromium.org/2178163002/diff/20001/ui/views/controls/button/custom_button.cc File ui/views/controls/button/custom_button.cc (right): https://codereview.chromium.org/2178163002/diff/20001/ui/views/controls/button/custom_button.cc#newcode473 ui/views/controls/button/custom_button.cc:473: if (ink_drop()->GetTargetInkDropState() != views::InkDropState::ACTIVATED) { On 2016/07/26 at 21:24:27, ...
4 years, 4 months ago (2016-08-17 05:31:35 UTC) #39
bruthig
https://codereview.chromium.org/2178163002/diff/180001/ash/shelf/shelf_view_unittest.cc File ash/shelf/shelf_view_unittest.cc (right): https://codereview.chromium.org/2178163002/diff/180001/ash/shelf/shelf_view_unittest.cc#newcode2162 ash/shelf/shelf_view_unittest.cc:2162: mock_task_runner_->ClearPendingTasks(); It might be a good idea to DCHECK_EQ(mock_task_runner_, ...
4 years, 3 months ago (2016-08-25 19:18:35 UTC) #40
mohsen
https://codereview.chromium.org/2178163002/diff/180001/ash/shelf/shelf_view_unittest.cc File ash/shelf/shelf_view_unittest.cc (right): https://codereview.chromium.org/2178163002/diff/180001/ash/shelf/shelf_view_unittest.cc#newcode2162 ash/shelf/shelf_view_unittest.cc:2162: mock_task_runner_->ClearPendingTasks(); On 2016/08/25 at 19:18:35, bruthig (OOO Aug 29th) ...
4 years, 3 months ago (2016-08-30 18:03:32 UTC) #55
bruthig
Feel free to add other OWNER's. https://codereview.chromium.org/2178163002/diff/180001/ash/shelf/shelf_view_unittest.cc File ash/shelf/shelf_view_unittest.cc (right): https://codereview.chromium.org/2178163002/diff/180001/ash/shelf/shelf_view_unittest.cc#newcode2650 ash/shelf/shelf_view_unittest.cc:2650: EXPECT_FALSE(test_api_->overflow_bubble() && On ...
4 years, 3 months ago (2016-09-01 16:12:55 UTC) #58
mohsen
https://codereview.chromium.org/2178163002/diff/220001/ui/views/controls/button/custom_button.cc File ui/views/controls/button/custom_button.cc (right): https://codereview.chromium.org/2178163002/diff/220001/ui/views/controls/button/custom_button.cc#newcode202 ui/views/controls/button/custom_button.cc:202: if (notify_action_ == NOTIFY_ON_RELEASE && was_pressed) On 2016/09/01 at ...
4 years, 3 months ago (2016-09-10 03:03:23 UTC) #61
mohsen
jamescook@: Can you take a look at changes in ash/ please?
4 years, 3 months ago (2016-09-10 03:05:40 UTC) #63
James Cook
Please add a TEST= line to the CL description with at least the test binary ...
4 years, 3 months ago (2016-09-12 02:54:48 UTC) #66
mohsen
https://codereview.chromium.org/2178163002/diff/280001/ash/common/shelf/overflow_bubble.h File ash/common/shelf/overflow_bubble.h (right): https://codereview.chromium.org/2178163002/diff/280001/ash/common/shelf/overflow_bubble.h#newcode59 ash/common/shelf/overflow_bubble.h:59: OverflowButton* button_; // Owned by ShelfView. On 2016/09/12 at ...
4 years, 3 months ago (2016-09-14 18:34:44 UTC) #70
James Cook
//ash LGTM https://codereview.chromium.org/2178163002/diff/280001/ash/shelf/shelf_view_unittest.cc File ash/shelf/shelf_view_unittest.cc (right): https://codereview.chromium.org/2178163002/diff/280001/ash/shelf/shelf_view_unittest.cc#newcode2691 ash/shelf/shelf_view_unittest.cc:2691: overflow_button_ink_drop_ = new InkDropSpy(base::WrapUnique(ink_drop_impl)); On 2016/09/14 18:34:43, ...
4 years, 3 months ago (2016-09-14 21:50:06 UTC) #75
mohsen
sadrul@: Can you please take a look at changes in ui/views/?
4 years, 3 months ago (2016-09-14 22:02:17 UTC) #77
sadrul
https://codereview.chromium.org/2178163002/diff/320001/ui/views/animation/ink_drop_host_view.cc File ui/views/animation/ink_drop_host_view.cc (right): https://codereview.chromium.org/2178163002/diff/320001/ui/views/animation/ink_drop_host_view.cc#newcode82 ui/views/animation/ink_drop_host_view.cc:82: break; This is getting fairly complex. Can you look ...
4 years, 3 months ago (2016-09-15 20:42:00 UTC) #78
sadrul
lgtm
4 years, 3 months ago (2016-09-15 20:42:03 UTC) #79
mohsen
https://codereview.chromium.org/2178163002/diff/320001/ui/views/animation/ink_drop_host_view.cc File ui/views/animation/ink_drop_host_view.cc (right): https://codereview.chromium.org/2178163002/diff/320001/ui/views/animation/ink_drop_host_view.cc#newcode82 ui/views/animation/ink_drop_host_view.cc:82: break; On 2016/09/15 at 20:42:00, sadrul wrote: > This ...
4 years, 3 months ago (2016-09-16 17:53:33 UTC) #80
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/2178163002/320001
4 years, 3 months ago (2016-09-16 17:54:18 UTC) #82
commit-bot: I haz the power
Committed patchset #15 (id:320001)
4 years, 3 months ago (2016-09-16 18:45:58 UTC) #83
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 18:49:08 UTC) #85
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/623c7e4e56e93b450090d0dbd68e4d9221a49a18
Cr-Commit-Position: refs/heads/master@{#419232}

Powered by Google App Engine
This is Rietveld 408576698