Index: ui/views/animation/ink_drop_delegate.h |
diff --git a/ui/views/animation/ink_drop_delegate.h b/ui/views/animation/ink_drop_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3fcb00fb6f976b39173eb73f020aa837ec410d0c |
--- /dev/null |
+++ b/ui/views/animation/ink_drop_delegate.h |
@@ -0,0 +1,45 @@ |
+// 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_VIEWS_ANIMATION_INK_DROP_DELEGATE_H_ |
+#define UI_VIEWS_ANIMATION_INK_DROP_DELEGATE_H_ |
+ |
+#include "base/macros.h" |
+#include "ui/views/animation/ink_drop_state.h" |
+#include "ui/views/views_export.h" |
+ |
+namespace ui { |
+class GestureEvent; |
+class Event; |
+} // namespace ui |
+ |
+namespace views { |
+ |
+// Ink ripple animation delegate that starts and stops animations based on |
+// View states and events. |
+class VIEWS_EXPORT InkDropDelegate { |
+ public: |
+ InkDropDelegate() {} |
+ virtual ~InkDropDelegate() {} |
+ |
+ // Sets sizes for the animation layers. |
+ virtual void SetInkDropSize(int large_size, |
+ int large_corner_radius, |
+ int small_size, |
+ int small_corner_radius) = 0; |
sadrul
2015/11/25 22:38:58
The layers are square-sized, and large_size and sm
varkha
2015/11/26 00:05:46
Done.
|
+ |
+ // Called when the bounds of the View changes necessitating change in |
+ // positioning of ink ripple layers. |
+ virtual void OnBoundsChanged() = 0; |
+ |
+ // Called when ink ripple state changes. |
+ virtual void OnAction(InkDropState state) = 0; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(InkDropDelegate); |
+}; |
+ |
+} // namespace views |
+ |
+#endif // UI_VIEWS_ANIMATION_INK_DROP_DELEGATE_H_ |