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