diff options
author | ajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-13 04:08:36 +0000 |
---|---|---|
committer | ajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-13 04:08:36 +0000 |
commit | dd31fa84c82dfac344099bfa80d774fbe9399022 (patch) | |
tree | 2745d908ab5586f774d99eece99a871dfba7ab71 /ash/test/ash_test_base.h | |
parent | 7539285b1aa7d67f5c78d402c3de6c884a2478b3 (diff) | |
download | chromium_src-dd31fa84c82dfac344099bfa80d774fbe9399022.zip chromium_src-dd31fa84c82dfac344099bfa80d774fbe9399022.tar.gz chromium_src-dd31fa84c82dfac344099bfa80d774fbe9399022.tar.bz2 |
Add duration_scale_mode to ui::LayerAnimator
This allows animations to be sped up or slowed down for testing
or debugging. This replaces LayerAnimator::slow_animation_mode
and LayerAnimator::disable_animations_for_tests.
BUG=129683
Review URL: https://chromiumcodereview.appspot.com/12465005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@187765 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/test/ash_test_base.h')
-rw-r--r-- | ash/test/ash_test_base.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ash/test/ash_test_base.h b/ash/test/ash_test_base.h index 3b4bd1d..5b0438c 100644 --- a/ash/test/ash_test_base.h +++ b/ash/test/ash_test_base.h @@ -28,6 +28,10 @@ class EventGenerator; } // namespace test } // namespace aura +namespace ui { +class ScopedAnimationDurationScaleMode; +} // namespace ui + namespace ash { namespace internal { class DisplayManager; @@ -110,6 +114,8 @@ class AshTestBase : public testing::Test { scoped_ptr<TestMetroViewerProcessHost> metro_viewer_host_; #endif + scoped_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_; + DISALLOW_COPY_AND_ASSIGN(AshTestBase); }; |