OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 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 2727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2738 m_sentEndEvent = false; | 2738 m_sentEndEvent = false; |
2739 } | 2739 } |
2740 | 2740 |
2741 updatePlayState(); | 2741 updatePlayState(); |
2742 } | 2742 } |
2743 | 2743 |
2744 void HTMLMediaElement::durationChanged() | 2744 void HTMLMediaElement::durationChanged() |
2745 { | 2745 { |
2746 WTF_LOG(Media, "HTMLMediaElement::durationChanged(%p)", this); | 2746 WTF_LOG(Media, "HTMLMediaElement::durationChanged(%p)", this); |
2747 // FIXME: Change WebMediaPlayer to convey the currentTime | 2747 // FIXME: Change WebMediaPlayer to convey the currentTime |
2748 // when the duration change occured. The current WebMediaPlayer | 2748 // when the duration change occurred. The current WebMediaPlayer |
2749 // implementations always clamp currentTime() to duration() | 2749 // implementations always clamp currentTime() to duration() |
2750 // so the requestSeek condition here is always false. | 2750 // so the requestSeek condition here is always false. |
2751 durationChanged(duration(), currentTime() > duration()); | 2751 durationChanged(duration(), currentTime() > duration()); |
2752 } | 2752 } |
2753 | 2753 |
2754 void HTMLMediaElement::durationChanged(double duration, bool requestSeek) | 2754 void HTMLMediaElement::durationChanged(double duration, bool requestSeek) |
2755 { | 2755 { |
2756 WTF_LOG(Media, "HTMLMediaElement::durationChanged(%p, %f, %d)", this, durati
on, requestSeek); | 2756 WTF_LOG(Media, "HTMLMediaElement::durationChanged(%p, %f, %d)", this, durati
on, requestSeek); |
2757 | 2757 |
2758 // Abort if duration unchanged. | 2758 // Abort if duration unchanged. |
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3672 visitor->trace(m_client); | 3672 visitor->trace(m_client); |
3673 } | 3673 } |
3674 | 3674 |
3675 DEFINE_TRACE(HTMLMediaElement::AudioSourceProviderImpl) | 3675 DEFINE_TRACE(HTMLMediaElement::AudioSourceProviderImpl) |
3676 { | 3676 { |
3677 visitor->trace(m_client); | 3677 visitor->trace(m_client); |
3678 } | 3678 } |
3679 #endif | 3679 #endif |
3680 | 3680 |
3681 } | 3681 } |
OLD | NEW |