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

Issue 11453012: Fix black background when locking with fullscreen window: (Closed)

Created:
8 years ago by Denis Kuznetsov (DE-MUC)
Modified:
8 years ago
CC:
jar (doing other things), chromium-reviews, piman+watch_chromium.org, jonathan.backer, sadrul, ben+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Fix black background when locking with fullscreen window: Store background container visibility before lock animation, animate it's visibility on lock/unlock. Change launcher to animate opacity-only (no size transformations). Update tests so that handle new cases, and become more readable. Also contains two lock animation fixes: 1) Shutdown animation now have correct cancel timing (it was tarting actual shutdown too early) 2) Flickering on starting and cancelling lock was removed, and tests were updated. BUG=162646, 162645 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173461

Patch Set 1 #

Patch Set 2 : Self-review #

Patch Set 3 : Merge with ToT #

Total comments: 4

Patch Set 4 : Explicit float constants #

Patch Set 5 : Add tests for no flickering on undoing animations + fix code #

Patch Set 6 : Add fix for shutdown cut-off timing #

Total comments: 8

Patch Set 7 : set preemtion strategy for lock animation #

Total comments: 2

Patch Set 8 : Mock TimeTicks::Now() #

Total comments: 13

Patch Set 9 : Fix review comments, move test-related thigs to test_support targets #

Patch Set 10 : Tune animation timings #

Total comments: 6

Patch Set 11 : Remove virtual from destructor #

Patch Set 12 : Merge with ToT #

Patch Set 13 : Add OVERRIDE #

Patch Set 14 : Fix another win compilation warning #

Patch Set 15 : Move AnimationFinishedObserver impl to SessionStateController #

Patch Set 16 : Fix test (release power button) #

Patch Set 17 : Use ease-in for shutdown animation #

Patch Set 18 : Another attempt to fix win build #

Total comments: 3

Patch Set 19 : Remove TimeTicks:HighResNow mocking, more comments and checks #

Patch Set 20 : And another one change for build on Win #

Total comments: 23

Patch Set 21 : And another one change for build on Win #

Total comments: 5

Patch Set 22 : Merge with ToT #

Patch Set 23 : Fix review comments #

Patch Set 24 : Comment for TransformWindowToBaseState #

Total comments: 2

Patch Set 25 : Merge with ToT again #

Patch Set 26 : Add comment about lock/unlock workflow #

Total comments: 2

Patch Set 27 : Rename undo/stop to cancel #

Total comments: 21

Patch Set 28 : Final fixes #

Patch Set 29 : Remove stuff for testing and disable some tests" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1271 lines, -436 lines) Patch
M ash/wm/session_state_animator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 4 chunks +10 lines, -2 lines 0 comments Download
M ash/wm/session_state_animator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 13 chunks +79 lines, -26 lines 0 comments Download
M ash/wm/session_state_controller_impl2.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 6 chunks +78 lines, -18 lines 0 comments Download
M ash/wm/session_state_controller_impl2.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 13 chunks +402 lines, -109 lines 0 comments Download
M ash/wm/session_state_controller_impl2_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 11 chunks +702 lines, -281 lines 0 comments Download

Messages

Total messages: 52 (0 generated)
Denis Kuznetsov (DE-MUC)
Ian for ui/compositor/ changes (new observers, TestHelper creation in LayerAnimator) Scott for ui/base/ (AnimationContainerTestHelper) and ...
8 years ago (2012-12-05 16:59:06 UTC) #1
Ian Vollick
https://chromiumcodereview.appspot.com/11453012/diff/4001/ui/compositor/layer_animation_observer.h File ui/compositor/layer_animation_observer.h (right): https://chromiumcodereview.appspot.com/11453012/diff/4001/ui/compositor/layer_animation_observer.h#newcode137 ui/compositor/layer_animation_observer.h:137: // layer or the mixture of both. I worry ...
8 years ago (2012-12-05 17:36:20 UTC) #2
Denis Kuznetsov (DE-MUC)
https://chromiumcodereview.appspot.com/11453012/diff/4001/ui/compositor/layer_animation_observer.h File ui/compositor/layer_animation_observer.h (right): https://chromiumcodereview.appspot.com/11453012/diff/4001/ui/compositor/layer_animation_observer.h#newcode137 ui/compositor/layer_animation_observer.h:137: // layer or the mixture of both. On 2012/12/05 ...
8 years ago (2012-12-05 18:32:17 UTC) #3
Nikita (slow)
Scott, Ian please review this CL as it blocks enabling this feature on trunk for ...
8 years ago (2012-12-07 12:00:27 UTC) #4
sky
https://codereview.chromium.org/11453012/diff/30001/ui/base/animation/animation_container.cc File ui/base/animation/animation_container.cc (right): https://codereview.chromium.org/11453012/diff/30001/ui/base/animation/animation_container.cc#newcode58 ui/base/animation/animation_container.cc:58: void AnimationContainer::Run() { Could you accomplish what you need ...
8 years ago (2012-12-07 17:01:12 UTC) #5
Denis Kuznetsov (DE-MUC)
https://codereview.chromium.org/11453012/diff/30001/ui/base/animation/animation_container.cc File ui/base/animation/animation_container.cc (right): https://codereview.chromium.org/11453012/diff/30001/ui/base/animation/animation_container.cc#newcode58 ui/base/animation/animation_container.cc:58: void AnimationContainer::Run() { On 2012/12/07 17:01:13, sky wrote: > ...
8 years ago (2012-12-07 17:21:24 UTC) #6
sky
Seems like it would be better to provide a place to mock Time/TimeTicks rather than ...
8 years ago (2012-12-07 17:50:35 UTC) #7
Nikita (slow)
https://codereview.chromium.org/11453012/diff/28001/ash/wm/session_state_controller_impl2_unittest.cc File ash/wm/session_state_controller_impl2_unittest.cc (right): https://codereview.chromium.org/11453012/diff/28001/ash/wm/session_state_controller_impl2_unittest.cc#newcode43 ash/wm/session_state_controller_impl2_unittest.cc:43: aura::Window* GetContainer(int container ) { nit: extra space https://codereview.chromium.org/11453012/diff/28001/ash/wm/session_state_controller_impl2_unittest.cc#newcode49 ...
8 years ago (2012-12-07 17:54:08 UTC) #8
Denis Kuznetsov (DE-MUC)
On 2012/12/07 17:50:35, sky wrote: > Seems like it would be better to provide a ...
8 years ago (2012-12-07 17:58:57 UTC) #9
Ian Vollick
On 2012/12/05 18:32:17, Denis Kuznetsov wrote: > https://chromiumcodereview.appspot.com/11453012/diff/4001/ui/compositor/layer_animation_observer.h > File ui/compositor/layer_animation_observer.h (right): > > https://chromiumcodereview.appspot.com/11453012/diff/4001/ui/compositor/layer_animation_observer.h#newcode137 ...
8 years ago (2012-12-07 18:47:48 UTC) #10
sky
On Fri, Dec 7, 2012 at 9:58 AM, <antrim@chromium.org> wrote: > On 2012/12/07 17:50:35, sky ...
8 years ago (2012-12-07 19:01:21 UTC) #11
brettw
I'm OK with adding a global mock time thingy. Random musings (feel free to ignore): ...
8 years ago (2012-12-07 19:14:06 UTC) #12
Denis Kuznetsov (DE-MUC)
On 2012/12/07 19:01:21, sky wrote: > On Fri, Dec 7, 2012 at 9:58 AM, <mailto:antrim@chromium.org> ...
8 years ago (2012-12-07 19:20:28 UTC) #13
Denis Kuznetsov (DE-MUC)
> I've thought about that at some point, but I wanted to keep changes as ...
8 years ago (2012-12-07 19:50:13 UTC) #14
sky
On Fri, Dec 7, 2012 at 11:20 AM, <antrim@chromium.org> wrote: > On 2012/12/07 19:01:21, sky ...
8 years ago (2012-12-07 21:03:46 UTC) #15
Denis Kuznetsov (DE-MUC)
Brett (and Jim as cc:), look at mocked Time/TimeTicks in base/. Scott, check if everything ...
8 years ago (2012-12-10 19:29:11 UTC) #16
sky
Yes, this is what I was thinking for AnimationContainer. Thanks! https://chromiumcodereview.appspot.com/11453012/diff/37001/ui/base/animation/animation_container_test_helper.h File ui/base/animation/animation_container_test_helper.h (right): https://chromiumcodereview.appspot.com/11453012/diff/37001/ui/base/animation/animation_container_test_helper.h#newcode23 ...
8 years ago (2012-12-10 22:20:16 UTC) #17
Daniel Erat
https://chromiumcodereview.appspot.com/11453012/diff/37001/ui/ui.gyp File ui/ui.gyp (right): https://chromiumcodereview.appspot.com/11453012/diff/37001/ui/ui.gyp#newcode64 ui/ui.gyp:64: 'base/animation/animation_container_test_helper.cc', Got a compile error while trying to build ...
8 years ago (2012-12-10 23:56:12 UTC) #18
Daniel Erat
https://chromiumcodereview.appspot.com/11453012/diff/37001/base/test/scoped_time_controller.h File base/test/scoped_time_controller.h (right): https://chromiumcodereview.appspot.com/11453012/diff/37001/base/test/scoped_time_controller.h#newcode18 base/test/scoped_time_controller.h:18: ~ScopedTimeController(); nit: need 'virtual' here
8 years ago (2012-12-10 23:56:52 UTC) #19
Denis Kuznetsov (DE-MUC)
Moved test-related things around .gyp files, tuned some animation timings. Scott, Brett, still waiting for ...
8 years ago (2012-12-11 13:27:56 UTC) #20
sky
https://chromiumcodereview.appspot.com/11453012/diff/37001/ui/base/animation/animation_container_test_helper.h File ui/base/animation/animation_container_test_helper.h (right): https://chromiumcodereview.appspot.com/11453012/diff/37001/ui/base/animation/animation_container_test_helper.h#newcode23 ui/base/animation/animation_container_test_helper.h:23: virtual ~AnimationContainerTestHelper() {}; On 2012/12/11 13:27:57, Denis Kuznetsov wrote: ...
8 years ago (2012-12-11 16:44:16 UTC) #21
Denis Kuznetsov (DE-MUC)
On 2012/12/11 16:44:16, sky wrote: > https://chromiumcodereview.appspot.com/11453012/diff/37001/ui/base/animation/animation_container_test_helper.h > File ui/base/animation/animation_container_test_helper.h (right): > > https://chromiumcodereview.appspot.com/11453012/diff/37001/ui/base/animation/animation_container_test_helper.h#newcode23 > ...
8 years ago (2012-12-11 22:09:34 UTC) #22
sky
On Tue, Dec 11, 2012 at 2:09 PM, <antrim@chromium.org> wrote: > On 2012/12/11 16:44:16, sky ...
8 years ago (2012-12-11 23:00:57 UTC) #23
brettw
https://chromiumcodereview.appspot.com/11453012/diff/48002/base/time.cc File base/time.cc (right): https://chromiumcodereview.appspot.com/11453012/diff/48002/base/time.cc#newcode21 base/time.cc:21: //static Can you add a space after // https://chromiumcodereview.appspot.com/11453012/diff/48002/base/time.h ...
8 years ago (2012-12-12 00:35:08 UTC) #24
akalin
(Drive-by, since I was whining about needing a Clock interface, and brettw pointed me here.) ...
8 years ago (2012-12-12 00:58:12 UTC) #25
Denis Kuznetsov (DE-MUC)
https://chromiumcodereview.appspot.com/11453012/diff/48002/base/time.cc File base/time.cc (right): https://chromiumcodereview.appspot.com/11453012/diff/48002/base/time.cc#newcode21 base/time.cc:21: //static On 2012/12/12 00:35:09, brettw wrote: > Can you ...
8 years ago (2012-12-12 19:20:12 UTC) #26
sky
ui/base changes LGTM I have not looked at any other changes, if you need me ...
8 years ago (2012-12-12 19:30:39 UTC) #27
Ian Vollick
On 2012/12/12 19:20:12, Denis Kuznetsov wrote: > https://chromiumcodereview.appspot.com/11453012/diff/48002/base/time.cc > File base/time.cc (right): > > https://chromiumcodereview.appspot.com/11453012/diff/48002/base/time.cc#newcode21 ...
8 years ago (2012-12-12 19:32:33 UTC) #28
sky
Dan knows the session state code more than I, it would be great if he ...
8 years ago (2012-12-12 20:35:55 UTC) #29
sky
https://chromiumcodereview.appspot.com/11453012/diff/59001/base/time.h File base/time.h (right): https://chromiumcodereview.appspot.com/11453012/diff/59001/base/time.h#newcode652 base/time.h:652: static TimeFactory* instance_; On 2012/12/12 00:58:12, akalin wrote: > ...
8 years ago (2012-12-12 20:42:23 UTC) #30
Daniel Erat
I still need to go through session_state_controller_impl2.cc; there's a lot of new code there. I ...
8 years ago (2012-12-13 05:02:02 UTC) #31
Denis Kuznetsov (DE-MUC)
> change > > -- I wonder if it would be better to do it ...
8 years ago (2012-12-13 17:59:35 UTC) #32
Denis Kuznetsov (DE-MUC)
https://chromiumcodereview.appspot.com/11453012/diff/2004/ash/wm/session_state_animator.cc File ash/wm/session_state_animator.cc (right): https://chromiumcodereview.appspot.com/11453012/diff/2004/ash/wm/session_state_animator.cc#newcode201 ash/wm/session_state_animator.cc:201: settings.SetPreemptionStrategy( On 2012/12/12 20:35:56, sky wrote: > Why do ...
8 years ago (2012-12-13 17:59:50 UTC) #33
Denis Kuznetsov (DE-MUC)
https://chromiumcodereview.appspot.com/11453012/diff/2004/ash/wm/session_state_animator.cc File ash/wm/session_state_animator.cc (right): https://chromiumcodereview.appspot.com/11453012/diff/2004/ash/wm/session_state_animator.cc#newcode194 ash/wm/session_state_animator.cc:194: void TransformWindowToBaseState(aura::Window* window, On 2012/12/12 20:35:56, sky wrote: > ...
8 years ago (2012-12-13 18:11:24 UTC) #34
Daniel Erat
https://codereview.chromium.org/11453012/diff/81001/ash/wm/session_state_animator.cc File ash/wm/session_state_animator.cc (right): https://codereview.chromium.org/11453012/diff/81001/ash/wm/session_state_animator.cc#newcode533 ash/wm/session_state_animator.cc:533: ui::LayerAnimationObserver* observer) { repasting comment from last time: this ...
8 years ago (2012-12-13 19:31:54 UTC) #35
Denis Kuznetsov (DE-MUC)
https://codereview.chromium.org/11453012/diff/81001/ash/wm/session_state_animator.cc File ash/wm/session_state_animator.cc (right): https://codereview.chromium.org/11453012/diff/81001/ash/wm/session_state_animator.cc#newcode533 ash/wm/session_state_animator.cc:533: ui::LayerAnimationObserver* observer) { On 2012/12/13 19:31:54, Daniel Erat wrote: ...
8 years ago (2012-12-13 19:54:09 UTC) #36
sky
On Thu, Dec 13, 2012 at 9:59 AM, <antrim@chromium.org> wrote: >> change >> > -- ...
8 years ago (2012-12-13 20:28:30 UTC) #37
brettw
base lgtm https://chromiumcodereview.appspot.com/11453012/diff/73002/base/test/scoped_time_controller.cc File base/test/scoped_time_controller.cc (right): https://chromiumcodereview.appspot.com/11453012/diff/73002/base/test/scoped_time_controller.cc#newcode36 base/test/scoped_time_controller.cc:36: } // namespace base Flip the order ...
8 years ago (2012-12-13 21:39:15 UTC) #38
Daniel Erat
ash LGTM after some more comments are addressed https://codereview.chromium.org/11453012/diff/73002/ash/wm/session_state_animator.h File ash/wm/session_state_animator.h (right): https://codereview.chromium.org/11453012/diff/73002/ash/wm/session_state_animator.h#newcode163 ash/wm/session_state_animator.h:163: // ...
8 years ago (2012-12-13 21:47:32 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/antrim@chromium.org/11453012/83024
8 years ago (2012-12-14 11:44:19 UTC) #40
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests
8 years ago (2012-12-14 15:48:20 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/antrim@chromium.org/11453012/83024
8 years ago (2012-12-14 15:55:29 UTC) #42
akalin
On 2012/12/14 15:55:29, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
8 years ago (2012-12-14 19:54:03 UTC) #43
Nikita (slow)
On 2012/12/14 19:54:03, akalin wrote: > On 2012/12/14 15:55:29, I haz the power (commit-bot) wrote: ...
8 years ago (2012-12-14 20:54:42 UTC) #44
Nikita (slow)
On 2012/12/14 20:54:42, Nikita Kostylev wrote: > On 2012/12/14 19:54:03, akalin wrote: > > On ...
8 years ago (2012-12-14 21:00:06 UTC) #45
Nikita (slow)
Fred, I think it would be useful in the context of this CL if you ...
8 years ago (2012-12-14 21:02:36 UTC) #46
akalin
On 2012/12/14 20:54:42, Nikita Kostylev wrote: > Fred, if you've been interested in this CL ...
8 years ago (2012-12-14 22:08:25 UTC) #47
akalin
On 2012/12/14 21:02:36, Nikita Kostylev wrote: > Fred, I think it would be useful in ...
8 years ago (2012-12-14 22:09:46 UTC) #48
akalin
On 2012/12/14 22:08:25, akalin wrote: > > So you're proposing to disable some subset of ...
8 years ago (2012-12-14 22:38:57 UTC) #49
Nikita (slow)
On 2012/12/14 22:08:25, akalin wrote: > On 2012/12/14 20:54:42, Nikita Kostylev wrote: > > Fred, ...
8 years ago (2012-12-14 22:44:14 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/antrim@chromium.org/11453012/88001
8 years ago (2012-12-17 12:58:29 UTC) #51
commit-bot: I haz the power
8 years ago (2012-12-17 15:02:38 UTC) #52
Message was sent while issue was closed.
Change committed as 173461

Powered by Google App Engine
This is Rietveld 408576698