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

Issue 2555373004: Apply new MD shadows to CrOS tray bubbles. (Closed)

Created:
4 years ago by Evan Stade
Modified:
4 years ago
Reviewers:
msw, James Cook, sky
CC:
chromium-reviews, groby+bubble_chromium.org, sadrul, yusukes+watch_chromium.org, Peter Beverloo, tfarina, mlamouri+watch-notifications_chromium.org, shuchen+watch_chromium.org, nona+watch_chromium.org, msw+watch_chromium.org, oshima+watch_chromium.org, kalyank, hcarmona+bubble_chromium.org, rouslan+bubble_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Apply new MD shadows to CrOS tray bubbles. * affects system menu, message center, palette bubble, ime bubble, etc. * WM shadow aperture calculation is adjusted to work better for small windows (like the message center when it's empty). There's a TODO here which will have to wait for Sebastien to get back so he can give feedback on what to do in this case. * fix alignment of NO_ASSETS bubble --- don't account for non-existent stroke. * existing BubbleBorder tests applied to more different kinds of bubble BUG=608852 Committed: https://crrev.com/ff9d99415ba8fd50e6b02d17a4540a30fafafe54 Cr-Commit-Position: refs/heads/master@{#438196}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : leave activation alone #

Total comments: 10

Patch Set 4 : comment #

Total comments: 5

Patch Set 5 : fix test for mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -173 lines) Patch
M ash/common/system/tray/tray_background_view.cc View 1 2 3 4 1 chunk +4 lines, -12 lines 0 comments Download
M ui/views/bubble/bubble_border.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/bubble/bubble_border.cc View 3 chunks +12 lines, -8 lines 0 comments Download
M ui/views/bubble/bubble_border_unittest.cc View 1 2 3 4 1 chunk +160 lines, -131 lines 0 comments Download
M ui/views/bubble/tray_bubble_view.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M ui/wm/core/shadow.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/wm/core/shadow.cc View 1 2 3 4 2 chunks +15 lines, -9 lines 0 comments Download
M ui/wm/core/shadow_controller.cc View 1 2 3 2 chunks +15 lines, -12 lines 0 comments Download

Messages

Total messages: 58 (23 generated)
Evan Stade
jamescook, ptal ash/ and shadow.cc msw, ptal ui/views/bubble/
4 years ago (2016-12-08 20:57:08 UTC) #5
Evan Stade
https://codereview.chromium.org/2555373004/diff/20001/ui/views/bubble/bubble_border_unittest.cc File ui/views/bubble/bubble_border_unittest.cc (right): https://codereview.chromium.org/2555373004/diff/20001/ui/views/bubble/bubble_border_unittest.cc#newcode330 ui/views/bubble/bubble_border_unittest.cc:330: const gfx::Size kContentSize(500, 600); summary of changes to this ...
4 years ago (2016-12-08 21:00:27 UTC) #6
msw
ui/views/bubble lgtm with a nit; I hope the activation change is okay. https://codereview.chromium.org/2555373004/diff/20001/ui/views/bubble/tray_bubble_view.cc File ui/views/bubble/tray_bubble_view.cc ...
4 years ago (2016-12-08 22:09:46 UTC) #9
Evan Stade
On 2016/12/08 22:09:46, msw wrote: > ui/views/bubble lgtm with a nit; I hope the activation ...
4 years ago (2016-12-09 00:51:40 UTC) #12
Evan Stade
(so please hold off on reviewing for now)
4 years ago (2016-12-09 16:40:13 UTC) #13
James Cook
On 2016/12/09 16:40:13, Evan Stade wrote: > (so please hold off on reviewing for now) ...
4 years ago (2016-12-09 17:00:45 UTC) #14
Evan Stade
On 2016/12/09 17:00:45, James Cook wrote: > On 2016/12/09 16:40:13, Evan Stade wrote: > > ...
4 years ago (2016-12-09 17:23:03 UTC) #15
James Cook
Are the shadow changes tied to a flag, or are they on by default for ...
4 years ago (2016-12-09 19:40:13 UTC) #21
Evan Stade
On 2016/12/09 19:40:13, James Cook wrote: > Are the shadow changes tied to a flag, ...
4 years ago (2016-12-09 21:09:18 UTC) #22
Evan Stade
https://codereview.chromium.org/2555373004/diff/40001/ui/wm/core/shadow_controller.cc File ui/wm/core/shadow_controller.cc (right): https://codereview.chromium.org/2555373004/diff/40001/ui/wm/core/shadow_controller.cc#newcode58 ui/wm/core/shadow_controller.cc:58: case ui::wm::WINDOW_TYPE_POPUP: On 2016/12/09 21:09:18, Evan Stade wrote: > ...
4 years ago (2016-12-09 21:20:32 UTC) #23
James Cook
On 2016/12/09 21:20:32, Evan Stade wrote: > https://codereview.chromium.org/2555373004/diff/40001/ui/wm/core/shadow_controller.cc > File ui/wm/core/shadow_controller.cc (right): > > https://codereview.chromium.org/2555373004/diff/40001/ui/wm/core/shadow_controller.cc#newcode58 ...
4 years ago (2016-12-09 22:39:57 UTC) #24
Evan Stade
On 2016/12/09 22:39:57, James Cook wrote: > I'll look at the CL again later today, ...
4 years ago (2016-12-09 23:06:16 UTC) #25
James Cook
On 2016/12/09 23:06:16, Evan Stade wrote: > On 2016/12/09 22:39:57, James Cook wrote: > > ...
4 years ago (2016-12-10 00:00:55 UTC) #26
Evan Stade
On 2016/12/10 00:00:55, James Cook wrote: > On 2016/12/09 23:06:16, Evan Stade wrote: > > ...
4 years ago (2016-12-10 00:18:06 UTC) #27
James Cook
https://codereview.chromium.org/2555373004/diff/40001/ui/wm/core/shadow_controller.cc File ui/wm/core/shadow_controller.cc (right): https://codereview.chromium.org/2555373004/diff/40001/ui/wm/core/shadow_controller.cc#newcode205 ui/wm/core/shadow_controller.cc:205: GetShadowStyleForWindow(lost_active) == Shadow::STYLE_INACTIVE) { On 2016/12/09 21:09:18, Evan Stade ...
4 years ago (2016-12-10 00:19:16 UTC) #28
msw
On 2016/12/10 00:18:06, Evan Stade wrote: > here it is on a white bg: https://screenshot.googleplex.com/sMyZxrBYQvY.png ...
4 years ago (2016-12-10 00:20:07 UTC) #29
James Cook
On 2016/12/10 00:20:07, msw wrote: > On 2016/12/10 00:18:06, Evan Stade wrote: > > here ...
4 years ago (2016-12-10 00:22:23 UTC) #30
Evan Stade
On 2016/12/10 00:20:07, msw wrote: > On 2016/12/10 00:18:06, Evan Stade wrote: > > here ...
4 years ago (2016-12-10 00:23:07 UTC) #31
Evan Stade
On 2016/12/10 00:22:23, James Cook wrote: > Also, the top-left corner looks a little odd, ...
4 years ago (2016-12-10 00:24:41 UTC) #32
James Cook
On 2016/12/10 00:24:41, Evan Stade wrote: > On 2016/12/10 00:22:23, James Cook wrote: > > ...
4 years ago (2016-12-10 00:31:18 UTC) #33
Evan Stade
On 2016/12/10 00:31:18, James Cook wrote: > On 2016/12/10 00:24:41, Evan Stade wrote: > > ...
4 years ago (2016-12-12 17:08:34 UTC) #34
James Cook
On 2016/12/12 17:08:34, Evan Stade wrote: > On 2016/12/10 00:31:18, James Cook wrote: > > ...
4 years ago (2016-12-12 17:22:49 UTC) #35
Evan Stade
https://codereview.chromium.org/2555373004/diff/60001/ui/wm/core/shadow_controller.cc File ui/wm/core/shadow_controller.cc (right): https://codereview.chromium.org/2555373004/diff/60001/ui/wm/core/shadow_controller.cc#newcode58 ui/wm/core/shadow_controller.cc:58: return Shadow::STYLE_ACTIVE; On 2016/12/10 00:19:16, James Cook wrote: > ...
4 years ago (2016-12-12 17:51:20 UTC) #36
James Cook
+sky -- do you have thoughts on ui/wm/core/shadow_controller.cc line 58? https://codereview.chromium.org/2555373004/diff/60001/ui/wm/core/shadow_controller.cc File ui/wm/core/shadow_controller.cc (right): https://codereview.chromium.org/2555373004/diff/60001/ui/wm/core/shadow_controller.cc#newcode58 ...
4 years ago (2016-12-12 18:33:07 UTC) #38
sky
https://codereview.chromium.org/2555373004/diff/60001/ui/wm/core/shadow_controller.cc File ui/wm/core/shadow_controller.cc (right): https://codereview.chromium.org/2555373004/diff/60001/ui/wm/core/shadow_controller.cc#newcode58 ui/wm/core/shadow_controller.cc:58: return Shadow::STYLE_ACTIVE; On 2016/12/12 18:33:07, James Cook wrote: > ...
4 years ago (2016-12-12 19:16:54 UTC) #39
Evan Stade
https://codereview.chromium.org/2555373004/diff/60001/ui/wm/core/shadow_controller.cc File ui/wm/core/shadow_controller.cc (right): https://codereview.chromium.org/2555373004/diff/60001/ui/wm/core/shadow_controller.cc#newcode58 ui/wm/core/shadow_controller.cc:58: return Shadow::STYLE_ACTIVE; On 2016/12/12 18:33:07, James Cook wrote: > ...
4 years ago (2016-12-12 21:28:40 UTC) #40
James Cook
On 2016/12/12 21:28:40, Evan Stade wrote: > https://codereview.chromium.org/2555373004/diff/60001/ui/wm/core/shadow_controller.cc > File ui/wm/core/shadow_controller.cc (right): > > https://codereview.chromium.org/2555373004/diff/60001/ui/wm/core/shadow_controller.cc#newcode58 ...
4 years ago (2016-12-12 22:35:26 UTC) #41
Evan Stade
On 2016/12/12 22:35:26, James Cook wrote: > On 2016/12/12 21:28:40, Evan Stade wrote: > > ...
4 years ago (2016-12-12 22:38:48 UTC) #42
Evan Stade
On 2016/12/12 22:35:26, James Cook wrote: > On 2016/12/12 21:28:40, Evan Stade wrote: > > ...
4 years ago (2016-12-12 22:38:50 UTC) #43
James Cook
Ah, that makes more sense. LGTM.
4 years ago (2016-12-13 00:10:43 UTC) #44
James Cook
On 2016/12/13 00:10:43, James Cook wrote: > Ah, that makes more sense. LGTM. sky, does ...
4 years ago (2016-12-13 00:59:05 UTC) #47
sky
Yes, LGTM.
4 years ago (2016-12-13 02:05:02 UTC) #50
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/2555373004/80001
4 years ago (2016-12-13 15:57:58 UTC) #53
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-13 17:05:42 UTC) #56
commit-bot: I haz the power
4 years ago (2016-12-13 17:07:31 UTC) #58
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/ff9d99415ba8fd50e6b02d17a4540a30fafafe54
Cr-Commit-Position: refs/heads/master@{#438196}

Powered by Google App Engine
This is Rietveld 408576698