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

Issue 2070143003: Add MD ink drop ripple to app list button (Closed)

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

Description

Add MD ink drop ripple to app list button This also needed following changes: - Add AppListPresenter::IsVisible() (plus all necessary plumbing) to be able to determine whether pressing app list button is going to show or hide the app list; - Modify InkDropHostView::SetHasInkDrop() to get a 3-valued enum instead of a bool which lets us disable default gesture handling for ink drops; - Modify CustomButton to not reshow pending ink drop when mouse is dragged back onto the button if the button is notify-on-press. BUG=612567 Committed: https://crrev.com/01e15eecfca3da9f4188045fb0dfb174e7edb87a Cr-Commit-Position: refs/heads/master@{#403459}

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : Rebased #

Patch Set 4 : Shared constant #

Patch Set 5 : Rebased #

Total comments: 10

Patch Set 6 : Added tests + Addressed review comments #

Total comments: 4

Patch Set 7 : Addressed review comments on tests #

Patch Set 8 : Updated tests #

Total comments: 9

Patch Set 9 : Rebased #

Patch Set 10 : Addressed review comments #

Total comments: 12

Patch Set 11 : Addressed review comments #

Total comments: 2

Patch Set 12 : Added a comment #

Patch Set 13 : Rebased #

Patch Set 14 : Excluded gesture tests from Windows #

Patch Set 15 : Rebased #

Patch Set 16 : Rebased+ #

Total comments: 2

Patch Set 17 : Changed SetHasInkDrop to SetInkDropMode #

Total comments: 4

Patch Set 18 : Renmaed InkDropMode values #

Total comments: 4

Patch Set 19 : Addressed review comments #

Patch Set 20 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+673 lines, -180 lines) Patch
M ash/app_list/app_list_presenter_delegate.cc View 1 2 3 4 5 6 7 8 5 chunks +8 lines, -7 lines 0 comments Download
M ash/common/shelf/shelf_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
M ash/common/shelf/shelf_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M ash/first_run/first_run_helper_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
M ash/shelf/app_list_button.h View 1 2 3 4 5 6 3 chunks +8 lines, -1 line 0 comments Download
M ash/shelf/app_list_button.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +46 lines, -12 lines 0 comments Download
M ash/shelf/shelf.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M ash/shelf/shelf.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M ash/shelf/shelf_button.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -3 lines 0 comments Download
M ash/shelf/shelf_tooltip_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 11 chunks +17 lines, -16 lines 0 comments Download
M ash/shelf/shelf_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
M ash/shelf/shelf_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +13 lines, -7 lines 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 chunks +421 lines, -79 lines 0 comments Download
M ash/shell.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +4 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +4 lines, -0 lines 0 comments Download
M ash/system/toast/toast_overlay.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M ash/sysui/app_list_presenter_mus.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/sysui/app_list_presenter_mus.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/bar_control_button.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/download/download_item_view_md.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/bubble_icon_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/content_setting_image_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/toolbar/app_menu_button.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_action_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_button.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M ui/app_list/presenter/app_list_presenter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3 lines, -0 lines 0 comments Download
M ui/app_list/presenter/app_list_presenter_impl.h View 1 chunk +1 line, -3 lines 0 comments Download
M ui/views/animation/ink_drop_host_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +11 lines, -1 line 0 comments Download
M ui/views/animation/ink_drop_host_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +9 lines, -6 lines 0 comments Download
M ui/views/animation/ink_drop_host_view_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +10 lines, -5 lines 0 comments Download
M ui/views/animation/test/ink_drop_host_view_test_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -1 line 0 comments Download
M ui/views/animation/test/ink_drop_host_view_test_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +11 lines, -4 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, -2 lines 0 comments Download
M ui/views/controls/button/custom_button_unittest.cc View 1 2 3 4 5 6 7 8 9 11 chunks +60 lines, -13 lines 0 comments Download
M ui/views/controls/button/md_text_button.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 63 (25 generated)
mohsen
Please take a look... (I'll add some tests later)
4 years, 6 months ago (2016-06-16 19:06:28 UTC) #2
bruthig
https://codereview.chromium.org/2070143003/diff/80001/ash/shelf/app_list_button.cc File ash/shelf/app_list_button.cc (right): https://codereview.chromium.org/2070143003/diff/80001/ash/shelf/app_list_button.cc#newcode91 ash/shelf/app_list_button.cc:91: bool is_material = ash::MaterialDesignController::IsShelfMaterial(); nit: const, same below https://codereview.chromium.org/2070143003/diff/80001/ash/shelf/app_list_button.cc#newcode124 ...
4 years, 6 months ago (2016-06-17 17:58:45 UTC) #3
mohsen
Added tests and addressed review comments. Please take another look... https://codereview.chromium.org/2070143003/diff/80001/ash/shelf/app_list_button.cc File ash/shelf/app_list_button.cc (right): https://codereview.chromium.org/2070143003/diff/80001/ash/shelf/app_list_button.cc#newcode91 ...
4 years, 6 months ago (2016-06-18 06:25:16 UTC) #5
bruthig
All in all looking good, just some requests for test changes. https://codereview.chromium.org/2070143003/diff/120001/ash/shelf/shelf_view_unittest.cc File ash/shelf/shelf_view_unittest.cc (right): ...
4 years, 6 months ago (2016-06-20 14:44:33 UTC) #6
mohsen
https://codereview.chromium.org/2070143003/diff/120001/ash/shelf/shelf_view_unittest.cc File ash/shelf/shelf_view_unittest.cc (right): https://codereview.chromium.org/2070143003/diff/120001/ash/shelf/shelf_view_unittest.cc#newcode2163 ash/shelf/shelf_view_unittest.cc:2163: // Tests that changing visiblity of the app list ...
4 years, 6 months ago (2016-06-21 06:33:24 UTC) #7
mohsen
Updated tests. Please take a look...
4 years, 6 months ago (2016-06-21 18:56:35 UTC) #8
bruthig
https://codereview.chromium.org/2070143003/diff/160001/ash/shelf/shelf_view_unittest.cc File ash/shelf/shelf_view_unittest.cc (right): https://codereview.chromium.org/2070143003/diff/160001/ash/shelf/shelf_view_unittest.cc#newcode2119 ash/shelf/shelf_view_unittest.cc:2119: if (target_visibility_) nit: This quick return isn't adding too ...
4 years, 6 months ago (2016-06-22 19:07:29 UTC) #9
mohsen
https://codereview.chromium.org/2070143003/diff/160001/ash/shelf/shelf_view_unittest.cc File ash/shelf/shelf_view_unittest.cc (right): https://codereview.chromium.org/2070143003/diff/160001/ash/shelf/shelf_view_unittest.cc#newcode2119 ash/shelf/shelf_view_unittest.cc:2119: if (target_visibility_) On 2016/06/22 at 19:07:29, bruthig wrote: > ...
4 years, 6 months ago (2016-06-23 15:49:56 UTC) #11
bruthig
lgtm
4 years, 6 months ago (2016-06-23 16:11:21 UTC) #12
mohsen
jamescook@: Can you take a look at ash changes please?
4 years, 6 months ago (2016-06-23 16:40:54 UTC) #14
James Cook
https://codereview.chromium.org/2070143003/diff/220001/ash/shelf/shelf_view_unittest.cc File ash/shelf/shelf_view_unittest.cc (right): https://codereview.chromium.org/2070143003/diff/220001/ash/shelf/shelf_view_unittest.cc#newcode2132 ash/shelf/shelf_view_unittest.cc:2132: bool is_visible_; nit: initialize here, not in constructor https://codereview.chromium.org/2070143003/diff/220001/ash/shelf/shelf_view_unittest.cc#newcode2233 ...
4 years, 6 months ago (2016-06-23 20:08:08 UTC) #15
mohsen
https://codereview.chromium.org/2070143003/diff/220001/ash/shelf/shelf_view_unittest.cc File ash/shelf/shelf_view_unittest.cc (right): https://codereview.chromium.org/2070143003/diff/220001/ash/shelf/shelf_view_unittest.cc#newcode2132 ash/shelf/shelf_view_unittest.cc:2132: bool is_visible_; On 2016/06/23 at 20:08:07, James Cook wrote: ...
4 years, 5 months ago (2016-06-27 22:17:10 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2070143003/240001
4 years, 5 months ago (2016-06-27 22:46:53 UTC) #18
James Cook
LGTM https://codereview.chromium.org/2070143003/diff/240001/ui/views/animation/ink_drop_host_view.h File ui/views/animation/ink_drop_host_view.h (right): https://codereview.chromium.org/2070143003/diff/240001/ui/views/animation/ink_drop_host_view.h#newcode43 ui/views/animation/ink_drop_host_view.h:43: INK_DROP_WITHOUT_GESTURE_HANDLING, I like this much better. Can you ...
4 years, 5 months ago (2016-06-27 22:47:29 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/27555) ios-simulator-gn on ...
4 years, 5 months ago (2016-06-27 22:51:32 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2070143003/280001
4 years, 5 months ago (2016-06-28 06:08:01 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/236529)
4 years, 5 months ago (2016-06-28 07:36:15 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2070143003/360001
4 years, 5 months ago (2016-06-29 21:38:14 UTC) #29
mohsen
sky@: Can you please take an OWNERS look, please? https://codereview.chromium.org/2070143003/diff/240001/ui/views/animation/ink_drop_host_view.h File ui/views/animation/ink_drop_host_view.h (right): https://codereview.chromium.org/2070143003/diff/240001/ui/views/animation/ink_drop_host_view.h#newcode43 ui/views/animation/ink_drop_host_view.h:43: ...
4 years, 5 months ago (2016-06-29 21:41:37 UTC) #31
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/194280)
4 years, 5 months ago (2016-06-29 22:35:11 UTC) #33
sky
https://codereview.chromium.org/2070143003/diff/360001/ui/views/animation/ink_drop_host_view.h File ui/views/animation/ink_drop_host_view.h (right): https://codereview.chromium.org/2070143003/diff/360001/ui/views/animation/ink_drop_host_view.h#newcode97 ui/views/animation/ink_drop_host_view.h:97: void SetHasInkDrop(InkDropType ink_drop_type); SetHasInkDrop makes sense when the type ...
4 years, 5 months ago (2016-06-29 22:58:34 UTC) #34
mohsen
https://codereview.chromium.org/2070143003/diff/360001/ui/views/animation/ink_drop_host_view.h File ui/views/animation/ink_drop_host_view.h (right): https://codereview.chromium.org/2070143003/diff/360001/ui/views/animation/ink_drop_host_view.h#newcode97 ui/views/animation/ink_drop_host_view.h:97: void SetHasInkDrop(InkDropType ink_drop_type); On 2016/06/29 at 22:58:34, sky wrote: ...
4 years, 5 months ago (2016-06-30 00:03:45 UTC) #37
sky
https://codereview.chromium.org/2070143003/diff/420001/chrome/browser/ui/views/download/download_item_view_md.cc File chrome/browser/ui/views/download/download_item_view_md.cc (right): https://codereview.chromium.org/2070143003/diff/420001/chrome/browser/ui/views/download/download_item_view_md.cc#newcode190 chrome/browser/ui/views/download/download_item_view_md.cc:190: if (ui::MaterialDesignController::IsModeMaterial()) This class is only created when in ...
4 years, 5 months ago (2016-06-30 00:35:34 UTC) #38
mohsen
https://codereview.chromium.org/2070143003/diff/420001/chrome/browser/ui/views/download/download_item_view_md.cc File chrome/browser/ui/views/download/download_item_view_md.cc (right): https://codereview.chromium.org/2070143003/diff/420001/chrome/browser/ui/views/download/download_item_view_md.cc#newcode190 chrome/browser/ui/views/download/download_item_view_md.cc:190: if (ui::MaterialDesignController::IsModeMaterial()) On 2016/06/30 at 00:35:34, sky wrote: > ...
4 years, 5 months ago (2016-06-30 08:54:07 UTC) #39
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2070143003/440001
4 years, 5 months ago (2016-06-30 08:54:30 UTC) #41
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/194670)
4 years, 5 months ago (2016-06-30 09:35:12 UTC) #43
sky
On 2016/06/30 08:54:07, mohsen wrote: > https://codereview.chromium.org/2070143003/diff/420001/chrome/browser/ui/views/download/download_item_view_md.cc > File chrome/browser/ui/views/download/download_item_view_md.cc (right): > > https://codereview.chromium.org/2070143003/diff/420001/chrome/browser/ui/views/download/download_item_view_md.cc#newcode190 > ...
4 years, 5 months ago (2016-06-30 16:57:39 UTC) #44
sky
LGTM https://codereview.chromium.org/2070143003/diff/440001/ui/app_list/presenter/app_list_presenter.h File ui/app_list/presenter/app_list_presenter.h (right): https://codereview.chromium.org/2070143003/diff/440001/ui/app_list/presenter/app_list_presenter.h#newcode35 ui/app_list/presenter/app_list_presenter.h:35: // Returns actual visibility of the app list. ...
4 years, 5 months ago (2016-06-30 16:57:48 UTC) #45
mohsen
https://codereview.chromium.org/2070143003/diff/440001/ui/app_list/presenter/app_list_presenter.h File ui/app_list/presenter/app_list_presenter.h (right): https://codereview.chromium.org/2070143003/diff/440001/ui/app_list/presenter/app_list_presenter.h#newcode35 ui/app_list/presenter/app_list_presenter.h:35: // Returns actual visibility of the app list. On ...
4 years, 5 months ago (2016-07-01 06:06:52 UTC) #46
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2070143003/460001
4 years, 5 months ago (2016-07-01 06:12:33 UTC) #48
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/29979) ios-device-gn on ...
4 years, 5 months ago (2016-07-01 06:14:29 UTC) #50
mohsen
On 2016/06/30 at 16:57:39, sky wrote: > On 2016/06/30 08:54:07, mohsen wrote: > > https://codereview.chromium.org/2070143003/diff/420001/chrome/browser/ui/views/download/download_item_view_md.cc ...
4 years, 5 months ago (2016-07-01 06:23:57 UTC) #51
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2070143003/500001
4 years, 5 months ago (2016-07-01 06:31:11 UTC) #54
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-01 07:23:11 UTC) #56
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/2070143003/500001
4 years, 5 months ago (2016-07-01 15:31:42 UTC) #59
commit-bot: I haz the power
Committed patchset #20 (id:500001)
4 years, 5 months ago (2016-07-01 15:36:41 UTC) #60
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-01 15:36:47 UTC) #61
commit-bot: I haz the power
4 years, 5 months ago (2016-07-01 15:38:33 UTC) #63
Message was sent while issue was closed.
Patchset 20 (id:??) landed as
https://crrev.com/01e15eecfca3da9f4188045fb0dfb174e7edb87a
Cr-Commit-Position: refs/heads/master@{#403459}

Powered by Google App Engine
This is Rietveld 408576698