Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(519)

Side by Side Diff: mojo/services/public/interfaces/view_manager/animations.mojom

Issue 782693004: Update mojo sdk to rev f6c8ec07c01deebc13178d516225fd12695c3dc2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: hack mojo_system_impl gypi for android :| Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module mojo;
6
7 import "mojo/services/public/interfaces/geometry/geometry.mojom";
8
9 enum AnimationTweenType {
10 LINEAR,
11 EASE_IN,
12 EASE_OUT,
13 EASE_IN_OUT,
14 };
15
16 enum AnimationProperty {
17 // Used for pausing.
18 NONE,
19 OPACITY,
20 TRANSFORM,
21 };
22
23 struct AnimationValue {
24 float float_value;
25 Transform transform;
26 };
27
28 // Identifies how a particular property should be animated between a start and
29 // target value.
30 struct AnimationElement {
31 AnimationProperty property;
32
33 // Duration is in microseconds.
34 int64 duration;
35
36 AnimationTweenType tween_type;
37
38 // If not specified the start value is taken from either the current value
39 // (for the first element) or the target_value of the previous element.
40 AnimationValue? start_value;
41
42 // target_value may be null when property is NONE.
43 AnimationValue? target_value;
44 };
45
46 // An AnimationSequence consists of a number of AnimationElements to animate.
47 // Each element is animated serially.
48 struct AnimationSequence {
49 // Number of times to run the sequence. Value of 0 means run until
50 // explicitly stopped.
51 uint32 cycle_count;
52
53 array<AnimationElement> elements;
54 };
55
56 // AnimationGroup identifies a view and a set of AnimationSequences to apply
57 // to the view. Each sequence is run in parallel.
58 struct AnimationGroup {
59 uint32 view_id;
60 array<AnimationSequence> sequences;
61 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698