OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. |
3 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 } | 859 } |
860 | 860 |
861 void MediaControlsImpl::onPlay() { | 861 void MediaControlsImpl::onPlay() { |
862 updatePlayState(); | 862 updatePlayState(); |
863 m_timeline->setPosition(mediaElement().currentTime()); | 863 m_timeline->setPosition(mediaElement().currentTime()); |
864 updateCurrentTimeDisplay(); | 864 updateCurrentTimeDisplay(); |
865 | 865 |
866 startHideMediaControlsTimer(); | 866 startHideMediaControlsTimer(); |
867 } | 867 } |
868 | 868 |
| 869 void MediaControlsImpl::onPlaying() { |
| 870 m_timeline->onPlaying(); |
| 871 } |
| 872 |
869 void MediaControlsImpl::onPause() { | 873 void MediaControlsImpl::onPause() { |
870 updatePlayState(); | 874 updatePlayState(); |
871 m_timeline->setPosition(mediaElement().currentTime()); | 875 m_timeline->setPosition(mediaElement().currentTime()); |
872 updateCurrentTimeDisplay(); | 876 updateCurrentTimeDisplay(); |
873 makeOpaque(); | 877 makeOpaque(); |
874 | 878 |
875 stopHideMediaControlsTimer(); | 879 stopHideMediaControlsTimer(); |
876 } | 880 } |
877 | 881 |
878 void MediaControlsImpl::onTextTracksAddedOrRemoved() { | 882 void MediaControlsImpl::onTextTracksAddedOrRemoved() { |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1115 visitor->trace(m_castButton); | 1119 visitor->trace(m_castButton); |
1116 visitor->trace(m_overlayCastButton); | 1120 visitor->trace(m_overlayCastButton); |
1117 visitor->trace(m_mediaEventListener); | 1121 visitor->trace(m_mediaEventListener); |
1118 visitor->trace(m_windowEventListener); | 1122 visitor->trace(m_windowEventListener); |
1119 visitor->trace(m_orientationLockDelegate); | 1123 visitor->trace(m_orientationLockDelegate); |
1120 MediaControls::trace(visitor); | 1124 MediaControls::trace(visitor); |
1121 HTMLDivElement::trace(visitor); | 1125 HTMLDivElement::trace(visitor); |
1122 } | 1126 } |
1123 | 1127 |
1124 } // namespace blink | 1128 } // namespace blink |
OLD | NEW |