| 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_IMPL_H_ | 5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_IMPL_H_ |
| 6 #define UI_VIEWS_ANIMATION_INK_DROP_IMPL_H_ | 6 #define UI_VIEWS_ANIMATION_INK_DROP_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "ui/gfx/geometry/rect.h" | 11 #include "ui/gfx/geometry/rect.h" |
| 12 #include "ui/gfx/geometry/size.h" | 12 #include "ui/gfx/geometry/size.h" |
| 13 #include "ui/views/animation/ink_drop.h" | 13 #include "ui/views/animation/ink_drop.h" |
| 14 #include "ui/views/animation/ink_drop_highlight_observer.h" | 14 #include "ui/views/animation/ink_drop_highlight_observer.h" |
| 15 #include "ui/views/animation/ink_drop_ripple_observer.h" | 15 #include "ui/views/animation/ink_drop_ripple_observer.h" |
| 16 #include "ui/views/views_export.h" | 16 #include "ui/views/views_export.h" |
| 17 | 17 |
| 18 namespace views { | 18 namespace views { |
| 19 namespace test { | 19 namespace test { |
| 20 class InkDropImplTestApi; | 20 class InkDropImplTestApi; |
| 21 } // namespace test | 21 } // namespace test |
| 22 | 22 |
| 23 class InkDropRipple; | 23 class InkDropRipple; |
| 24 class InkDropHost; | 24 class InkDropHost; |
| 25 class InkDropHighlight; | 25 class InkDropHighlight; |
| 26 class InkDropFactoryTest; | |
| 27 | 26 |
| 28 // A functional implementation of an InkDrop. | 27 // A functional implementation of an InkDrop. |
| 29 class VIEWS_EXPORT InkDropImpl : public InkDrop, | 28 class VIEWS_EXPORT InkDropImpl : public InkDrop, |
| 30 public InkDropRippleObserver, | 29 public InkDropRippleObserver, |
| 31 public InkDropHighlightObserver { | 30 public InkDropHighlightObserver { |
| 32 public: | 31 public: |
| 33 // The different auto highlight behaviors. | 32 // The different auto highlight behaviors. |
| 34 enum class AutoHighlightMode { | 33 enum class AutoHighlightMode { |
| 35 // No auto-highlighting is done. The highlight will only be shown/hidden as | 34 // No auto-highlighting is done. The highlight will only be shown/hidden as |
| 36 // per the hover/focus settings. | 35 // per the hover/focus settings. |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 // Used to ensure highlight state transitions are not triggered when exiting | 303 // Used to ensure highlight state transitions are not triggered when exiting |
| 305 // the current state. | 304 // the current state. |
| 306 bool exiting_highlight_state_; | 305 bool exiting_highlight_state_; |
| 307 | 306 |
| 308 DISALLOW_COPY_AND_ASSIGN(InkDropImpl); | 307 DISALLOW_COPY_AND_ASSIGN(InkDropImpl); |
| 309 }; | 308 }; |
| 310 | 309 |
| 311 } // namespace views | 310 } // namespace views |
| 312 | 311 |
| 313 #endif // UI_VIEWS_ANIMATION_INK_DROP_IMPL_H_ | 312 #endif // UI_VIEWS_ANIMATION_INK_DROP_IMPL_H_ |
| OLD | NEW |