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

Issue 2897533003: Change default ink drop center points to center of contents bounds (Closed)

Created:
3 years, 7 months ago by Evan Stade
Modified:
3 years, 7 months ago
Reviewers:
sky, bruthig
CC:
chromium-reviews, tfarina, bruthig+ink_drop_chromium.org, dcheng
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Change default ink drop center points to center of contents bounds rather than local bounds. This needs RTL mirroring, so introduce utility View::GetMirroredRect() and use it to reduce verbosity in a bunch of places that are currently using GetMirroredXForRect(). BUG=724675 Review-Url: https://codereview.chromium.org/2897533003 Cr-Commit-Position: refs/heads/master@{#474120} Committed: https://chromium.googlesource.com/chromium/src/+/8c7cdc7b3156ce8527708922c7b6b1208ad805f0

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : mirrored #

Patch Set 4 : . #

Total comments: 2

Patch Set 5 : bruthig nit #

Patch Set 6 : fix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -59 lines) Patch
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_header_painter_ash.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/contents_layout_manager.cc View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/status_bubble_views.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 2 4 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/toolbar/app_menu.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.cc View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_button.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_button.cc View 1 chunk +0 lines, -11 lines 0 comments Download
M ui/views/animation/ink_drop_host_view.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M ui/views/view.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/view.cc View 1 2 3 1 chunk +8 lines, -3 lines 0 comments Download

Messages

Total messages: 28 (22 generated)
Evan Stade
3 years, 7 months ago (2017-05-22 20:26:52 UTC) #11
bruthig
ink_drop* looks good to me with nit https://codereview.chromium.org/2897533003/diff/60001/ui/views/animation/ink_drop_host_view.h File ui/views/animation/ink_drop_host_view.h (right): https://codereview.chromium.org/2897533003/diff/60001/ui/views/animation/ink_drop_host_view.h#newcode137 ui/views/animation/ink_drop_host_view.h:137: gfx::PointF GetMirroredCenterPoint() ...
3 years, 7 months ago (2017-05-23 14:43:31 UTC) #16
sky
Nice simplification! LGTM
3 years, 7 months ago (2017-05-23 18:02:18 UTC) #21
Evan Stade
https://codereview.chromium.org/2897533003/diff/60001/ui/views/animation/ink_drop_host_view.h File ui/views/animation/ink_drop_host_view.h (right): https://codereview.chromium.org/2897533003/diff/60001/ui/views/animation/ink_drop_host_view.h#newcode137 ui/views/animation/ink_drop_host_view.h:137: gfx::PointF GetMirroredCenterPoint() const; On 2017/05/23 14:43:31, bruthig wrote: > ...
3 years, 7 months ago (2017-05-23 23:02:38 UTC) #22
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/2897533003/100001
3 years, 7 months ago (2017-05-23 23:04:32 UTC) #25
commit-bot: I haz the power
3 years, 7 months ago (2017-05-24 00:25:47 UTC) #28
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/8c7cdc7b3156ce8527708922c7b6...

Powered by Google App Engine
This is Rietveld 408576698