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

Side by Side Diff: third_party/WebKit/Source/platform/animation/TimingFunction.h

Issue 2390833002: reflow comments in platform/{animation,blob,clipboard,exported} (Closed)
Patch Set: Created 4 years, 2 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
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 27 matching lines...) Expand all
38 class PLATFORM_EXPORT TimingFunction : public RefCounted<TimingFunction> { 38 class PLATFORM_EXPORT TimingFunction : public RefCounted<TimingFunction> {
39 public: 39 public:
40 using Type = cc::TimingFunction::Type; 40 using Type = cc::TimingFunction::Type;
41 41
42 virtual ~TimingFunction() {} 42 virtual ~TimingFunction() {}
43 43
44 Type getType() const { return m_type; } 44 Type getType() const { return m_type; }
45 45
46 virtual String toString() const = 0; 46 virtual String toString() const = 0;
47 47
48 // Evaluates the timing function at the given fraction. The accuracy parameter provides a hint as to the required 48 // Evaluates the timing function at the given fraction. The accuracy parameter
49 // accuracy and is not guaranteed. 49 // provides a hint as to the required accuracy and is not guaranteed.
50 virtual double evaluate(double fraction, double accuracy) const = 0; 50 virtual double evaluate(double fraction, double accuracy) const = 0;
51 51
52 // This function returns the minimum and maximum values obtainable when 52 // This function returns the minimum and maximum values obtainable when
53 // calling evaluate(); 53 // calling evaluate();
54 virtual void range(double* minValue, double* maxValue) const = 0; 54 virtual void range(double* minValue, double* maxValue) const = 0;
55 55
56 // Create CC instance. 56 // Create CC instance.
57 virtual std::unique_ptr<cc::TimingFunction> cloneToCC() const = 0; 57 virtual std::unique_ptr<cc::TimingFunction> cloneToCC() const = 0;
58 58
59 protected: 59 protected:
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 value->getType() == TimingFunction::Type::enumName, \ 240 value->getType() == TimingFunction::Type::enumName, \
241 value.getType() == TimingFunction::Type::enumName) 241 value.getType() == TimingFunction::Type::enumName)
242 242
243 DEFINE_TIMING_FUNCTION_TYPE_CASTS(Linear, LINEAR); 243 DEFINE_TIMING_FUNCTION_TYPE_CASTS(Linear, LINEAR);
244 DEFINE_TIMING_FUNCTION_TYPE_CASTS(CubicBezier, CUBIC_BEZIER); 244 DEFINE_TIMING_FUNCTION_TYPE_CASTS(CubicBezier, CUBIC_BEZIER);
245 DEFINE_TIMING_FUNCTION_TYPE_CASTS(Steps, STEPS); 245 DEFINE_TIMING_FUNCTION_TYPE_CASTS(Steps, STEPS);
246 246
247 } // namespace blink 247 } // namespace blink
248 248
249 #endif // TimingFunction_h 249 #endif // TimingFunction_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698