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
27
28
29
ash / accessibility / switch_access / point_scan_layer_animation_info.h [blame]
// Copyright 2020 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_SWITCH_ACCESS_POINT_SCAN_LAYER_ANIMATION_INFO_H_
#define ASH_ACCESSIBILITY_SWITCH_ACCESS_POINT_SCAN_LAYER_ANIMATION_INFO_H_
#include "base/time/time.h"
namespace ash {
struct PointScanLayerAnimationInfo {
base::TimeTicks start_time;
base::TimeTicks change_time;
base::TimeTicks linger_until;
float offset = 0;
float offset_bound = 0;
float offset_start = 0;
float animation_rate = 0;
void Clear();
};
void ComputeOffset(PointScanLayerAnimationInfo* animation_info,
base::TimeTicks timestamp);
} // namespace ash
#endif // ASH_ACCESSIBILITY_SWITCH_ACCESS_POINT_SCAN_LAYER_ANIMATION_INFO_H_