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

Issue 2831353002: Allow a LocatedEvent to be passed to MenuButton, so the ink drop animation is centered on the click… (Closed)

Created:
3 years, 8 months ago by emx
Modified:
3 years, 8 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow a LocatedEvent to be passed to MenuButton, so the ink drop animation is centered on the click location. The new constructor overload is used in https://codereview.chromium.org/2832823002/ BUG=635699 Review-Url: https://codereview.chromium.org/2831353002 Cr-Commit-Position: refs/heads/master@{#466922} Committed: https://chromium.googlesource.com/chromium/src/+/b1d346cc88d41c6a5b1dd5ac47327c9ee7c6d7e7

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added comments and unit tests per review comments #

Total comments: 4

Patch Set 3 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -10 lines) Patch
M ui/views/controls/button/menu_button.h View 1 2 chunks +8 lines, -3 lines 0 comments Download
M ui/views/controls/button/menu_button.cc View 3 chunks +7 lines, -5 lines 0 comments Download
M ui/views/controls/button/menu_button_unittest.cc View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_controller.cc View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
emx
Please take a look
3 years, 8 months ago (2017-04-21 15:32:02 UTC) #3
sky
This looks fine to me. How about test coverage? https://codereview.chromium.org/2831353002/diff/1/ui/views/controls/button/menu_button.h File ui/views/controls/button/menu_button.h (right): https://codereview.chromium.org/2831353002/diff/1/ui/views/controls/button/menu_button.h#newcode37 ui/views/controls/button/menu_button.h:37: ...
3 years, 8 months ago (2017-04-21 20:32:33 UTC) #4
emx
Changes made, please take another look.
3 years, 8 months ago (2017-04-24 13:50:59 UTC) #7
sky
LGTM with the following. https://codereview.chromium.org/2831353002/diff/20001/ui/views/controls/button/menu_button_unittest.cc File ui/views/controls/button/menu_button_unittest.cc (right): https://codereview.chromium.org/2831353002/diff/20001/ui/views/controls/button/menu_button_unittest.cc#newcode348 ui/views/controls/button/menu_button_unittest.cc:348: auto click_point = gfx::Point(6, 8); ...
3 years, 8 months ago (2017-04-24 15:07:13 UTC) #8
emx
OK, I've addressed your comments, thanks! https://codereview.chromium.org/2831353002/diff/20001/ui/views/controls/button/menu_button_unittest.cc File ui/views/controls/button/menu_button_unittest.cc (right): https://codereview.chromium.org/2831353002/diff/20001/ui/views/controls/button/menu_button_unittest.cc#newcode348 ui/views/controls/button/menu_button_unittest.cc:348: auto click_point = ...
3 years, 8 months ago (2017-04-24 16:32:07 UTC) #13
sky
SLGTM
3 years, 8 months ago (2017-04-24 19:55:45 UTC) #16
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/2831353002/40001
3 years, 8 months ago (2017-04-25 08:19:23 UTC) #19
commit-bot: I haz the power
3 years, 8 months ago (2017-04-25 08:22:50 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/b1d346cc88d41c6a5b1dd5ac4732...

Powered by Google App Engine
This is Rietveld 408576698