| 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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 } | 339 } |
| 340 | 340 |
| 341 void MediaControls::refreshClosedCaptionsButtonVisibility() | 341 void MediaControls::refreshClosedCaptionsButtonVisibility() |
| 342 { | 342 { |
| 343 if (mediaElement().hasClosedCaptions()) | 343 if (mediaElement().hasClosedCaptions()) |
| 344 m_toggleClosedCaptionsButton->show(); | 344 m_toggleClosedCaptionsButton->show(); |
| 345 else | 345 else |
| 346 m_toggleClosedCaptionsButton->hide(); | 346 m_toggleClosedCaptionsButton->hide(); |
| 347 } | 347 } |
| 348 | 348 |
| 349 void MediaControls::closedCaptionTracksChanged() | 349 void MediaControls::textTracksChanged() |
| 350 { | 350 { |
| 351 refreshClosedCaptionsButtonVisibility(); | 351 refreshClosedCaptionsButtonVisibility(); |
| 352 } | 352 } |
| 353 | 353 |
| 354 void MediaControls::enteredFullscreen() | 354 void MediaControls::enteredFullscreen() |
| 355 { | 355 { |
| 356 m_fullScreenButton->setIsFullscreen(true); | 356 m_fullScreenButton->setIsFullscreen(true); |
| 357 stopHideMediaControlsTimer(); | 357 stopHideMediaControlsTimer(); |
| 358 startHideMediaControlsTimer(); | 358 startHideMediaControlsTimer(); |
| 359 } | 359 } |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 visitor->trace(m_muteButton); | 492 visitor->trace(m_muteButton); |
| 493 visitor->trace(m_volumeSlider); | 493 visitor->trace(m_volumeSlider); |
| 494 visitor->trace(m_toggleClosedCaptionsButton); | 494 visitor->trace(m_toggleClosedCaptionsButton); |
| 495 visitor->trace(m_fullScreenButton); | 495 visitor->trace(m_fullScreenButton); |
| 496 visitor->trace(m_durationDisplay); | 496 visitor->trace(m_durationDisplay); |
| 497 visitor->trace(m_enclosure); | 497 visitor->trace(m_enclosure); |
| 498 HTMLDivElement::trace(visitor); | 498 HTMLDivElement::trace(visitor); |
| 499 } | 499 } |
| 500 | 500 |
| 501 } | 501 } |
| OLD | NEW |