| Index: ui/compositor/test/layer_animation_observer_test_api.h
|
| diff --git a/ui/compositor/test/layer_animation_observer_test_api.h b/ui/compositor/test/layer_animation_observer_test_api.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..77052759fce447d8e93285b24c18e61b88c2c69c
|
| --- /dev/null
|
| +++ b/ui/compositor/test/layer_animation_observer_test_api.h
|
| @@ -0,0 +1,34 @@
|
| +// Copyright 2015 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_COMPOSITOR_TEST_LAYER_ANIMATION_OBSERVER_TEST_API_H_
|
| +#define UI_COMPOSITOR_TEST_LAYER_ANIMATION_OBSERVER_TEST_API_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "ui/compositor/layer_animation_observer.h"
|
| +
|
| +namespace ui {
|
| +namespace test {
|
| +
|
| +// Test API to provide internal access to the LayerAnimationObserver class.
|
| +class LayerAnimationObserverTestApi {
|
| + public:
|
| + explicit LayerAnimationObserverTestApi(LayerAnimationObserver* observer);
|
| +
|
| + // Wrappers for LayerAnimationObserver.
|
| + void AttachedToSequence(LayerAnimationSequence* sequence);
|
| + void DetachedFromSequence(LayerAnimationSequence* sequence,
|
| + bool send_notification);
|
| +
|
| + private:
|
| + // The instance to provide internal access to.
|
| + LayerAnimationObserver* observer_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(LayerAnimationObserverTestApi);
|
| +};
|
| +
|
| +} // namespace test
|
| +} // namespace ui
|
| +
|
| +#endif // UI_COMPOSITOR_TEST_LAYER_ANIMATION_OBSERVER_TEST_API_H_
|
|
|