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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 panel->appendChild(muteButton.release(), exceptionState); | 113 panel->appendChild(muteButton.release(), exceptionState); |
114 if (exceptionState.hadException()) | 114 if (exceptionState.hadException()) |
115 return false; | 115 return false; |
116 | 116 |
117 RefPtr<MediaControlVolumeSliderElement> slider = MediaControlVolumeSliderEle
ment::create(document); | 117 RefPtr<MediaControlVolumeSliderElement> slider = MediaControlVolumeSliderEle
ment::create(document); |
118 m_volumeSlider = slider.get(); | 118 m_volumeSlider = slider.get(); |
119 panel->appendChild(slider.release(), exceptionState); | 119 panel->appendChild(slider.release(), exceptionState); |
120 if (exceptionState.hadException()) | 120 if (exceptionState.hadException()) |
121 return false; | 121 return false; |
122 | 122 |
123 RefPtr<MediaControlToggleClosedCaptionsButtonElement> toggleClosedCaptionsBu
tton = MediaControlToggleClosedCaptionsButtonElement::create(document, this); | 123 RefPtr<MediaControlToggleClosedCaptionsButtonElement> toggleClosedCaptionsBu
tton = MediaControlToggleClosedCaptionsButtonElement::create(document); |
124 m_toggleClosedCaptionsButton = toggleClosedCaptionsButton.get(); | 124 m_toggleClosedCaptionsButton = toggleClosedCaptionsButton.get(); |
125 panel->appendChild(toggleClosedCaptionsButton.release(), exceptionState); | 125 panel->appendChild(toggleClosedCaptionsButton.release(), exceptionState); |
126 if (exceptionState.hadException()) | 126 if (exceptionState.hadException()) |
127 return false; | 127 return false; |
128 | 128 |
129 RefPtr<MediaControlFullscreenButtonElement> fullscreenButton = MediaControlF
ullscreenButtonElement::create(document); | 129 RefPtr<MediaControlFullscreenButtonElement> fullscreenButton = MediaControlF
ullscreenButtonElement::create(document); |
130 m_fullScreenButton = fullscreenButton.get(); | 130 m_fullScreenButton = fullscreenButton.get(); |
131 panel->appendChild(fullscreenButton.release(), exceptionState); | 131 panel->appendChild(fullscreenButton.release(), exceptionState); |
132 if (exceptionState.hadException()) | 132 if (exceptionState.hadException()) |
133 return false; | 133 return false; |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 m_textDisplayContainer->updateDisplay(); | 454 m_textDisplayContainer->updateDisplay(); |
455 } | 455 } |
456 | 456 |
457 void MediaControls::insertTextTrackContainer(PassRefPtr<MediaControlTextTrackCon
tainerElement> textTrackContainer) | 457 void MediaControls::insertTextTrackContainer(PassRefPtr<MediaControlTextTrackCon
tainerElement> textTrackContainer) |
458 { | 458 { |
459 // Insert it before the first controller element so it always displays behin
d the controls. | 459 // Insert it before the first controller element so it always displays behin
d the controls. |
460 insertBefore(textTrackContainer, m_enclosure); | 460 insertBefore(textTrackContainer, m_enclosure); |
461 } | 461 } |
462 | 462 |
463 } | 463 } |
OLD | NEW |