| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_H_ | 5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_H_ |
| 6 #define UI_VIEWS_ANIMATION_INK_DROP_H_ | 6 #define UI_VIEWS_ANIMATION_INK_DROP_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "ui/compositor/layer_tree_owner.h" | 12 #include "ui/compositor/layer_tree_owner.h" |
| 13 #include "ui/events/event_handler.h" | 13 #include "ui/events/event_handler.h" |
| 14 #include "ui/gfx/geometry/rect.h" | 14 #include "ui/gfx/geometry/rect.h" |
| 15 #include "ui/gfx/geometry/size.h" | 15 #include "ui/gfx/geometry/size.h" |
| 16 #include "ui/views/animation/ink_drop_state.h" | 16 #include "ui/views/animation/ink_drop_state.h" |
| 17 #include "ui/views/views_export.h" | 17 #include "ui/views/views_export.h" |
| 18 | 18 |
| 19 namespace ui { | 19 namespace ui { |
| 20 class Layer; | 20 class Layer; |
| 21 } | 21 } |
| 22 | |
| 23 namespace views { | 22 namespace views { |
| 24 | 23 |
| 25 // Pure virtual base class that manages the lifetime and state of an ink drop | 24 // Pure virtual base class that manages the lifetime and state of an ink drop |
| 26 // ripple as well as visual hover state feedback. | 25 // ripple as well as visual hover state feedback. |
| 27 class VIEWS_EXPORT InkDrop { | 26 class VIEWS_EXPORT InkDrop { |
| 28 public: | 27 public: |
| 29 virtual ~InkDrop() {} | 28 virtual ~InkDrop() {} |
| 30 | 29 |
| 31 // Gets the target state of the ink drop. | 30 // Gets the target state of the ink drop. |
| 32 virtual InkDropState GetTargetInkDropState() const = 0; | 31 virtual InkDropState GetTargetInkDropState() const = 0; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 49 protected: | 48 protected: |
| 50 InkDrop() {} | 49 InkDrop() {} |
| 51 | 50 |
| 52 private: | 51 private: |
| 53 DISALLOW_COPY_AND_ASSIGN(InkDrop); | 52 DISALLOW_COPY_AND_ASSIGN(InkDrop); |
| 54 }; | 53 }; |
| 55 | 54 |
| 56 } // namespace views | 55 } // namespace views |
| 57 | 56 |
| 58 #endif // UI_VIEWS_ANIMATION_INK_DROP_H_ | 57 #endif // UI_VIEWS_ANIMATION_INK_DROP_H_ |
| OLD | NEW |