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

Issue 2041033002: Moved ButtonInkDropDelegate logic into InkDropHostView and deleted InkDropDelegates. (Closed)

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

Description

Moved ButtonInkDropDelegate logic into InkDropHostView and deleted InkDropDelegates. Common responsibility was split between the InkDropDelegate and the InkDropHostView. This change consolidates that and will make it a easier to implement https://crbug.com/597273 and https://crbug.com/595315. This change regresses InkDrops from being centered on download buttons on Linux. However, this will be fixed shortly after by a follow-up CL. BUG=None TEST=CustomButtonTest.* TEST=MenuButtonTest.* TEST=LabelButtonTest.* Committed: https://crrev.com/810026326fbcd82da2540a7efb4e601cd570e4df Cr-Commit-Position: refs/heads/master@{#398375}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixed InkDropGestureHandler() ctor to properly initialize member variables. #

Patch Set 3 : Removed ink_drop_hover_observer.h from views.gyp. #

Patch Set 4 : Fixed merge conflict in custom_button.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+524 lines, -719 lines) Patch
M ash/system/toast/toast_overlay.cc View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/views/bar_control_button.cc View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 4 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/download/download_item_view_md.h View 4 chunks +2 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/download/download_item_view_md.cc View 9 chunks +25 lines, -14 lines 0 comments Download
M chrome/browser/ui/views/location_bar/bubble_icon_view.cc View 7 chunks +7 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/location_bar/content_setting_image_view.cc View 7 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/toolbar/app_menu_button.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_action_view.cc View 4 chunks +2 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_action_view_unittest.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_button.cc View 4 chunks +3 lines, -5 lines 0 comments Download
D ui/views/animation/button_ink_drop_delegate.h View 1 chunk +0 lines, -70 lines 0 comments Download
D ui/views/animation/button_ink_drop_delegate.cc View 1 chunk +0 lines, -104 lines 0 comments Download
M ui/views/animation/ink_drop.h View 1 chunk +0 lines, -4 lines 0 comments Download
D ui/views/animation/ink_drop_delegate.h View 1 chunk +0 lines, -53 lines 0 comments Download
M ui/views/animation/ink_drop_factory.cc View 1 chunk +1 line, -25 lines 0 comments Download
M ui/views/animation/ink_drop_host_view.h View 3 chunks +30 lines, -8 lines 0 comments Download
M ui/views/animation/ink_drop_host_view.cc View 1 4 chunks +103 lines, -5 lines 0 comments Download
M ui/views/animation/ink_drop_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/animation/ink_drop_impl.cc View 2 chunks +1 line, -5 lines 0 comments Download
A ui/views/animation/ink_drop_stub.h View 1 chunk +28 lines, -0 lines 0 comments Download
A ui/views/animation/ink_drop_stub.cc View 1 chunk +25 lines, -0 lines 0 comments Download
A ui/views/animation/test/ink_drop_host_view_test_api.h View 1 chunk +36 lines, -0 lines 0 comments Download
A ui/views/animation/test/ink_drop_host_view_test_api.cc View 1 chunk +21 lines, -0 lines 0 comments Download
A ui/views/animation/test/test_ink_drop.h View 1 chunk +40 lines, -0 lines 0 comments Download
A ui/views/animation/test/test_ink_drop.cc View 1 chunk +32 lines, -0 lines 0 comments Download
D ui/views/animation/test/test_ink_drop_delegate.h View 1 chunk +0 lines, -42 lines 0 comments Download
D ui/views/animation/test/test_ink_drop_delegate.cc View 1 chunk +0 lines, -62 lines 0 comments Download
M ui/views/controls/button/custom_button.cc View 1 2 3 10 chunks +27 lines, -32 lines 0 comments Download
M ui/views/controls/button/custom_button_unittest.cc View 8 chunks +49 lines, -111 lines 0 comments Download
M ui/views/controls/button/label_button_unittest.cc View 5 chunks +15 lines, -51 lines 0 comments Download
M ui/views/controls/button/md_text_button.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/controls/button/md_text_button.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ui/views/controls/button/menu_button.cc View 6 chunks +9 lines, -14 lines 0 comments Download
M ui/views/controls/button/menu_button_unittest.cc View 12 chunks +38 lines, -45 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 chunks +15 lines, -14 lines 0 comments Download

Messages

Total messages: 24 (12 generated)
bruthig
mohsen@, can you PTAL?
4 years, 6 months ago (2016-06-06 16:40:01 UTC) #3
bruthig
https://codereview.chromium.org/2041033002/diff/1/ui/views/animation/ink_drop_host_view.cc File ui/views/animation/ink_drop_host_view.cc (right): https://codereview.chromium.org/2041033002/diff/1/ui/views/animation/ink_drop_host_view.cc#newcode44 ui/views/animation/ink_drop_host_view.cc:44: InkDropGestureHandler(View* view, InkDrop* ink_drop) {} FIXME(bruthig): |view| and |ink_drop| ...
4 years, 6 months ago (2016-06-06 18:57:59 UTC) #4
mohsen
LGTM https://codereview.chromium.org/2041033002/diff/1/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/2041033002/diff/1/chrome/browser/ui/views/download/download_item_view_md.cc#newcode153 chrome/browser/ui/views/download/download_item_view_md.cc:153: // Allows the DownloadItemViewMd to control the InkDrop ...
4 years, 6 months ago (2016-06-07 06:10:31 UTC) #5
bruthig
sky@, can you provide an OWNER's review for: - ash/* - chrome/browser/* - ui/views/controls/* - ...
4 years, 6 months ago (2016-06-07 15:14:52 UTC) #7
sky
LGTM
4 years, 6 months ago (2016-06-07 17:23:47 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2041033002/40001
4 years, 6 months ago (2016-06-07 17:26:42 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/196371)
4 years, 6 months ago (2016-06-07 17:34:27 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2041033002/40001
4 years, 6 months ago (2016-06-07 17:37:12 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/196384)
4 years, 6 months ago (2016-06-07 17:45:07 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2041033002/60001
4 years, 6 months ago (2016-06-07 21:03:01 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-07 21:29:53 UTC) #22
commit-bot: I haz the power
4 years, 6 months ago (2016-06-07 21:31:20 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/810026326fbcd82da2540a7efb4e601cd570e4df
Cr-Commit-Position: refs/heads/master@{#398375}

Powered by Google App Engine
This is Rietveld 408576698