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

Side by Side Diff: Source/platform/animation/AnimationValue.h

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 16 matching lines...) Expand all
27 #ifndef AnimationValue_h 27 #ifndef AnimationValue_h
28 #define AnimationValue_h 28 #define AnimationValue_h
29 29
30 #include "platform/animation/TimingFunction.h" 30 #include "platform/animation/TimingFunction.h"
31 #include "platform/graphics/filters/FilterOperations.h" 31 #include "platform/graphics/filters/FilterOperations.h"
32 #include "platform/transforms/TransformOperations.h" 32 #include "platform/transforms/TransformOperations.h"
33 33
34 #include "wtf/PassRefPtr.h" 34 #include "wtf/PassRefPtr.h"
35 #include "wtf/RefPtr.h" 35 #include "wtf/RefPtr.h"
36 36
37 namespace WebCore { 37 namespace blink {
38 38
39 // Base class for animation values (also used for transitions). Here to 39 // Base class for animation values (also used for transitions). Here to
40 // represent values for properties being animated via the GraphicsLayer, 40 // represent values for properties being animated via the GraphicsLayer,
41 // without pulling in style-related data from outside of the platform directory. 41 // without pulling in style-related data from outside of the platform directory.
42 class AnimationValue { 42 class AnimationValue {
43 WTF_MAKE_FAST_ALLOCATED; 43 WTF_MAKE_FAST_ALLOCATED;
44 public: 44 public:
45 explicit AnimationValue(double keyTime, PassRefPtr<TimingFunction> timingFun ction = nullptr) 45 explicit AnimationValue(double keyTime, PassRefPtr<TimingFunction> timingFun ction = nullptr)
46 : m_keyTime(keyTime) 46 : m_keyTime(keyTime)
47 , m_timingFunction(timingFunction) 47 , m_timingFunction(timingFunction)
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 m_value = *value; 102 m_value = *value;
103 } 103 }
104 virtual PassOwnPtr<AnimationValue> clone() const OVERRIDE { return adoptPtr( new FilterAnimationValue(*this)); } 104 virtual PassOwnPtr<AnimationValue> clone() const OVERRIDE { return adoptPtr( new FilterAnimationValue(*this)); }
105 105
106 const FilterOperations* value() const { return &m_value; } 106 const FilterOperations* value() const { return &m_value; }
107 107
108 private: 108 private:
109 FilterOperations m_value; 109 FilterOperations m_value;
110 }; 110 };
111 111
112 } // namespace WebCore 112 } // namespace blink
113 113
114 #endif // AnimationValue_h 114 #endif // AnimationValue_h
OLDNEW
« no previous file with comments | « Source/platform/animation/AnimationUtilities.h ('k') | Source/platform/animation/KeyframeValueList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698