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

Issue 9969068: ash: Animate changes in the uber tray. (Closed)

Created:
8 years, 8 months ago by sadrul
Modified:
8 years, 8 months ago
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

ash: Animate changes in the uber tray. Specifically, animate when a view in the tray hides/shows itself. For now, the tray does not animate when the size of a view changes (e.g. date-view changes size because it's 10:00). BUG=117209 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=133526

Patch Set 1 #

Total comments: 1

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 9

Patch Set 6 : . #

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -85 lines) Patch
M ash/ash.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ash/system/audio/tray_volume.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ash/system/date/tray_date.cc View 1 3 chunks +5 lines, -2 lines 0 comments Download
M ash/system/ime/tray_ime.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M ash/system/ime/tray_ime.cc View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M ash/system/network/tray_network.cc View 1 2 3 4 5 6 4 chunks +3 lines, -6 lines 0 comments Download
M ash/system/tray/system_tray.cc View 1 3 chunks +2 lines, -53 lines 0 comments Download
M ash/system/tray/system_tray_item.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M ash/system/tray/tray_image_item.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M ash/system/tray/tray_image_item.cc View 1 3 chunks +12 lines, -5 lines 0 comments Download
A ash/system/tray/tray_item_view.h View 1 2 3 4 5 1 chunk +79 lines, -0 lines 0 comments Download
A ash/system/tray/tray_item_view.cc View 1 2 3 4 5 1 chunk +114 lines, -0 lines 0 comments Download
M ash/system/tray_accessibility.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ash/system/tray_caps_lock.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ash/system/tray_update.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/system/user/tray_user.cc View 1 2 3 4 3 chunks +14 lines, -6 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
sadrul
Hi! This is the approach I landed on. I tried doing things with ScopedLayerAnimationSettings, and ...
8 years, 8 months ago (2012-04-02 20:41:12 UTC) #1
sadrul
I made some changes to the approach, and created a base-class that handles all the ...
8 years, 8 months ago (2012-04-20 21:05:51 UTC) #2
Ben Goodger (Google)
http://codereview.chromium.org/9969068/diff/8002/ash/system/tray/system_tray_item.h File ash/system/tray/system_tray_item.h (right): http://codereview.chromium.org/9969068/diff/8002/ash/system/tray/system_tray_item.h#newcode27 ash/system/tray/system_tray_item.h:27: // NOTE: The returned view should almost always be ...
8 years, 8 months ago (2012-04-23 15:33:42 UTC) #3
sadrul
http://codereview.chromium.org/9969068/diff/8002/ash/system/tray/system_tray_item.h File ash/system/tray/system_tray_item.h (right): http://codereview.chromium.org/9969068/diff/8002/ash/system/tray/system_tray_item.h#newcode27 ash/system/tray/system_tray_item.h:27: // NOTE: The returned view should almost always be ...
8 years, 8 months ago (2012-04-23 16:07:58 UTC) #4
Ben Goodger (Google)
8 years, 8 months ago (2012-04-23 17:43:38 UTC) #5
lgtm

http://codereview.chromium.org/9969068/diff/8002/ash/system/tray/tray_item_vi...
File ash/system/tray/tray_item_view.cc (right):

http://codereview.chromium.org/9969068/diff/8002/ash/system/tray/tray_item_vi...
ash/system/tray/tray_item_view.cc:43: if (!GetWidget()) {
On 2012/04/23 16:07:58, sadrul wrote:
> On 2012/04/23 15:33:42, Ben Goodger (Google) wrote:
> > Can you implement this by overriding VisibilityChanged instead of overriding
> > SetVisible?
> 
> This would work when showing the view, however, when hiding, we need to make
> sure the view keeps painting while the view is being hidden, so we need to
delay
> the call to View::SetVisible because that would destroy the layer. So, we make
> sure we start the animation here, and defer the View::SetVisible(false) until
> the animation ends. (something like a View::AcquireLayer would probably have
> been useful here to avoid delaying the call to View::SetVisible)

Ah. I guess we have better support for this sort of thing in Aura. I guess this
can do for now. I'd like to come up with a better strategy for this in the long
run, but I'll take the AI to do that.

Powered by Google App Engine
This is Rietveld 408576698