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

Issue 2239233002: [ash-md] Fades overview header in and out (Closed)

Created:
4 years, 4 months ago by varkha
Modified:
4 years, 3 months ago
Reviewers:
sky, bruthig
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ash-md] Fades overview header in and out This change installs an additional header on top of the real window's header and animates its bounds and opacity such that it appears to take over the real header. Only once the "fake" header is opaque a mask or alpha shape is applied to the window to hide its original header after which the "fake" header becomes translucent to conform to MD overview mode spec. This creates a visually smoother transition into overview mode than before. Special care is taken to animate the "fake" header in case when the window is restored for the overview mode from the minimized state and is thus animated from the shelf item. BUG=624608, 645076 TEST=Most changes are only really visible under a great slow-down but watching closely the files app header transform into overview mode should be much less abrupt. Committed: https://crrev.com/f5d0098acc9a8167409476627eae3e91d94e8cac Cr-Commit-Position: refs/heads/master@{#417728}

Patch Set 1 #

Patch Set 2 : [ash-md] Fades overview header in and out #

Patch Set 3 : [ash-md] Fades overview header in and out (minimized windows handling) #

Patch Set 4 : [ash-md] Fades overview header in and out (color tweaks and fix for non-animated case) #

Patch Set 5 : [ash-md] Fades overview header in and out (crash fix for non-md path) #

Total comments: 2

Patch Set 6 : [ash-md] Fades overview header in and out (rebase) #

Total comments: 21

Patch Set 7 : [ash-md] Fades overview header in and out (color cross-fade) #

Patch Set 8 : [ash-md] Fades overview header in and out (comments) #

Patch Set 9 : [ash-md] Fades overview header in and out (rebase) #

Total comments: 19

Patch Set 10 : [ash-md] Fades overview header in and out (mash tests) #

Patch Set 11 : [ash-md] Fades overview header in and out (dealing with crash during fade-out) #

Patch Set 12 : [ash-md] Fades overview header in and out (rebase) #

Patch Set 13 : [ash-md] Fades overview header in and out (fixed tests) #

Total comments: 10

Patch Set 14 : [ash-md] Fades overview header in and out (more tests) #

Total comments: 26

Patch Set 15 : [ash-md] Fades overview header in and out (comments) #

Total comments: 12

Patch Set 16 : [ash-md] Fades overview header in and out (comments and docs) #

Patch Set 17 : [ash-md] Fades overview header in and out (fixed a new test assertion) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+701 lines, -238 lines) Patch
M ash/aura/wm_window_aura.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
M ash/aura/wm_window_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +21 lines, -0 lines 0 comments Download
M ash/common/frame/custom_frame_view_ash.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -0 lines 0 comments Download
M ash/common/frame/default_header_painter.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ash/common/frame/default_header_painter.cc View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M ash/common/frame/header_view.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ash/common/frame/header_view.cc View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M ash/common/wm/overview/overview_animation_type.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M ash/common/wm/overview/scoped_overview_animation_settings.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -0 lines 0 comments Download
M ash/common/wm/overview/scoped_transform_overview_window.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +18 lines, -9 lines 0 comments Download
M ash/common/wm/overview/scoped_transform_overview_window.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +59 lines, -37 lines 0 comments Download
M ash/common/wm/overview/window_grid.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M ash/common/wm/overview/window_grid.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +36 lines, -31 lines 0 comments Download
M ash/common/wm/overview/window_selector_item.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 11 chunks +52 lines, -7 lines 0 comments Download
M ash/common/wm/overview/window_selector_item.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 23 chunks +341 lines, -119 lines 0 comments Download
M ash/common/wm_window.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -0 lines 0 comments Download
M ash/common/wm_window_property.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
M ash/mus/bridge/wm_window_mus.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
M ash/mus/bridge/wm_window_mus.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +27 lines, -0 lines 0 comments Download
M ash/wm/overview/scoped_overview_animation_settings_aura.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -2 lines 0 comments Download
M ash/wm/overview/scoped_overview_animation_settings_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +43 lines, -21 lines 0 comments Download
M ash/wm/overview/window_selector_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 17 chunks +35 lines, -8 lines 0 comments Download
M ash/wm/panels/panel_frame_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/client/aura_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -0 lines 0 comments Download
M ui/aura/client/aura_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 84 (60 generated)
varkha
sky@, this is still preliminary WIP but I wanted to see if what I am ...
4 years, 4 months ago (2016-08-12 21:12:28 UTC) #2
sky
Unfortunately what you have is the best we have at this point. Hopefully we'll get ...
4 years, 4 months ago (2016-08-12 21:48:36 UTC) #3
varkha
On 2016/08/12 21:48:36, sky wrote: > Unfortunately what you have is the best we have ...
4 years, 4 months ago (2016-08-12 22:02:11 UTC) #4
varkha
bruthig@, can you please take a look in ash/common/wm/overview/ and ash/wm/overview/ ? Thanks!
4 years, 4 months ago (2016-08-24 00:43:50 UTC) #11
bruthig
https://codereview.chromium.org/2239233002/diff/100001/ash/common/wm/overview/scoped_transform_overview_window.cc File ash/common/wm/overview/scoped_transform_overview_window.cc (right): https://codereview.chromium.org/2239233002/diff/100001/ash/common/wm/overview/scoped_transform_overview_window.cc#newcode303 ash/common/wm/overview/scoped_transform_overview_window.cc:303: // corners. Its layout needs to be update when ...
4 years, 3 months ago (2016-08-30 17:57:33 UTC) #19
varkha
https://codereview.chromium.org/2239233002/diff/120001/ash/common/wm/overview/scoped_transform_overview_window.cc File ash/common/wm/overview/scoped_transform_overview_window.cc (right): https://codereview.chromium.org/2239233002/diff/120001/ash/common/wm/overview/scoped_transform_overview_window.cc#newcode292 ash/common/wm/overview/scoped_transform_overview_window.cc:292: void OnLayerAnimationAborted(ui::LayerAnimationSequence* sequence) override {} On 2016/08/30 17:57:33, bruthig ...
4 years, 3 months ago (2016-09-02 11:22:51 UTC) #22
varkha
https://codereview.chromium.org/2239233002/diff/180001/ui/wm/core/shadow.cc File ui/wm/core/shadow.cc (right): https://codereview.chromium.org/2239233002/diff/180001/ui/wm/core/shadow.cc#newcode202 ui/wm/core/shadow.cc:202: interior_inset_ + kRoundedCornerRadius, On 2016/09/02 11:22:51, varkha wrote: > ...
4 years, 3 months ago (2016-09-02 15:43:56 UTC) #27
bruthig
https://codereview.chromium.org/2239233002/diff/120001/ash/common/wm/overview/scoped_transform_overview_window.cc File ash/common/wm/overview/scoped_transform_overview_window.cc (right): https://codereview.chromium.org/2239233002/diff/120001/ash/common/wm/overview/scoped_transform_overview_window.cc#newcode323 ash/common/wm/overview/scoped_transform_overview_window.cc:323: bool use_mask_; On 2016/09/02 11:22:51, varkha wrote: > On ...
4 years, 3 months ago (2016-09-02 16:00:13 UTC) #28
varkha
Still working through the comments while optimizing the looks. The latest patch supports properly animating ...
4 years, 3 months ago (2016-09-02 21:38:37 UTC) #35
varkha
https://codereview.chromium.org/2239233002/diff/180001/ash/common/wm/overview/scoped_transform_overview_window.cc File ash/common/wm/overview/scoped_transform_overview_window.cc (right): https://codereview.chromium.org/2239233002/diff/180001/ash/common/wm/overview/scoped_transform_overview_window.cc#newcode301 ash/common/wm/overview/scoped_transform_overview_window.cc:301: ShowHeaderAndResetShape(); On 2016/09/02 16:00:12, bruthig wrote: > AFAICT it ...
4 years, 3 months ago (2016-09-08 00:09:50 UTC) #40
varkha
sky@, can you also comment on this CL? Thanks!
4 years, 3 months ago (2016-09-08 17:51:15 UTC) #51
sky
https://codereview.chromium.org/2239233002/diff/300001/ash/common/wm/overview/scoped_overview_animation_settings.h File ash/common/wm/overview/scoped_overview_animation_settings.h (right): https://codereview.chromium.org/2239233002/diff/300001/ash/common/wm/overview/scoped_overview_animation_settings.h#newcode19 ash/common/wm/overview/scoped_overview_animation_settings.h:19: virtual void AddObserver(ui::ImplicitAnimationObserver* observer) = 0; Don't you need ...
4 years, 3 months ago (2016-09-08 18:30:17 UTC) #52
bruthig
Mostly nits, 1 concern about the ImplicitAnimationObserver. https://codereview.chromium.org/2239233002/diff/180001/ash/common/wm/overview/window_selector_item.cc File ash/common/wm/overview/window_selector_item.cc (right): https://codereview.chromium.org/2239233002/diff/180001/ash/common/wm/overview/window_selector_item.cc#newcode704 ash/common/wm/overview/window_selector_item.cc:704: window_label_button_view_->SetVisible(true); On ...
4 years, 3 months ago (2016-09-08 18:32:50 UTC) #53
varkha
https://codereview.chromium.org/2239233002/diff/260001/ash/common/wm/overview/window_selector_item.cc File ash/common/wm/overview/window_selector_item.cc (right): https://codereview.chromium.org/2239233002/diff/260001/ash/common/wm/overview/window_selector_item.cc#newcode190 ash/common/wm/overview/window_selector_item.cc:190: layer_->GetAnimator()->AddObserver(this); On 2016/09/08 18:32:49, bruthig wrote: > nit: As ...
4 years, 3 months ago (2016-09-09 02:25:26 UTC) #54
bruthig
lgtm https://codereview.chromium.org/2239233002/diff/260001/ash/common/wm/overview/window_selector_item.cc File ash/common/wm/overview/window_selector_item.cc (right): https://codereview.chromium.org/2239233002/diff/260001/ash/common/wm/overview/window_selector_item.cc#newcode201 ash/common/wm/overview/window_selector_item.cc:201: // Tests complete animations immediately. Emulate by invoking ...
4 years, 3 months ago (2016-09-09 13:58:27 UTC) #60
sky
Thanks for the improved docs! Just a couple of suggestions on naming. https://codereview.chromium.org/2239233002/diff/340001/ash/common/wm/overview/window_selector_item.cc File ash/common/wm/overview/window_selector_item.cc ...
4 years, 3 months ago (2016-09-09 16:13:20 UTC) #61
varkha
Thanks! PTAL. https://codereview.chromium.org/2239233002/diff/340001/ash/common/wm/overview/window_selector_item.cc File ash/common/wm/overview/window_selector_item.cc (right): https://codereview.chromium.org/2239233002/diff/340001/ash/common/wm/overview/window_selector_item.cc#newcode170 ash/common/wm/overview/window_selector_item.cc:170: // - Opacity animation. The header is ...
4 years, 3 months ago (2016-09-09 16:37:46 UTC) #64
varkha
https://codereview.chromium.org/2239233002/diff/340001/ash/common/wm/overview/window_selector_item.cc File ash/common/wm/overview/window_selector_item.cc (right): https://codereview.chromium.org/2239233002/diff/340001/ash/common/wm/overview/window_selector_item.cc#newcode273 ash/common/wm/overview/window_selector_item.cc:273: WmWindow* label_window = WmLookup::Get()->GetWindowForWidget(GetWidget()); On 2016/09/09 16:37:46, varkha wrote: ...
4 years, 3 months ago (2016-09-09 16:47:08 UTC) #65
varkha
https://codereview.chromium.org/2239233002/diff/340001/ash/common/wm/overview/window_selector_item.cc File ash/common/wm/overview/window_selector_item.cc (right): https://codereview.chromium.org/2239233002/diff/340001/ash/common/wm/overview/window_selector_item.cc#newcode273 ash/common/wm/overview/window_selector_item.cc:273: WmWindow* label_window = WmLookup::Get()->GetWindowForWidget(GetWidget()); On 2016/09/09 16:47:08, varkha wrote: ...
4 years, 3 months ago (2016-09-09 16:51:47 UTC) #67
sky
LGTM
4 years, 3 months ago (2016-09-09 20:29:37 UTC) #74
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/2239233002/400001
4 years, 3 months ago (2016-09-09 22:01:01 UTC) #79
commit-bot: I haz the power
Committed patchset #17 (id:400001)
4 years, 3 months ago (2016-09-09 22:06:38 UTC) #81
commit-bot: I haz the power
Patchset 17 (id:??) landed as https://crrev.com/f5d0098acc9a8167409476627eae3e91d94e8cac Cr-Commit-Position: refs/heads/master@{#417728}
4 years, 3 months ago (2016-09-09 22:08:09 UTC) #83
dmurph
4 years, 3 months ago (2016-09-10 01:49:28 UTC) #84
Message was sent while issue was closed.
A revert of this CL (patchset #17 id:400001) has been created in
https://codereview.chromium.org/2329433003/ by dmurph@chromium.org.

The reason for reverting is: This is causing a use-after-free and crashing stuff
:(

BUG=645708.

Powered by Google App Engine
This is Rietveld 408576698