diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-29 16:19:04 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-29 16:19:04 +0000 |
commit | d217769230326a5af129b3cadae785706341a8f9 (patch) | |
tree | e19bd6eef46a749ec4d5e35ff765e86cb1594127 /ash/system | |
parent | c14a701e971413ac03c8758caec849fe61507f32 (diff) | |
download | chromium_src-d217769230326a5af129b3cadae785706341a8f9.zip chromium_src-d217769230326a5af129b3cadae785706341a8f9.tar.gz chromium_src-d217769230326a5af129b3cadae785706341a8f9.tar.bz2 |
Split window_animations, moving basic animations to views/corewm.
The base definition of the animation type enum also moves to corewm, and the API now allows downstream libraries (like ash) to extend the set of animations available.
This will allow us to more easily use "core" animations in desktop-aura.
I also removed the internal namespace from window_animations that remained in ash, since the use of namespaces in that file had begun to confuse me.
http://crbug.com/158115
R=sky@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170071
Review URL: https://codereview.chromium.org/11412223
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170195 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/system')
-rw-r--r-- | ash/system/tray/tray_background_view.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ash/system/tray/tray_background_view.cc b/ash/system/tray/tray_background_view.cc index 7ec4ed1..f32271a 100644 --- a/ash/system/tray/tray_background_view.cc +++ b/ash/system/tray/tray_background_view.cc @@ -288,13 +288,13 @@ void TrayBackgroundView::SetBorder() { void TrayBackgroundView::InitializeBubbleAnimations( views::Widget* bubble_widget) { - ash::SetWindowVisibilityAnimationType( + views::corewm::SetWindowVisibilityAnimationType( bubble_widget->GetNativeWindow(), - ash::WINDOW_VISIBILITY_ANIMATION_TYPE_FADE); - ash::SetWindowVisibilityAnimationTransition( + views::corewm::WINDOW_VISIBILITY_ANIMATION_TYPE_FADE); + views::corewm::SetWindowVisibilityAnimationTransition( bubble_widget->GetNativeWindow(), - ash::ANIMATE_HIDE); - ash::SetWindowVisibilityAnimationDuration( + views::corewm::ANIMATE_HIDE); + views::corewm::SetWindowVisibilityAnimationDuration( bubble_widget->GetNativeWindow(), base::TimeDelta::FromMilliseconds(kAnimationDurationForPopupMS)); } |