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

Side by Side Diff: cc/animation/animation_target_property.h

Issue 1698813002: CC Animation: Expose TargetProperty enum to be aliased in Blink Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use custom hash in unordered_set. Created 4 years, 10 months 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 (c) 2016 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 #ifndef CC_ANIMATION_ANIMATION_TARGET_PROPERTY_H_
6 #define CC_ANIMATION_ANIMATION_TARGET_PROPERTY_H_
7
8 #include <functional>
9 #include <ostream>
10
11 #include "cc/base/cc_export.h"
12
13 namespace cc {
14
15 enum class AnimationTargetProperty : int {
16 TRANSFORM = 0,
17 OPACITY,
18 FILTER,
19 SCROLL_OFFSET,
20 BACKGROUND_COLOR,
21 // This sentinel must be last.
22 LAST_TARGET_PROPERTY = BACKGROUND_COLOR
23 };
24
25 const char* GetAnimationTargetPropertyName(AnimationTargetProperty property);
26
27 std::ostream& CC_EXPORT operator<<(std::ostream& out,
28 AnimationTargetProperty property);
29
30 struct EnumClassHash {
loyso (OOO) 2016/02/17 00:23:06 This can be shared somewhere in base/
31 template <typename T>
32 std::size_t operator()(T t) const {
33 return static_cast<std::size_t>(t);
34 }
35 };
36
37 } // namespace cc
38
39 #endif // CC_ANIMATION_ANIMATION_TARGET_PROPERTY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698