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

Issue 2596743002: Replace WM shadow types (on/off) and styles (small/inactive/active) (Closed)

Created:
4 years ago by Evan Stade
Modified:
3 years, 11 months ago
Reviewers:
James Cook, reveman, sky
CC:
aboxhall+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, davemoore+watch_chromium.org, dcheng, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, groby+bubble_chromium.org, hcarmona+bubble_chromium.org, jam, je_julie, kalyank, msw+watch_chromium.org, nektar+watch_chromium.org, oshima+watch_chromium.org, rouslan+bubble_chromium.org, sadrul, tfarina, yuzo+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace WM shadow types (on/off) and styles (small/inactive/active) with elevation values instead. This is necessary to allow different windows of the same UI or WM window type to specify different shadow appearances. This also makes more sense in that active windows aren't the only ones to get big shadows. Concretely, this is a requirement for updating Toast shadows. BUG=608852, 676223 TBR=reveman@chromium.org Committed: https://crrev.com/ba7b9d74bdd0fa555c7997c459ddd0d6c05cc78a Cr-Commit-Position: refs/heads/master@{#441441}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 11

Patch Set 3 : sky review #

Patch Set 4 : fix tests #

Patch Set 5 : rebase and fix more tests #

Patch Set 6 : one more mechanical change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -141 lines) Patch
M ash/common/wm/overview/window_grid.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M ash/common/wm/overview/window_selector_item.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/shell/window_type_launcher.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M ash/wm/drag_window_controller.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/accessibility/chromevox_panel.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/exo/shell_surface.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M components/exo/shell_surface_unittest.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M ui/keyboard/content/keyboard_ui_content.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M ui/views/bubble/tray_bubble_view.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M ui/views/widget/widget.h View 1 2 3 chunks +8 lines, -0 lines 0 comments Download
M ui/wm/core/shadow.h View 1 2 3 3 chunks +14 lines, -29 lines 0 comments Download
M ui/wm/core/shadow.cc View 1 2 3 5 chunks +13 lines, -25 lines 0 comments Download
M ui/wm/core/shadow_controller.cc View 1 2 8 chunks +30 lines, -42 lines 0 comments Download
M ui/wm/core/shadow_controller_unittest.cc View 1 2 3 9 chunks +11 lines, -11 lines 0 comments Download
M ui/wm/core/shadow_types.h View 1 2 1 chunk +11 lines, -8 lines 0 comments Download
M ui/wm/core/shadow_types.cc View 1 chunk +8 lines, -6 lines 0 comments Download
M ui/wm/core/shadow_unittest.cc View 1 2 3 4 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 37 (23 generated)
Evan Stade
+sky, jamescook (I know you're both OOO, but so is everyone it seems. No rush.) ...
4 years ago (2016-12-21 16:57:57 UTC) #6
sky
https://codereview.chromium.org/2596743002/diff/20001/ash/common/wm/overview/window_grid.cc File ash/common/wm/overview/window_grid.cc (right): https://codereview.chromium.org/2596743002/diff/20001/ash/common/wm/overview/window_grid.cc#newcode679 ash/common/wm/overview/window_grid.cc:679: selector_shadow_->Init(::wm::ShadowElevation::BIG); Inside ShadowController you define kActiveNormalShadowElevation, should this code ...
3 years, 11 months ago (2017-01-03 22:35:38 UTC) #7
Evan Stade
https://codereview.chromium.org/2596743002/diff/20001/ash/common/wm/overview/window_grid.cc File ash/common/wm/overview/window_grid.cc (right): https://codereview.chromium.org/2596743002/diff/20001/ash/common/wm/overview/window_grid.cc#newcode679 ash/common/wm/overview/window_grid.cc:679: selector_shadow_->Init(::wm::ShadowElevation::BIG); On 2017/01/03 22:35:38, sky (OOO) wrote: > Inside ...
3 years, 11 months ago (2017-01-04 00:20:45 UTC) #8
sky
LGTM
3 years, 11 months ago (2017-01-04 00:32:20 UTC) #11
James Cook
Code LGTM but it looks like you need to update some unit tests.
3 years, 11 months ago (2017-01-04 16:51:45 UTC) #14
Evan Stade
thanks! tbr reveman for mechanical changes in components/exo/shell_surface.cc
3 years, 11 months ago (2017-01-04 17:21:35 UTC) #17
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/2596743002/60001
3 years, 11 months ago (2017-01-04 17:22:00 UTC) #20
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/2596743002/80001
3 years, 11 months ago (2017-01-04 17:54:44 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/340516)
3 years, 11 months ago (2017-01-04 18:27:35 UTC) #25
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/2596743002/100001
3 years, 11 months ago (2017-01-04 18:45:49 UTC) #28
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/2596743002/100001
3 years, 11 months ago (2017-01-04 19:58:02 UTC) #31
commit-bot: I haz the power
Committed patchset #6 (id:100001)
3 years, 11 months ago (2017-01-04 20:06:40 UTC) #34
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/ba7b9d74bdd0fa555c7997c459ddd0d6c05cc78a Cr-Commit-Position: refs/heads/master@{#441441}
3 years, 11 months ago (2017-01-04 20:09:41 UTC) #36
reveman
3 years, 11 months ago (2017-01-05 03:21:40 UTC) #37
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698