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

Unified Diff: ash/shelf/shelf_layout_manager.cc

Issue 21966005: Removes workspace_animations.(h,cc) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/ash.gyp ('k') | ash/wm/window_animations.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_layout_manager.cc
diff --git a/ash/shelf/shelf_layout_manager.cc b/ash/shelf/shelf_layout_manager.cc
index 4283fd283ae0e4e4f645f5017813197c32ff824e..82f2b209524ee96ee3f022919f7ad8158f8f944d 100644
--- a/ash/shelf/shelf_layout_manager.cc
+++ b/ash/shelf/shelf_layout_manager.cc
@@ -25,9 +25,9 @@
#include "ash/wm/gestures/shelf_gesture_handler.h"
#include "ash/wm/mru_window_tracker.h"
#include "ash/wm/property_util.h"
+#include "ash/wm/window_animations.h"
#include "ash/wm/window_properties.h"
#include "ash/wm/window_util.h"
-#include "ash/wm/workspace/workspace_animations.h"
#include "ash/wm/workspace_controller.h"
#include "base/auto_reset.h"
#include "base/command_line.h"
@@ -599,7 +599,7 @@ void ShelfLayoutManager::SetState(ShelfVisibilityState visibility_state) {
ui::ScopedLayerAnimationSettings launcher_animation_setter(
GetLayer(shelf_)->GetAnimator());
launcher_animation_setter.SetTransitionDuration(
- base::TimeDelta::FromMilliseconds(kWorkspaceSwitchTimeMS));
+ base::TimeDelta::FromMilliseconds(kCrossFadeDurationMS));
launcher_animation_setter.SetTweenType(ui::Tween::EASE_OUT);
launcher_animation_setter.SetPreemptionStrategy(
ui::LayerAnimator::IMMEDIATELY_ANIMATE_TO_NEW_TARGET);
@@ -609,7 +609,7 @@ void ShelfLayoutManager::SetState(ShelfVisibilityState visibility_state) {
ui::ScopedLayerAnimationSettings status_animation_setter(
GetLayer(shelf_->status_area_widget())->GetAnimator());
status_animation_setter.SetTransitionDuration(
- base::TimeDelta::FromMilliseconds(kWorkspaceSwitchTimeMS));
+ base::TimeDelta::FromMilliseconds(kCrossFadeDurationMS));
status_animation_setter.SetTweenType(ui::Tween::EASE_OUT);
status_animation_setter.SetPreemptionStrategy(
ui::LayerAnimator::IMMEDIATELY_ANIMATE_TO_NEW_TARGET);
« no previous file with comments | « ash/ash.gyp ('k') | ash/wm/window_animations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698