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

Side by Side Diff: Source/core/animation/AnimatableLength.h

Issue 129133002: Update animation classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « Source/core/animation/AnimatableImage.h ('k') | Source/core/animation/AnimatableLengthBox.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 28 matching lines...) Expand all
39 namespace WebCore { 39 namespace WebCore {
40 40
41 enum NumberRange { 41 enum NumberRange {
42 AllValues, 42 AllValues,
43 NonNegativeValues, 43 NonNegativeValues,
44 }; 44 };
45 45
46 // Handles animation of CSS length and percentage values including CSS calc. 46 // Handles animation of CSS length and percentage values including CSS calc.
47 // See primitiveUnitToNumberType() for the list of supported units. 47 // See primitiveUnitToNumberType() for the list of supported units.
48 // If created from a CSSPrimitiveValue this class will cache it to be returned i n toCSSValue(). 48 // If created from a CSSPrimitiveValue this class will cache it to be returned i n toCSSValue().
49 class AnimatableLength : public AnimatableValue { 49 class AnimatableLength FINAL : public AnimatableValue {
50 public: 50 public:
51 enum NumberUnitType { 51 enum NumberUnitType {
52 UnitTypeCalc, 52 UnitTypeCalc,
53 UnitTypePixels, 53 UnitTypePixels,
54 UnitTypePercentage, 54 UnitTypePercentage,
55 UnitTypeFontSize, 55 UnitTypeFontSize,
56 UnitTypeFontXSize, 56 UnitTypeFontXSize,
57 UnitTypeRootFontSize, 57 UnitTypeRootFontSize,
58 UnitTypeViewportWidth, 58 UnitTypeViewportWidth,
59 UnitTypeViewportHeight, 59 UnitTypeViewportHeight,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 mutable RefPtr<CSSPrimitiveValue> m_cachedCSSPrimitiveValue; 158 mutable RefPtr<CSSPrimitiveValue> m_cachedCSSPrimitiveValue;
159 159
160 friend class AnimationAnimatableLengthTest; 160 friend class AnimationAnimatableLengthTest;
161 }; 161 };
162 162
163 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableLength, isLength()); 163 DEFINE_ANIMATABLE_VALUE_TYPE_CASTS(AnimatableLength, isLength());
164 164
165 } // namespace WebCore 165 } // namespace WebCore
166 166
167 #endif // AnimatableLength_h 167 #endif // AnimatableLength_h
OLDNEW
« no previous file with comments | « Source/core/animation/AnimatableImage.h ('k') | Source/core/animation/AnimatableLengthBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698