Avi Drissman | 3a215d1e | 2022-09-07 19:43:09 | [diff] [blame] | 1 | // Copyright 2018 The Chromium Authors |
Katie D | ff92ee7 | 2018-07-13 19:59:39 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
David Tseng | b774097e | 2021-03-24 17:31:10 | [diff] [blame] | 5 | #ifndef ASH_ACCESSIBILITY_UI_LAYER_ANIMATION_INFO_H_ |
| 6 | #define ASH_ACCESSIBILITY_UI_LAYER_ANIMATION_INFO_H_ |
Katie D | ff92ee7 | 2018-07-13 19:59:39 | [diff] [blame] | 7 | |
| 8 | #include "base/time/time.h" |
| 9 | |
| 10 | namespace ash { |
| 11 | |
| 12 | struct LayerAnimationInfo { |
| 13 | base::TimeTicks start_time; |
| 14 | base::TimeTicks change_time; |
| 15 | base::TimeDelta fade_in_time; |
| 16 | base::TimeDelta fade_out_time; |
| 17 | float opacity = 0; |
| 18 | bool smooth = false; |
| 19 | }; |
| 20 | |
| 21 | void ComputeOpacity(LayerAnimationInfo* animation_info, |
| 22 | base::TimeTicks timestamp); |
| 23 | |
Katie D | ff92ee7 | 2018-07-13 19:59:39 | [diff] [blame] | 24 | } // namespace ash |
| 25 | |
David Tseng | b774097e | 2021-03-24 17:31:10 | [diff] [blame] | 26 | #endif // ASH_ACCESSIBILITY_UI_LAYER_ANIMATION_INFO_H_ |