| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 , m_muted(false) | 55 , m_muted(false) |
| 56 , m_readyState(HTMLMediaElement::HAVE_NOTHING) | 56 , m_readyState(HTMLMediaElement::HAVE_NOTHING) |
| 57 , m_playbackState(WAITING) | 57 , m_playbackState(WAITING) |
| 58 , m_pendingEventsQueue(GenericEventQueue::create(this)) | 58 , m_pendingEventsQueue(GenericEventQueue::create(this)) |
| 59 , m_clearPositionTimer(this, &MediaController::clearPositionTimerFired) | 59 , m_clearPositionTimer(this, &MediaController::clearPositionTimerFired) |
| 60 , m_clock(Clock::create()) | 60 , m_clock(Clock::create()) |
| 61 , m_executionContext(context) | 61 , m_executionContext(context) |
| 62 , m_timeupdateTimer(this, &MediaController::timeupdateTimerFired) | 62 , m_timeupdateTimer(this, &MediaController::timeupdateTimerFired) |
| 63 , m_previousTimeupdateTime(0) | 63 , m_previousTimeupdateTime(0) |
| 64 { | 64 { |
| 65 ScriptWrappable::init(this); | |
| 66 } | 65 } |
| 67 | 66 |
| 68 MediaController::~MediaController() | 67 MediaController::~MediaController() |
| 69 { | 68 { |
| 70 } | 69 } |
| 71 | 70 |
| 72 void MediaController::addMediaElement(HTMLMediaElement* element) | 71 void MediaController::addMediaElement(HTMLMediaElement* element) |
| 73 { | 72 { |
| 74 ASSERT(element); | 73 ASSERT(element); |
| 75 ASSERT(!m_mediaElements.contains(element)); | 74 ASSERT(!m_mediaElements.contains(element)); |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 { | 617 { |
| 619 #if ENABLE(OILPAN) | 618 #if ENABLE(OILPAN) |
| 620 visitor->trace(m_mediaElements); | 619 visitor->trace(m_mediaElements); |
| 621 visitor->trace(m_pendingEventsQueue); | 620 visitor->trace(m_pendingEventsQueue); |
| 622 visitor->trace(m_executionContext); | 621 visitor->trace(m_executionContext); |
| 623 #endif | 622 #endif |
| 624 EventTargetWithInlineData::trace(visitor); | 623 EventTargetWithInlineData::trace(visitor); |
| 625 } | 624 } |
| 626 | 625 |
| 627 } | 626 } |
| OLD | NEW |