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

Issue 2042073002: Centered flood fill style ink drop ripples on mouse/touch points. (Closed)

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

Description

Centered flood fill style ink drop ripples on LocatedEvents. BUG=597273 TEST=InkDropHostViewTest.* TEST=FloodFillInkDropRipple.MaxDistanceToCorners Committed: https://crrev.com/854a6b15453fce54325ecfe2611a4c854ad7573c Cr-Commit-Position: refs/heads/master@{#400666}

Patch Set 1 #

Patch Set 2 : Polished for review. #

Total comments: 12

Patch Set 3 : Converted InkDropHostView::last_ripple_triggering_event_ from an Event* to a LocatedEvent*. #

Total comments: 2

Patch Set 4 : Rebase #

Patch Set 5 : Fixed nit from patch set 3. #

Total comments: 2

Patch Set 6 : Moved InkDropHostView::AsLocatedEvent() to event_utils.(h|cc) as ToLocatedEventOrNull(). #

Total comments: 7

Patch Set 7 : Addressed comments from patch set 6. #

Total comments: 2

Patch Set 8 : Used |should_enter_pushed| instead of calling ShouldEnterPushedState(event). #

Patch Set 9 : Rebase #

Patch Set 10 : Renamed LocatedEvent::AsLocatedIfLocatedEvent() as FromIfValid(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+294 lines, -109 lines) Patch
M ash/shelf/shelf_button.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M ash/shelf/shelf_button.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download
M ash/shelf/shelf_view.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 1 2 3 4 5 6 7 8 3 chunks +3 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 7 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/location_bar/bubble_icon_view.cc View 1 2 3 4 5 6 7 8 5 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/location_bar/content_setting_image_view.h View 1 2 3 4 5 6 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 7 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/location_bar/icon_label_bubble_view.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_icon_view.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/location_icon_view.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_action_view.cc View 1 2 3 4 5 6 7 8 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 2 chunks +2 lines, -2 lines 0 comments Download
M ui/events/event.h View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/animation/flood_fill_ink_drop_ripple.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/animation/flood_fill_ink_drop_ripple.cc View 1 2 3 4 5 6 1 chunk +17 lines, -6 lines 0 comments Download
M ui/views/animation/flood_fill_ink_drop_ripple_unittest.cc View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/animation/ink_drop_host_view.h View 1 2 3 4 5 6 7 8 5 chunks +29 lines, -11 lines 0 comments Download
M ui/views/animation/ink_drop_host_view.cc View 1 2 3 4 5 6 7 8 5 chunks +39 lines, -18 lines 0 comments Download
A ui/views/animation/ink_drop_host_view_unittest.cc View 1 2 1 chunk +61 lines, -0 lines 0 comments Download
M ui/views/animation/test/flood_fill_ink_drop_ripple_test_api.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/animation/test/flood_fill_ink_drop_ripple_test_api.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 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 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/animation/test/ink_drop_host_view_test_api.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M ui/views/controls/button/custom_button.cc View 1 2 3 4 5 6 7 8 9 8 chunks +16 lines, -13 lines 0 comments Download
M ui/views/controls/button/label_button.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/controls/button/label_button.cc View 1 2 chunks +14 lines, -15 lines 0 comments Download
M ui/views/controls/button/menu_button.cc View 1 2 3 4 5 6 7 8 9 6 chunks +9 lines, -6 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (9 generated)
bruthig
estade@, can you take a first look?
4 years, 6 months ago (2016-06-14 20:31:47 UTC) #3
Evan Stade
https://codereview.chromium.org/2042073002/diff/20001/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/2042073002/diff/20001/chrome/browser/ui/views/download/download_item_view_md.cc#newcode759 chrome/browser/ui/views/download/download_item_view_md.cc:759: AnimateInkDrop(views::InkDropState::ACTION_TRIGGERED, &event); I'd just as soon move this out ...
4 years, 6 months ago (2016-06-14 21:13:24 UTC) #4
bruthig
estade@, PTAL https://codereview.chromium.org/2042073002/diff/20001/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/2042073002/diff/20001/chrome/browser/ui/views/download/download_item_view_md.cc#newcode759 chrome/browser/ui/views/download/download_item_view_md.cc:759: AnimateInkDrop(views::InkDropState::ACTION_TRIGGERED, &event); On 2016/06/14 21:13:24, Evan Stade ...
4 years, 6 months ago (2016-06-14 21:57:01 UTC) #5
Evan Stade
https://codereview.chromium.org/2042073002/diff/20001/ui/views/controls/button/label_button.cc File ui/views/controls/button/label_button.cc (right): https://codereview.chromium.org/2042073002/diff/20001/ui/views/controls/button/label_button.cc#newcode444 ui/views/controls/button/label_button.cc:444: ? CreateDefaultInkDropRipple( On 2016/06/14 21:57:01, bruthig wrote: > On ...
4 years, 6 months ago (2016-06-15 18:14:09 UTC) #6
bruthig
https://codereview.chromium.org/2042073002/diff/20001/ui/views/controls/button/label_button.cc File ui/views/controls/button/label_button.cc (right): https://codereview.chromium.org/2042073002/diff/20001/ui/views/controls/button/label_button.cc#newcode444 ui/views/controls/button/label_button.cc:444: ? CreateDefaultInkDropRipple( On 2016/06/15 18:14:09, Evan Stade wrote: > ...
4 years, 6 months ago (2016-06-15 18:52:03 UTC) #7
Evan Stade
lg aside from one comment https://codereview.chromium.org/2042073002/diff/80001/ui/views/animation/ink_drop_host_view.cc File ui/views/animation/ink_drop_host_view.cc (right): https://codereview.chromium.org/2042073002/diff/80001/ui/views/animation/ink_drop_host_view.cc#newcode144 ui/views/animation/ink_drop_host_view.cc:144: const ui::LocatedEvent* InkDropHostView::AsLocatedEvent( I'm ...
4 years, 6 months ago (2016-06-15 20:34:42 UTC) #8
bruthig
sky@, can you PTAL? https://codereview.chromium.org/2042073002/diff/80001/ui/views/animation/ink_drop_host_view.cc File ui/views/animation/ink_drop_host_view.cc (right): https://codereview.chromium.org/2042073002/diff/80001/ui/views/animation/ink_drop_host_view.cc#newcode144 ui/views/animation/ink_drop_host_view.cc:144: const ui::LocatedEvent* InkDropHostView::AsLocatedEvent( On 2016/06/15 ...
4 years, 6 months ago (2016-06-15 21:43:20 UTC) #10
Evan Stade
On 2016/06/15 21:43:20, bruthig wrote: > sky@, can you PTAL? > > https://codereview.chromium.org/2042073002/diff/80001/ui/views/animation/ink_drop_host_view.cc > File ...
4 years, 6 months ago (2016-06-15 23:04:09 UTC) #11
sky
https://codereview.chromium.org/2042073002/diff/100001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.h File chrome/browser/ui/views/location_bar/icon_label_bubble_view.h (right): https://codereview.chromium.org/2042073002/diff/100001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.h#newcode79 chrome/browser/ui/views/location_bar/icon_label_bubble_view.h:79: virtual bool OnActivate(const ui::Event* event); Can this be a ...
4 years, 6 months ago (2016-06-16 16:50:03 UTC) #13
bruthig
sky@, can you PTAL? sadrul@, can you take a look at: - LocatedEvent::AsLocatedEventIfLocatedEvent() https://codereview.chromium.org/2042073002/diff/100001/chrome/browser/ui/views/location_bar/icon_label_bubble_view.h File ...
4 years, 6 months ago (2016-06-16 19:50:02 UTC) #14
sky
https://codereview.chromium.org/2042073002/diff/120001/ui/views/controls/button/custom_button.cc File ui/views/controls/button/custom_button.cc (right): https://codereview.chromium.org/2042073002/diff/120001/ui/views/controls/button/custom_button.cc#newcode167 ui/views/controls/button/custom_button.cc:167: SetState(ShouldEnterPushedState(event) ? STATE_PRESSED : STATE_HOVERED); Why can't you use ...
4 years, 6 months ago (2016-06-16 22:03:09 UTC) #15
bruthig
sky@, PTAL https://codereview.chromium.org/2042073002/diff/120001/ui/views/controls/button/custom_button.cc File ui/views/controls/button/custom_button.cc (right): https://codereview.chromium.org/2042073002/diff/120001/ui/views/controls/button/custom_button.cc#newcode167 ui/views/controls/button/custom_button.cc:167: SetState(ShouldEnterPushedState(event) ? STATE_PRESSED : STATE_HOVERED); On 2016/06/16 ...
4 years, 6 months ago (2016-06-17 13:39:59 UTC) #16
sky
LGTM
4 years, 6 months ago (2016-06-17 14:58:51 UTC) #17
sadrul
https://codereview.chromium.org/2042073002/diff/100001/ui/events/event_utils.h File ui/events/event_utils.h (right): https://codereview.chromium.org/2042073002/diff/100001/ui/events/event_utils.h#newcode184 ui/events/event_utils.h:184: EVENTS_EXPORT const ui::LocatedEvent* ToLocatedEventOrNull( On 2016/06/16 19:50:02, bruthig wrote: ...
4 years, 6 months ago (2016-06-17 16:03:22 UTC) #18
bruthig
On 2016/06/17 16:03:22, sadrul wrote: > https://codereview.chromium.org/2042073002/diff/100001/ui/events/event_utils.h > File ui/events/event_utils.h (right): > > https://codereview.chromium.org/2042073002/diff/100001/ui/events/event_utils.h#newcode184 > ...
4 years, 6 months ago (2016-06-17 17:36:31 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2042073002/180001
4 years, 6 months ago (2016-06-20 12:09:29 UTC) #23
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 6 months ago (2016-06-20 13:15:54 UTC) #25
commit-bot: I haz the power
4 years, 6 months ago (2016-06-20 13:17:22 UTC) #27
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/854a6b15453fce54325ecfe2611a4c854ad7573c
Cr-Commit-Position: refs/heads/master@{#400666}

Powered by Google App Engine
This is Rietveld 408576698