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

Issue 1905333004: Corrects NativeWidgetAura state model to not minimize on every restore (Closed)

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

Description

Corrects NativeWidgetAura state model to not minimize on every restore CL https://codereview.chromium.org/1130033003 made it so that a call to Show() can make window (show state NORMAL) only to minimize it again. This makes the state change sequence unnecessarily complex and prone to having visible artifacts such as the docking restore that is described in the bug. This CL keeps most of the changes from https://codereview.chromium.org/1130033003 but corrects Widget::Show() to only perform the extra call to Minimize() once after Widget::Init(). BUG=605998 TEST=Restore a previously minimized docked window. There should be only a fade-in animation. Committed: https://crrev.com/696f45a78fb690a7f19bdbafbb8ba84be06ee056 Cr-Commit-Position: refs/heads/master@{#389506}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Corrects NativeWidgetAura state model to not minimize on every restore #

Patch Set 3 : Corrects NativeWidgetAura state model to not minimize on every restore (test) #

Total comments: 6

Patch Set 4 : Corrects NativeWidgetAura state model to not minimize on every restore (nits) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -14 lines) Patch
M ui/views/widget/native_widget_aura_unittest.cc View 1 2 3 10 chunks +75 lines, -8 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 24 (11 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1905333004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1905333004/1
4 years, 8 months ago (2016-04-22 19:00:49 UTC) #2
varkha
sky@, can you please take a look? Thanks! https://codereview.chromium.org/1905333004/diff/1/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/1905333004/diff/1/ui/views/widget/widget.cc#newcode612 ui/views/widget/widget.cc:612: IsFullscreen() ...
4 years, 8 months ago (2016-04-22 19:06:41 UTC) #4
sky
This is subtle. How about test coverage?
4 years, 8 months ago (2016-04-22 20:23:24 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1905333004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1905333004/40001
4 years, 8 months ago (2016-04-22 22:45:44 UTC) #8
varkha
On 2016/04/22 20:23:24, sky wrote: > This is subtle. How about test coverage? Done. The ...
4 years, 8 months ago (2016-04-22 22:50:09 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-23 00:00:10 UTC) #11
sky
LGTM https://codereview.chromium.org/1905333004/diff/40001/ui/views/widget/native_widget_aura_unittest.cc File ui/views/widget/native_widget_aura_unittest.cc (right): https://codereview.chromium.org/1905333004/diff/40001/ui/views/widget/native_widget_aura_unittest.cc#newcode157 ui/views/widget/native_widget_aura_unittest.cc:157: TestWindowObserver(gfx::NativeWindow window) : window_(window) { explicit https://codereview.chromium.org/1905333004/diff/40001/ui/views/widget/native_widget_aura_unittest.cc#newcode191 ui/views/widget/native_widget_aura_unittest.cc:191: ...
4 years, 8 months ago (2016-04-25 15:01:18 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1905333004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1905333004/60001
4 years, 8 months ago (2016-04-25 15:40:28 UTC) #14
varkha
https://codereview.chromium.org/1905333004/diff/40001/ui/views/widget/native_widget_aura_unittest.cc File ui/views/widget/native_widget_aura_unittest.cc (right): https://codereview.chromium.org/1905333004/diff/40001/ui/views/widget/native_widget_aura_unittest.cc#newcode157 ui/views/widget/native_widget_aura_unittest.cc:157: TestWindowObserver(gfx::NativeWindow window) : window_(window) { On 2016/04/25 15:01:18, sky ...
4 years, 8 months ago (2016-04-25 15:56:57 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-25 16:40:43 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1905333004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1905333004/60001
4 years, 8 months ago (2016-04-25 16:57:15 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-25 17:05:36 UTC) #22
commit-bot: I haz the power
4 years, 8 months ago (2016-04-25 17:07:01 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/696f45a78fb690a7f19bdbafbb8ba84be06ee056
Cr-Commit-Position: refs/heads/master@{#389506}

Powered by Google App Engine
This is Rietveld 408576698