| 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" | 
| (...skipping 29 matching lines...) Expand all  Loading... | 
| 40 | 40 | 
| 41   // Immediately snaps the InkDropState to ACTIVATED. This more specific | 41   // Immediately snaps the InkDropState to ACTIVATED. This more specific | 
| 42   // implementation of the non-existent SnapToState(InkDropState) function is | 42   // implementation of the non-existent SnapToState(InkDropState) function is | 
| 43   // the only one available because it was the only InkDropState that clients | 43   // the only one available because it was the only InkDropState that clients | 
| 44   // needed to skip animations for. | 44   // needed to skip animations for. | 
| 45   virtual void SnapToActivated() = 0; | 45   virtual void SnapToActivated() = 0; | 
| 46 | 46 | 
| 47   // Enables or disables the hover state. | 47   // Enables or disables the hover state. | 
| 48   virtual void SetHovered(bool is_hovered) = 0; | 48   virtual void SetHovered(bool is_hovered) = 0; | 
| 49 | 49 | 
|  | 50   // Enables or disables the focus state. | 
|  | 51   virtual void SetFocused(bool is_focused) = 0; | 
|  | 52 | 
| 50  protected: | 53  protected: | 
| 51   InkDrop() {} | 54   InkDrop() {} | 
| 52 | 55 | 
| 53  private: | 56  private: | 
| 54   DISALLOW_COPY_AND_ASSIGN(InkDrop); | 57   DISALLOW_COPY_AND_ASSIGN(InkDrop); | 
| 55 }; | 58 }; | 
| 56 | 59 | 
| 57 }  // namespace views | 60 }  // namespace views | 
| 58 | 61 | 
| 59 #endif  // UI_VIEWS_ANIMATION_INK_DROP_H_ | 62 #endif  // UI_VIEWS_ANIMATION_INK_DROP_H_ | 
| OLD | NEW | 
|---|