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 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 class Clock; | 37 class Clock; |
38 class ExceptionState; | 38 class ExceptionState; |
39 class ExecutionContext; | 39 class ExecutionContext; |
40 class GenericEventQueue; | 40 class GenericEventQueue; |
41 | 41 |
42 class MediaController FINAL : public RefCountedWillBeGarbageCollectedFinalized<M
ediaController>, public EventTargetWithInlineData { | 42 class MediaController FINAL : public RefCountedWillBeGarbageCollectedFinalized<M
ediaController>, public EventTargetWithInlineData { |
| 43 DEFINE_WRAPPERTYPEINFO(); |
43 REFCOUNTED_EVENT_TARGET(MediaController); | 44 REFCOUNTED_EVENT_TARGET(MediaController); |
44 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaController); | 45 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaController); |
45 public: | 46 public: |
46 static PassRefPtrWillBeRawPtr<MediaController> create(ExecutionContext*); | 47 static PassRefPtrWillBeRawPtr<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 PassRefPtrWillBeRawPtr<TimeRanges> buffered() const; | 53 PassRefPtrWillBeRawPtr<TimeRanges> buffered() const; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 OwnPtrWillBeMember<GenericEventQueue> m_pendingEventsQueue; | 126 OwnPtrWillBeMember<GenericEventQueue> m_pendingEventsQueue; |
126 mutable Timer<MediaController> m_clearPositionTimer; | 127 mutable Timer<MediaController> m_clearPositionTimer; |
127 OwnPtr<Clock> m_clock; | 128 OwnPtr<Clock> m_clock; |
128 RawPtrWillBeWeakMember<ExecutionContext> m_executionContext; | 129 RawPtrWillBeWeakMember<ExecutionContext> m_executionContext; |
129 Timer<MediaController> m_timeupdateTimer; | 130 Timer<MediaController> m_timeupdateTimer; |
130 double m_previousTimeupdateTime; | 131 double m_previousTimeupdateTime; |
131 }; | 132 }; |
132 | 133 |
133 } // namespace blink | 134 } // namespace blink |
134 | 135 |
135 #endif | 136 #endif // MediaController_h |
OLD | NEW |