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

Issue 2510603003: Add ink drop ripple to status tray (Closed)

Created:
4 years, 1 month ago by mohsen
Modified:
4 years, 1 month ago
Reviewers:
tdanderson, bruthig
CC:
bruthig+ink_drop_chromium.org, chromium-reviews, dcheng, kalyank, sadrul, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ink drop ripple to status tray This is still not handling view resizes that happen when an ink drop is active (e.g., in status tray). A workaround is implemented, but proper fix would need a follow-up CL. This CL also changes round rect mask to take insets instead of bounds so that there would be no need to update mask bounds when size of host view is updated. BUG=612544 TEST=manual Committed: https://crrev.com/c109436f07a06f711d50c982e2284f1460abd8a9 Cr-Commit-Position: refs/heads/master@{#433113}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed review comments #

Total comments: 2

Patch Set 3 : Rebased #

Patch Set 4 : Addressed review comments #

Total comments: 8

Patch Set 5 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -34 lines) Patch
M ash/common/system/tray/system_tray.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M ash/common/system/tray/tray_background_view.h View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M ash/common/system/tray/tray_background_view.cc View 1 2 3 4 5 chunks +58 lines, -20 lines 0 comments Download
M ash/common/system/tray/tray_popup_utils.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ash/common/system/tray/tray_popup_utils.cc View 1 2 2 chunks +19 lines, -7 lines 0 comments Download
M ash/common/system/user/tray_user.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_host_view.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/animation/ink_drop_mask.h View 1 3 chunks +10 lines, -3 lines 0 comments Download
M ui/views/animation/ink_drop_mask.cc View 3 chunks +9 lines, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 30 (21 generated)
mohsen
+bruthig@ for changes in /ui/views/animations/. +tdanderson@ for changes in /ash/common/system/. PTAL. This CL depends on ...
4 years, 1 month ago (2016-11-17 05:27:33 UTC) #4
bruthig
See comments inline. https://codereview.chromium.org/2510603003/diff/1/ash/common/system/tray/system_tray.cc File ash/common/system/tray/system_tray.cc (right): https://codereview.chromium.org/2510603003/diff/1/ash/common/system/tray/system_tray.cc#newcode872 ash/common/system/tray/system_tray.cc:872: gfx::Insets SystemTray::GetBackgroundInsets() const { Double check ...
4 years, 1 month ago (2016-11-17 06:31:21 UTC) #5
mohsen
bruthig@: please take another look... https://codereview.chromium.org/2510603003/diff/1/ash/common/system/tray/system_tray.cc File ash/common/system/tray/system_tray.cc (right): https://codereview.chromium.org/2510603003/diff/1/ash/common/system/tray/system_tray.cc#newcode872 ash/common/system/tray/system_tray.cc:872: gfx::Insets SystemTray::GetBackgroundInsets() const { ...
4 years, 1 month ago (2016-11-17 20:10:13 UTC) #15
bruthig
lgtm with nits https://codereview.chromium.org/2510603003/diff/40001/ash/common/system/tray/tray_background_view.h File ash/common/system/tray/tray_background_view.h (right): https://codereview.chromium.org/2510603003/diff/40001/ash/common/system/tray/tray_background_view.h#newcode167 ash/common/system/tray/tray_background_view.h:167: gfx::Rect GetBackgroundBounds() const; With the name ...
4 years, 1 month ago (2016-11-17 21:48:02 UTC) #18
tdanderson
LGTM with nits https://codereview.chromium.org/2510603003/diff/80001/ash/common/system/tray/tray_background_view.cc File ash/common/system/tray/tray_background_view.cc (right): https://codereview.chromium.org/2510603003/diff/80001/ash/common/system/tray/tray_background_view.cc#newcode61 ash/common/system/tray/tray_background_view.cc:61: // Switches left and right insets ...
4 years, 1 month ago (2016-11-17 23:55:22 UTC) #23
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/2510603003/90001
4 years, 1 month ago (2016-11-18 00:05:55 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:90001)
4 years, 1 month ago (2016-11-18 04:46:17 UTC) #27
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/c109436f07a06f711d50c982e2284f1460abd8a9 Cr-Commit-Position: refs/heads/master@{#433113}
4 years, 1 month ago (2016-11-18 04:48:28 UTC) #29
mohsen
4 years, 1 month ago (2016-11-18 05:20:56 UTC) #30
Message was sent while issue was closed.
Forgot to send my response to comments!

https://codereview.chromium.org/2510603003/diff/40001/ash/common/system/tray/...
File ash/common/system/tray/tray_background_view.h (right):

https://codereview.chromium.org/2510603003/diff/40001/ash/common/system/tray/...
ash/common/system/tray/tray_background_view.h:167: gfx::Rect
GetBackgroundBounds() const;
On 2016/11/17 at 21:48:01, bruthig wrote:
> With the name 'GetBackgroundBounds()' I would expect this to be used by
PaintMaterial() and for the creation of the InkDropMask, but
'GetBackgroundBounds()' is adding some extra padding to work around dynamically
resizing hosts and shouldn't be used in these places. So I still think this
would be better named as GetInkDropBounds()

Right. Done.

https://codereview.chromium.org/2510603003/diff/80001/ash/common/system/tray/...
File ash/common/system/tray/tray_background_view.cc (right):

https://codereview.chromium.org/2510603003/diff/80001/ash/common/system/tray/...
ash/common/system/tray/tray_background_view.cc:604: // coordinates.
On 2016/11/17 at 23:55:21, tdanderson wrote:
> Please adjust whitespace as discussed.
> 
> How about "|insets| are relative to contents bounds. Change them to be
relative to local bounds."

Done.

https://codereview.chromium.org/2510603003/diff/80001/ash/common/system/tray/...
File ash/common/system/tray/tray_background_view.h (right):

https://codereview.chromium.org/2510603003/diff/80001/ash/common/system/tray/...
ash/common/system/tray/tray_background_view.h:162: // Helper function that
returns background insets relative to local bounds.
On 2016/11/17 at 23:55:21, tdanderson wrote:
> nit: perhaps "calculates" instead of "returns" ?

Done.

https://codereview.chromium.org/2510603003/diff/80001/ash/common/system/tray/...
File ash/common/system/tray/tray_popup_utils.h (right):

https://codereview.chromium.org/2510603003/diff/80001/ash/common/system/tray/...
ash/common/system/tray/tray_popup_utils.h:165: // Returns the effective ink drop
bounds for |host| according to the
On 2016/11/17 at 23:55:22, tdanderson wrote:
> nit: this comment references "bounds" but the function returns gfx::Insets.
Can you please update the comment accordingly?

Oops! Forgot to fix the comment! Thanks. Done.

Powered by Google App Engine
This is Rietveld 408576698