1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_CONTROLLER_H_
6 #define UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_CONTROLLER_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "base/time/time.h"
10 #include "ui/compositor/layer_tree_owner.h"
11 #include "ui/events/event_handler.h"
12 #include "ui/gfx/geometry/rect.h"
13 #include "ui/gfx/geometry/size.h"
14 #include "ui/views/animation/ink_drop_state.h"
15 #include "ui/views/views_export.h"
22 class AppearAnimationObserver
;
23 class InkDropDelegate
;
27 // Base class for an ink drop animation which is hosted by an InkDropHost.
28 class VIEWS_EXPORT InkDropAnimationController
{
30 InkDropAnimationController() {}
31 virtual ~InkDropAnimationController() {}
33 // Animates from the current InkDropState to |state|.
34 virtual void AnimateToState(InkDropState state
) = 0;
36 // Sets the size of the ink drop.
37 virtual void SetInkDropSize(const gfx::Size
& size
) = 0;
39 // Returns the ink drop bounds.
40 virtual gfx::Rect
GetInkDropBounds() const = 0;
42 // Sets the bounds for the ink drop. |bounds| are in the coordinate space of
43 // the parent ui::Layer that the ink drop layer is added to.
44 virtual void SetInkDropBounds(const gfx::Rect
& bounds
) = 0;
47 DISALLOW_COPY_AND_ASSIGN(InkDropAnimationController
);
52 #endif // UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_CONTROLLER_H_