Chromium Code Reviews| Index: cc/animation/animation_target_property.h |
| diff --git a/cc/animation/animation_target_property.h b/cc/animation/animation_target_property.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a862bf79fe993784175bcd0ae6c41ff8942481d8 |
| --- /dev/null |
| +++ b/cc/animation/animation_target_property.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CC_ANIMATION_ANIMATION_TARGET_PROPERTY_H_ |
| +#define CC_ANIMATION_ANIMATION_TARGET_PROPERTY_H_ |
| + |
| +namespace cc { |
| + |
| +struct AnimationTargetProperty { |
|
loyso (OOO)
2016/02/16 06:17:37
This can be a namespace AnimationTargetProperty
|
| + enum Enum { |
|
loyso (OOO)
2016/02/16 06:17:37
Alternatively, we could go with global old-style e
loyso (OOO)
2016/02/17 01:27:29
But old-style enum would not work for 'using' in b
Ian Vollick
2016/02/17 13:43:27
Right, I like this approach for pulling the enum i
|
| + TRANSFORM = 0, |
| + OPACITY, |
| + FILTER, |
| + SCROLL_OFFSET, |
| + BACKGROUND_COLOR, |
| + // This sentinel must be last. |
| + LAST_TARGET_PROPERTY = BACKGROUND_COLOR |
| + }; |
| +}; |
| + |
| +const char* GetAnimationTargetPropertyName( |
|
loyso (OOO)
2016/02/16 06:17:36
This can be a member function.
|
| + AnimationTargetProperty::Enum property); |
| + |
| +} // namespace cc |
| + |
| +#endif // CC_ANIMATION_ANIMATION_TARGET_PROPERTY_H_ |