| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "wtf/PassOwnPtr.h" | 32 #include "wtf/PassOwnPtr.h" |
| 33 #include "wtf/PassRefPtr.h" | 33 #include "wtf/PassRefPtr.h" |
| 34 #include "wtf/RefCounted.h" | 34 #include "wtf/RefCounted.h" |
| 35 #include "wtf/StdLibExtras.h" | 35 #include "wtf/StdLibExtras.h" |
| 36 #include "wtf/Vector.h" | 36 #include "wtf/Vector.h" |
| 37 #include <algorithm> | 37 #include <algorithm> |
| 38 | 38 |
| 39 | 39 |
| 40 namespace WebCore { | 40 namespace WebCore { |
| 41 | 41 |
| 42 class TimingFunction : public RefCounted<TimingFunction> { | 42 class PLATFORM_EXPORT TimingFunction : public RefCounted<TimingFunction> { |
| 43 public: | 43 public: |
| 44 | 44 |
| 45 enum Type { | 45 enum Type { |
| 46 LinearFunction, CubicBezierFunction, StepsFunction, ChainedFunction | 46 LinearFunction, CubicBezierFunction, StepsFunction, ChainedFunction |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 virtual ~TimingFunction() { } | 49 virtual ~TimingFunction() { } |
| 50 | 50 |
| 51 Type type() const { return m_type; } | 51 Type type() const { return m_type; } |
| 52 | 52 |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 value.type() == TimingFunction::typeName##Function) | 321 value.type() == TimingFunction::typeName##Function) |
| 322 | 322 |
| 323 DEFINE_TIMING_FUNCTION_TYPE_CASTS(Linear); | 323 DEFINE_TIMING_FUNCTION_TYPE_CASTS(Linear); |
| 324 DEFINE_TIMING_FUNCTION_TYPE_CASTS(CubicBezier); | 324 DEFINE_TIMING_FUNCTION_TYPE_CASTS(CubicBezier); |
| 325 DEFINE_TIMING_FUNCTION_TYPE_CASTS(Steps); | 325 DEFINE_TIMING_FUNCTION_TYPE_CASTS(Steps); |
| 326 DEFINE_TIMING_FUNCTION_TYPE_CASTS(Chained); | 326 DEFINE_TIMING_FUNCTION_TYPE_CASTS(Chained); |
| 327 | 327 |
| 328 } // namespace WebCore | 328 } // namespace WebCore |
| 329 | 329 |
| 330 #endif // TimingFunction_h | 330 #endif // TimingFunction_h |
| OLD | NEW |