| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // EventTarget | 107 // EventTarget |
| 108 virtual const AtomicString& interfaceName() const override; | 108 virtual const AtomicString& interfaceName() const override; |
| 109 virtual ExecutionContext* executionContext() const override { return m_execu
tionContext; } | 109 virtual ExecutionContext* executionContext() const override { return m_execu
tionContext; } |
| 110 | 110 |
| 111 friend class HTMLMediaElement; | 111 friend class HTMLMediaElement; |
| 112 friend class MediaControllerEventListener; | 112 friend class MediaControllerEventListener; |
| 113 // FIXME: A MediaController should ideally keep an otherwise | 113 // FIXME: A MediaController should ideally keep an otherwise |
| 114 // unreferenced slaved media element alive. When Oilpan is | 114 // unreferenced slaved media element alive. When Oilpan is |
| 115 // enabled by default, consider making the hash set references | 115 // enabled by default, consider making the hash set references |
| 116 // strong to accomplish that. crbug.com/383072 | 116 // strong to accomplish that. crbug.com/383072 |
| 117 typedef WillBeHeapLinkedHashSet<RawPtrWillBeWeakMember<HTMLMediaElement> > M
ediaElementSequence; | 117 typedef WillBeHeapLinkedHashSet<RawPtrWillBeWeakMember<HTMLMediaElement>> Me
diaElementSequence; |
| 118 MediaElementSequence m_mediaElements; | 118 MediaElementSequence m_mediaElements; |
| 119 bool m_paused; | 119 bool m_paused; |
| 120 double m_defaultPlaybackRate; | 120 double m_defaultPlaybackRate; |
| 121 double m_volume; | 121 double m_volume; |
| 122 mutable double m_position; | 122 mutable double m_position; |
| 123 bool m_muted; | 123 bool m_muted; |
| 124 ReadyState m_readyState; | 124 ReadyState m_readyState; |
| 125 PlaybackState m_playbackState; | 125 PlaybackState m_playbackState; |
| 126 OwnPtrWillBeMember<GenericEventQueue> m_pendingEventsQueue; | 126 OwnPtrWillBeMember<GenericEventQueue> m_pendingEventsQueue; |
| 127 mutable Timer<MediaController> m_clearPositionTimer; | 127 mutable Timer<MediaController> m_clearPositionTimer; |
| 128 OwnPtr<Clock> m_clock; | 128 OwnPtr<Clock> m_clock; |
| 129 RawPtrWillBeWeakMember<ExecutionContext> m_executionContext; | 129 RawPtrWillBeWeakMember<ExecutionContext> m_executionContext; |
| 130 Timer<MediaController> m_timeupdateTimer; | 130 Timer<MediaController> m_timeupdateTimer; |
| 131 double m_previousTimeupdateTime; | 131 double m_previousTimeupdateTime; |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 } // namespace blink | 134 } // namespace blink |
| 135 | 135 |
| 136 #endif // MediaController_h | 136 #endif // MediaController_h |
| OLD | NEW |