blob: 9f247091fbaf82f38b34d17e926f07391c0dc622 [file] [log] [blame]
Avi Drissman3a215d1e2022-09-07 19:43:091// Copyright 2018 The Chromium Authors
Katie Dff92ee72018-07-13 19:59:392// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
David Tsengb774097e2021-03-24 17:31:105#ifndef ASH_ACCESSIBILITY_UI_LAYER_ANIMATION_INFO_H_
6#define ASH_ACCESSIBILITY_UI_LAYER_ANIMATION_INFO_H_
Katie Dff92ee72018-07-13 19:59:397
8#include "base/time/time.h"
9
10namespace ash {
11
12struct 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
21void ComputeOpacity(LayerAnimationInfo* animation_info,
22 base::TimeTicks timestamp);
23
Katie Dff92ee72018-07-13 19:59:3924} // namespace ash
25
David Tsengb774097e2021-03-24 17:31:1026#endif // ASH_ACCESSIBILITY_UI_LAYER_ANIMATION_INFO_H_