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

Issue 223823004: Improving the user transition to add special cases for maximized windows and make the transition "m… (Closed)

Created:
6 years, 8 months ago by Mr4D (OOO till 08-26)
Modified:
6 years, 8 months ago
CC:
chromium-reviews, kalyank, ben+ash_chromium.org
Visibility:
Public.

Description

Improving the user transition to add special cases for maximized windows and make the transition "more fluid" There were user complaints with the old animation which said that the animation looked janky. This was in part because various transitions (e.g. maximized->maximized) were showing the background animating in the middle of the animation which looked like "flashing") and because there are some real causes where the CPU gets 100% hogged and the UI thread has not time processing the animation. This is addressing the first part: Improving the animation by removing the "flash" in the middle and instead transitioning the desktop cleanly from one state to another. The shelf animation stays the same, but the windows will cross dissolve. When switching from maximize to maximize, the desktop will not shine through and when switching from / or to maximize, the desktop background will only show the desktop background from the user which is not maximized. This way the intermediate frames do not show "some state". BUG=357852 TEST=unittest & visual checking Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261944 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262024 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262174

Patch Set 1 #

Total comments: 15

Patch Set 2 : Refactored #

Total comments: 21

Patch Set 3 : Addressed #

Patch Set 4 : Fixing build problem #

Total comments: 2

Patch Set 5 : . #

Patch Set 6 : Fixed preferences browser test [disabling animations] #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+714 lines, -233 lines) Patch
M chrome/browser/chromeos/preferences_browsertest.cc View 1 2 3 4 5 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.h View 1 2 6 chunks +21 lines, -31 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc View 1 2 8 chunks +18 lines, -199 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc View 1 2 4 chunks +226 lines, -3 lines 0 comments Download
A chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.h View 1 2 1 chunk +113 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc View 1 2 3 4 1 chunk +324 lines, -0 lines 1 comment Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
Mr4D (OOO till 08-26)
Please have a look!
6 years, 8 months ago (2014-04-03 14:38:15 UTC) #1
oshima
animation management code seems to be big enough to be refactored by now? https://codereview.chromium.org/223823004/diff/1/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc File ...
6 years, 8 months ago (2014-04-03 19:21:41 UTC) #2
oshima
https://codereview.chromium.org/223823004/diff/1/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc File chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc (right): https://codereview.chromium.org/223823004/diff/1/chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc#newcode437 chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc:437: base::Unretained(this)), On 2014/04/03 19:21:41, oshima wrote: > can you ...
6 years, 8 months ago (2014-04-03 20:13:20 UTC) #3
Mr4D (OOO till 08-26)
All done & refactored. I thought about the refactor this morning, but thought that due ...
6 years, 8 months ago (2014-04-03 22:56:59 UTC) #4
oshima
lg https://codereview.chromium.org/223823004/diff/20001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_anim_chromeos.cc File chrome/browser/ui/ash/multi_user/multi_user_window_manager_anim_chromeos.cc (right): https://codereview.chromium.org/223823004/diff/20001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_anim_chromeos.cc#newcode84 chrome/browser/ui/ash/multi_user/multi_user_window_manager_anim_chromeos.cc:84: // Full screen covers the screen naturally. Maximized ...
6 years, 8 months ago (2014-04-03 23:52:29 UTC) #5
Mr4D (OOO till 08-26)
Please have another look! https://codereview.chromium.org/223823004/diff/20001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_anim_chromeos.cc File chrome/browser/ui/ash/multi_user/multi_user_window_manager_anim_chromeos.cc (right): https://codereview.chromium.org/223823004/diff/20001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_anim_chromeos.cc#newcode84 chrome/browser/ui/ash/multi_user/multi_user_window_manager_anim_chromeos.cc:84: // Full screen covers the ...
6 years, 8 months ago (2014-04-04 14:21:32 UTC) #6
oshima
one more nit about comment. https://codereview.chromium.org/223823004/diff/20001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_anim_chromeos.cc File chrome/browser/ui/ash/multi_user/multi_user_window_manager_anim_chromeos.cc (right): https://codereview.chromium.org/223823004/diff/20001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_anim_chromeos.cc#newcode163 chrome/browser/ui/ash/multi_user/multi_user_window_manager_anim_chromeos.cc:163: // Some unit tests ...
6 years, 8 months ago (2014-04-04 17:10:19 UTC) #7
oshima
forgot to say, lgtm once the comment is fixed.
6 years, 8 months ago (2014-04-04 17:37:28 UTC) #8
Mr4D (OOO till 08-26)
Please have another look! https://codereview.chromium.org/223823004/diff/20001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_anim_chromeos.cc File chrome/browser/ui/ash/multi_user/multi_user_window_manager_anim_chromeos.cc (right): https://codereview.chromium.org/223823004/diff/20001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_anim_chromeos.cc#newcode163 chrome/browser/ui/ash/multi_user/multi_user_window_manager_anim_chromeos.cc:163: // Some unit tests have ...
6 years, 8 months ago (2014-04-04 17:47:17 UTC) #9
oshima
https://codereview.chromium.org/223823004/diff/20001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_anim_chromeos.cc File chrome/browser/ui/ash/multi_user/multi_user_window_manager_anim_chromeos.cc (right): https://codereview.chromium.org/223823004/diff/20001/chrome/browser/ui/ash/multi_user/multi_user_window_manager_anim_chromeos.cc#newcode163 chrome/browser/ui/ash/multi_user/multi_user_window_manager_anim_chromeos.cc:163: // Some unit tests have no ChromeLauncherController. On 2014/04/04 ...
6 years, 8 months ago (2014-04-04 18:14:51 UTC) #10
Mr4D (OOO till 08-26)
The CQ bit was checked by skuhne@chromium.org
6 years, 8 months ago (2014-04-04 18:52:11 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/223823004/80001
6 years, 8 months ago (2014-04-04 18:56:43 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-04 20:28:34 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 8 months ago (2014-04-04 20:28:34 UTC) #14
Mr4D (OOO till 08-26)
The CQ bit was checked by skuhne@chromium.org
6 years, 8 months ago (2014-04-04 21:53:23 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/223823004/80001
6 years, 8 months ago (2014-04-04 21:54:25 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-04 22:01:20 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 8 months ago (2014-04-04 22:01:20 UTC) #18
Mr4D (OOO till 08-26)
The CQ bit was checked by skuhne@chromium.org
6 years, 8 months ago (2014-04-04 22:40:41 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/223823004/80001
6 years, 8 months ago (2014-04-04 22:40:45 UTC) #20
commit-bot: I haz the power
Change committed as 261944
6 years, 8 months ago (2014-04-05 00:46:45 UTC) #21
Mr4D (OOO till 08-26)
The CL got reverted from someone, but the given revert reason could not have been ...
6 years, 8 months ago (2014-04-05 18:18:22 UTC) #22
Mr4D (OOO till 08-26)
The CQ bit was checked by skuhne@chromium.org
6 years, 8 months ago (2014-04-05 18:18:29 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/223823004/80001
6 years, 8 months ago (2014-04-05 18:18:38 UTC) #24
commit-bot: I haz the power
Change committed as 262024
6 years, 8 months ago (2014-04-05 18:19:03 UTC) #25
sadrul
On 2014/04/05 18:18:22, Mr4D wrote: > The CL got reverted from someone, but the given ...
6 years, 8 months ago (2014-04-06 02:21:47 UTC) #26
nhiroki
A revert of this CL has been created in https://codereview.chromium.org/227243002/ by nhiroki@chromium.org. The reason for ...
6 years, 8 months ago (2014-04-06 09:43:23 UTC) #27
scottmg
On 2014/04/05 18:18:22, Mr4D wrote: > The CL got reverted from someone, but the given ...
6 years, 8 months ago (2014-04-06 15:39:37 UTC) #28
Mr4D (OOO till 08-26)
Wow. I was going through the failing valgrind and membot tests and have seen some ...
6 years, 8 months ago (2014-04-06 17:18:51 UTC) #29
Mr4D (OOO till 08-26)
Nkostylev - could you please do an owners review for the preferences_browsertest.cc? Thanks!
6 years, 8 months ago (2014-04-06 18:36:37 UTC) #30
Nikita (slow)
lgtm
6 years, 8 months ago (2014-04-07 05:15:26 UTC) #31
Mr4D (OOO till 08-26)
The CQ bit was checked by skuhne@chromium.org
6 years, 8 months ago (2014-04-07 14:28:16 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/223823004/100001
6 years, 8 months ago (2014-04-07 14:28:21 UTC) #33
commit-bot: I haz the power
Change committed as 262174
6 years, 8 months ago (2014-04-07 19:18:29 UTC) #34
mtomasz
https://codereview.chromium.org/223823004/diff/100001/chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc File chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc (right): https://codereview.chromium.org/223823004/diff/100001/chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc#newcode71 chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc:71: base::Unretained(this)), Why Unretained? I believe we should have a ...
6 years, 8 months ago (2014-04-08 18:35:08 UTC) #35
mtomasz
On 2014/04/08 18:35:08, mtomasz wrote: > https://codereview.chromium.org/223823004/diff/100001/chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc > File chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc (right): > > https://codereview.chromium.org/223823004/diff/100001/chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc#newcode71 > ...
6 years, 8 months ago (2014-04-08 18:37:06 UTC) #36
Mr4D (OOO till 08-26)
6 years, 8 months ago (2014-04-08 18:57:33 UTC) #37
Message was sent while issue was closed.
Unretained does not help. I think that this is part of the destruction process
(order of it) since the animation gets finished when the system is going down.
The right way to address this is to suppress completion upon system shut down.

I will add that in a separate patch.

Powered by Google App Engine
This is Rietveld 408576698