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

Issue 130983007: Creating multi profile animations for switching users and teleporting of windows. (Closed)

Created:
6 years, 11 months ago by Mr4D (OOO till 08-26)
Modified:
6 years, 10 months ago
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, tfarina, ben+corewm_chromium.org, ben+ash_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Creating multi profile animations for switching users and teleporting of windows. This CL is adding window animations for the following multi profile related actions: - switching the user - teleporting of windows - window ownership changes The user switch animation is as follows: Time: -----> Screen: A X B - The desktop cross dissolves between A -> B - User A's windows fade out between A -> X - User B's windows get faded in between X -> B - User A's shelf gets hidden between A -> X - The user icon in the system tray as well as the shelf configuration changes at 'X'. - User B's shelf gets faded on between X -> B So at time X the user would see a half way cross dissolved desktop and shared windows (if there are any). Since there is no guarantee that there is an animation going from A -> X an additional timer was used to kick off the second animation portion. Further gotchas: - Animations of the individual shelf items were in the past incorrectly performed with another animator which produced a lag for some components (e.g. the activation bar lagged and / or there was a gap between icons in the tray and the screen border when playing the animation fast. - Wallpaper loading was so delayed that the animations started after all other animations were done. BUG=336639, 307279 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247517

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixing unit tests and clang issue #

Patch Set 3 : Fixed windows build & addressed #

Total comments: 4

Patch Set 4 : Addressed & fixed WallpaperPrivateApiMultiUserUnittest #

Patch Set 5 : Win build #

Total comments: 4

Patch Set 6 : Addressed #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+485 lines, -102 lines) Patch
M ash/default_user_wallpaper_delegate.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ash/default_user_wallpaper_delegate.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M ash/desktop_background/desktop_background_view.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M ash/desktop_background/user_wallpaper_delegate.h View 1 chunk +7 lines, -0 lines 0 comments Download
M ash/shelf/shelf_layout_manager.h View 2 chunks +7 lines, -0 lines 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 1 3 chunks +11 lines, -3 lines 0 comments Download
M ash/shelf/shelf_view.cc View 1 2 chunks +28 lines, -0 lines 0 comments Download
M ash/system/tray/default_system_tray_delegate.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ash/system/tray/default_system_tray_delegate.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ash/system/tray/system_tray_delegate.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/background/ash_user_wallpaper_delegate.cc View 3 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/wallpaper_private_api_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/wallpaper_manager.cc View 1 2 3 3 chunks +11 lines, -4 lines 1 comment Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 6 chunks +5 lines, -15 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_notification_blocker_chromeos_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.h View 1 2 3 4 5 6 chunks +45 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.cc View 1 2 3 4 5 14 chunks +245 lines, -68 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc View 1 2 3 4 5 4 chunks +46 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_win.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/user_wallpaper_delegate_win.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M ui/views/animation/bounds_animator.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/corewm/window_animations.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/corewm/window_animations.cc View 1 2 3 4 chunks +12 lines, -5 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Mr4D (OOO till 08-26)
Please have a look!
6 years, 11 months ago (2014-01-25 01:12:44 UTC) #1
Harry McCleave
https://codereview.chromium.org/130983007/diff/1/ash/shelf/shelf_view.cc File ash/shelf/shelf_view.cc (right): https://codereview.chromium.org/130983007/diff/1/ash/shelf/shelf_view.cc#newcode130 ash/shelf/shelf_view.cc:130: bounds_animator_->SetAnimationDuration(1); Is the 1 ms needed here, would it ...
6 years, 11 months ago (2014-01-25 01:28:01 UTC) #2
Alexander Alekseev
+bshe@ as author of WallpaperManager +nkostylev@ as login/ OWNER. lgtm
6 years, 10 months ago (2014-01-27 12:36:41 UTC) #3
sky
What parts of this did you need me to review? On Mon, Jan 27, 2014 ...
6 years, 10 months ago (2014-01-27 15:28:54 UTC) #4
Mr4D (OOO till 08-26)
Fixed unit tests and clang issue https://codereview.chromium.org/130983007/diff/1/ash/shelf/shelf_view.cc File ash/shelf/shelf_view.cc (right): https://codereview.chromium.org/130983007/diff/1/ash/shelf/shelf_view.cc#newcode130 ash/shelf/shelf_view.cc:130: bounds_animator_->SetAnimationDuration(1); Unfortunately a ...
6 years, 10 months ago (2014-01-27 15:37:51 UTC) #5
Mr4D (OOO till 08-26)
Sky - I need your owners review for the files below, but would value your ...
6 years, 10 months ago (2014-01-27 15:39:33 UTC) #6
bshe
https://codereview.chromium.org/130983007/diff/1/chrome/browser/chromeos/login/wallpaper_manager.cc File chrome/browser/chromeos/login/wallpaper_manager.cc (right): https://codereview.chromium.org/130983007/diff/1/chrome/browser/chromeos/login/wallpaper_manager.cc#newcode1202 chrome/browser/chromeos/login/wallpaper_manager.cc:1202: wallpaper_cache_.insert(std::make_pair(email, wallpaper.image())); If a user changes wallpaper during multi ...
6 years, 10 months ago (2014-01-27 16:00:14 UTC) #7
sky
Said files LGTM with the following changes. https://codereview.chromium.org/130983007/diff/580001/ui/views/animation/bounds_animator.h File ui/views/animation/bounds_animator.h (right): https://codereview.chromium.org/130983007/diff/580001/ui/views/animation/bounds_animator.h#newcode99 ui/views/animation/bounds_animator.h:99: int GetAnimationDuration() ...
6 years, 10 months ago (2014-01-27 17:17:08 UTC) #8
Mr4D (OOO till 08-26)
Addressed and fixed unit test https://codereview.chromium.org/130983007/diff/1/chrome/browser/chromeos/login/wallpaper_manager.cc File chrome/browser/chromeos/login/wallpaper_manager.cc (right): https://codereview.chromium.org/130983007/diff/1/chrome/browser/chromeos/login/wallpaper_manager.cc#newcode1202 chrome/browser/chromeos/login/wallpaper_manager.cc:1202: wallpaper_cache_.insert(std::make_pair(email, wallpaper.image())); On 2014/01/27 ...
6 years, 10 months ago (2014-01-27 18:44:17 UTC) #9
Harry McCleave
lgtm for ash/shelf
6 years, 10 months ago (2014-01-27 18:56:38 UTC) #10
bshe
On 2014/01/27 18:56:38, Harry McCleave wrote: > lgtm for ash/shelf lgtm for wallpaper related
6 years, 10 months ago (2014-01-27 19:21:28 UTC) #11
Nikita (slow)
Stefan, can you tried pressing desktop switching shortcut and keeping it pressed so that animation ...
6 years, 10 months ago (2014-01-28 16:27:22 UTC) #12
Mr4D (OOO till 08-26)
Addressed! For the continuous key press: Tested that before and you see it switching several ...
6 years, 10 months ago (2014-01-28 16:48:02 UTC) #13
Nikita (slow)
lgt To unsubscribe from this group and stop receiving emails from it, send an email ...
6 years, 10 months ago (2014-01-28 17:54:10 UTC) #14
Nikita (slow)
lgtm Let's see how these animations look on different hardware once this is landed. To ...
6 years, 10 months ago (2014-01-28 17:54:11 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/130983007/840001
6 years, 10 months ago (2014-01-28 18:17:51 UTC) #16
commit-bot: I haz the power
Change committed as 247517
6 years, 10 months ago (2014-01-28 23:21:33 UTC) #17
Nikita (slow)
https://codereview.chromium.org/130983007/diff/840001/chrome/browser/chromeos/login/wallpaper_manager.cc File chrome/browser/chromeos/login/wallpaper_manager.cc (right): https://codereview.chromium.org/130983007/diff/840001/chrome/browser/chromeos/login/wallpaper_manager.cc#newcode1203 chrome/browser/chromeos/login/wallpaper_manager.cc:1203: (UserManager::Get()->GetLoggedInUsers().size() > 1)) { I've found that this doesn't ...
6 years, 10 months ago (2014-01-30 14:03:40 UTC) #18
Mr4D (OOO till 08-26)
6 years, 10 months ago (2014-01-30 19:33:37 UTC) #19
Message was sent while issue was closed.
Created issue 339576 to track and address this.

Powered by Google App Engine
This is Rietveld 408576698