OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include <wtf/PassRefPtr.h> | 29 #include <wtf/PassRefPtr.h> |
30 #include <wtf/RefCounted.h> | 30 #include <wtf/RefCounted.h> |
31 | 31 |
32 namespace WebCore { | 32 namespace WebCore { |
33 | 33 |
34 class Clock : public RefCounted<Clock> { | 34 class Clock : public RefCounted<Clock> { |
35 public: | 35 public: |
36 static PassRefPtr<Clock> create(); | 36 static PassRefPtr<Clock> create(); |
37 virtual ~Clock() { } | 37 virtual ~Clock() { } |
38 | 38 |
39 virtual void setCurrentTime(float) = 0; | 39 virtual void setCurrentTime(double) = 0; |
40 virtual float currentTime() const = 0; | 40 virtual double currentTime() const = 0; |
41 | 41 |
42 virtual void setPlayRate(float) = 0; | 42 virtual void setPlayRate(double) = 0; |
43 virtual float playRate() const = 0; | 43 virtual double playRate() const = 0; |
44 | 44 |
45 virtual void start() = 0; | 45 virtual void start() = 0; |
46 virtual void stop() = 0; | 46 virtual void stop() = 0; |
47 virtual bool isRunning() const = 0; | 47 virtual bool isRunning() const = 0; |
48 | 48 |
49 protected: | 49 protected: |
50 Clock() { } | 50 Clock() { } |
51 }; | 51 }; |
52 | 52 |
53 } | 53 } |
54 | 54 |
55 #endif | 55 #endif |
OLD | NEW |