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 22 matching lines...) Expand all Loading... |
33 #include "wtf/RefCounted.h" | 33 #include "wtf/RefCounted.h" |
34 #include "wtf/Vector.h" | 34 #include "wtf/Vector.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 class Clock; | 38 class Clock; |
39 class ExceptionState; | 39 class ExceptionState; |
40 class ExecutionContext; | 40 class ExecutionContext; |
41 class GenericEventQueue; | 41 class GenericEventQueue; |
42 | 42 |
43 class MediaController FINAL : public RefCounted<MediaController>, public ScriptW
rappable, public EventTargetWithInlineData { | 43 class MediaController FINAL : public RefCountedWillBeRefCountedGarbageCollected<
MediaController>, public ScriptWrappable, public EventTargetWithInlineData { |
44 REFCOUNTED_EVENT_TARGET(MediaController); | 44 REFCOUNTED_EVENT_TARGET(MediaController); |
| 45 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaController); |
45 public: | 46 public: |
46 static PassRefPtr<MediaController> create(ExecutionContext*); | 47 static PassRefPtr<MediaController> create(ExecutionContext*); |
47 virtual ~MediaController(); | 48 virtual ~MediaController(); |
48 | 49 |
49 void addMediaElement(HTMLMediaElement*); | 50 void addMediaElement(HTMLMediaElement*); |
50 void removeMediaElement(HTMLMediaElement*); | 51 void removeMediaElement(HTMLMediaElement*); |
51 | 52 |
52 PassRefPtr<TimeRanges> buffered() const; | 53 PassRefPtr<TimeRanges> buffered() const; |
53 PassRefPtr<TimeRanges> seekable() const; | 54 PassRefPtr<TimeRanges> seekable() const; |
54 PassRefPtr<TimeRanges> played(); | 55 PassRefPtr<TimeRanges> played(); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 mutable Timer<MediaController> m_clearPositionTimer; | 118 mutable Timer<MediaController> m_clearPositionTimer; |
118 OwnPtr<Clock> m_clock; | 119 OwnPtr<Clock> m_clock; |
119 ExecutionContext* m_executionContext; | 120 ExecutionContext* m_executionContext; |
120 Timer<MediaController> m_timeupdateTimer; | 121 Timer<MediaController> m_timeupdateTimer; |
121 double m_previousTimeupdateTime; | 122 double m_previousTimeupdateTime; |
122 }; | 123 }; |
123 | 124 |
124 } // namespace WebCore | 125 } // namespace WebCore |
125 | 126 |
126 #endif | 127 #endif |
OLD | NEW |