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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 enum PlaybackState { WAITING, PLAYING, ENDED }; | 80 enum PlaybackState { WAITING, PLAYING, ENDED }; |
81 const AtomicString& playbackState() const; | 81 const AtomicString& playbackState() const; |
82 | 82 |
83 bool isRestrained() const; | 83 bool isRestrained() const; |
84 bool isBlocked() const; | 84 bool isBlocked() const; |
85 | 85 |
86 #if !ENABLE(OILPAN) | 86 #if !ENABLE(OILPAN) |
87 void clearExecutionContext() { m_executionContext = nullptr; } | 87 void clearExecutionContext() { m_executionContext = nullptr; } |
88 #endif | 88 #endif |
89 | 89 |
90 virtual void trace(Visitor*) override; | 90 DECLARE_VIRTUAL_TRACE(); |
91 | 91 |
92 private: | 92 private: |
93 MediaController(ExecutionContext*); | 93 MediaController(ExecutionContext*); |
94 void reportControllerState(); | 94 void reportControllerState(); |
95 void updateReadyState(); | 95 void updateReadyState(); |
96 void updatePlaybackState(); | 96 void updatePlaybackState(); |
97 void updateMediaElements(); | 97 void updateMediaElements(); |
98 void bringElementUpToSpeed(HTMLMediaElement*); | 98 void bringElementUpToSpeed(HTMLMediaElement*); |
99 void scheduleEvent(const AtomicString& eventName); | 99 void scheduleEvent(const AtomicString& eventName); |
100 void clearPositionTimerFired(Timer<MediaController>*); | 100 void clearPositionTimerFired(Timer<MediaController>*); |
(...skipping 25 matching lines...) Expand all Loading... |
126 mutable Timer<MediaController> m_clearPositionTimer; | 126 mutable Timer<MediaController> m_clearPositionTimer; |
127 OwnPtr<Clock> m_clock; | 127 OwnPtr<Clock> m_clock; |
128 RawPtrWillBeWeakMember<ExecutionContext> m_executionContext; | 128 RawPtrWillBeWeakMember<ExecutionContext> m_executionContext; |
129 Timer<MediaController> m_timeupdateTimer; | 129 Timer<MediaController> m_timeupdateTimer; |
130 double m_previousTimeupdateTime; | 130 double m_previousTimeupdateTime; |
131 }; | 131 }; |
132 | 132 |
133 } // namespace blink | 133 } // namespace blink |
134 | 134 |
135 #endif // MediaController_h | 135 #endif // MediaController_h |
OLD | NEW |