Automated Commit: Committing new LKGM version 7479.0.0 for chromeos.
[chromium-blink-merge.git] / ui / views / animation / ink_drop_animation_controller.h
blob4e1cbd10db61d774d984f23a771c4c0a7a0cec75
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"
17 namespace ui {
18 class Layer;
21 namespace views {
23 // Pure virtual base class that manages an ink drop animation's lifetime and
24 // state.
25 class VIEWS_EXPORT InkDropAnimationController {
26 public:
27 virtual ~InkDropAnimationController() {}
29 // Gets the current state of the ink drop.
30 virtual InkDropState GetInkDropState() const = 0;
32 // Animates from the current InkDropState to |state|.
33 virtual void AnimateToState(InkDropState state) = 0;
35 virtual gfx::Size GetInkDropLargeSize() const = 0;
37 // Sets the different sizes of the ink drop.
38 virtual void SetInkDropSize(const gfx::Size& large_size,
39 int large_corner_radius,
40 const gfx::Size& small_size,
41 int small_corner_radius) = 0;
43 // Sets the |center_point| of the ink drop relative to its parent Layer.
44 virtual void SetInkDropCenter(const gfx::Point& center_point) = 0;
46 protected:
47 InkDropAnimationController() {}
49 private:
50 DISALLOW_COPY_AND_ASSIGN(InkDropAnimationController);
53 } // namespace views
55 #endif // UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_CONTROLLER_H_