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

Unified Diff: ui/base/animation/test_animation_delegate.h

Issue 23531053: ui/base/animation -> ui/gfx/animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge 2 trunk Created 7 years, 3 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 | « ui/base/animation/slide_animation_unittest.cc ('k') | ui/base/animation/throb_animation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/animation/test_animation_delegate.h
diff --git a/ui/base/animation/test_animation_delegate.h b/ui/base/animation/test_animation_delegate.h
deleted file mode 100644
index 3cdaf8c414f61743ccebf3b3f3b13e736fd07c96..0000000000000000000000000000000000000000
--- a/ui/base/animation/test_animation_delegate.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_BASE_ANIMATION_TEST_ANIMATION_DELEGATE_H_
-#define UI_BASE_ANIMATION_TEST_ANIMATION_DELEGATE_H_
-
-#include "base/message_loop/message_loop.h"
-#include "ui/base/animation/animation_delegate.h"
-
-namespace ui {
-
-// Trivial AnimationDelegate implementation. AnimationEnded/Canceled quit the
-// message loop.
-class TestAnimationDelegate : public AnimationDelegate {
- public:
- TestAnimationDelegate() : canceled_(false), finished_(false) {
- }
-
- virtual void AnimationEnded(const Animation* animation) {
- finished_ = true;
- base::MessageLoop::current()->Quit();
- }
-
- virtual void AnimationCanceled(const Animation* animation) {
- finished_ = true;
- canceled_ = true;
- base::MessageLoop::current()->Quit();
- }
-
- bool finished() const {
- return finished_;
- }
-
- bool canceled() const {
- return canceled_;
- }
-
- private:
- bool canceled_;
- bool finished_;
-
- DISALLOW_COPY_AND_ASSIGN(TestAnimationDelegate);
-};
-
-} // namespace ui
-
-#endif // UI_BASE_ANIMATION_TEST_ANIMATION_DELEGATE_H_
« no previous file with comments | « ui/base/animation/slide_animation_unittest.cc ('k') | ui/base/animation/throb_animation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698