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

Side by Side Diff: sky/engine/core/animation/animatable/AnimatableValue.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 bool isStrokeDasharrayList() const { return type() == TypeStrokeDasharrayLis t; } 77 bool isStrokeDasharrayList() const { return type() == TypeStrokeDasharrayLis t; }
78 bool isTransform() const { return type() == TypeTransform; } 78 bool isTransform() const { return type() == TypeTransform; }
79 bool isUnknown() const { return type() == TypeUnknown; } 79 bool isUnknown() const { return type() == TypeUnknown; }
80 80
81 bool isSameType(const AnimatableValue* value) const 81 bool isSameType(const AnimatableValue* value) const
82 { 82 {
83 ASSERT(value); 83 ASSERT(value);
84 return value->type() == type(); 84 return value->type() == type();
85 } 85 }
86 86
87 virtual void trace(Visitor*) { }
88
89 protected: 87 protected:
90 enum AnimatableType { 88 enum AnimatableType {
91 TypeClipPathOperation, 89 TypeClipPathOperation,
92 TypeColor, 90 TypeColor,
93 TypeDouble, 91 TypeDouble,
94 TypeFilterOperations, 92 TypeFilterOperations,
95 TypeImage, 93 TypeImage,
96 TypeLength, 94 TypeLength,
97 TypeLengthBox, 95 TypeLengthBox,
98 TypeLengthBoxAndBool, 96 TypeLengthBoxAndBool,
(...skipping 25 matching lines...) Expand all
124 122
125 template <class Keyframe> friend class KeyframeEffectModel; 123 template <class Keyframe> friend class KeyframeEffectModel;
126 }; 124 };
127 125
128 #define DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(thisType, predicate) \ 126 #define DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(thisType, predicate) \
129 DEFINE_TYPE_CASTS(thisType, AnimatableValue, value, value->predicate, value. predicate) 127 DEFINE_TYPE_CASTS(thisType, AnimatableValue, value, value->predicate, value. predicate)
130 128
131 } // namespace blink 129 } // namespace blink
132 130
133 #endif // AnimatableValue_h 131 #endif // AnimatableValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698