| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 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 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 | 521 |
| 522 // TextTrack parameter when passed in as a nullptr, creates the "Off" list item | 522 // TextTrack parameter when passed in as a nullptr, creates the "Off" list item |
| 523 // in the track list. | 523 // in the track list. |
| 524 Element* MediaControlTextTrackListElement::createTextTrackListItem( | 524 Element* MediaControlTextTrackListElement::createTextTrackListItem( |
| 525 TextTrack* track) { | 525 TextTrack* track) { |
| 526 int trackIndex = track ? track->trackIndex() : trackIndexOffValue; | 526 int trackIndex = track ? track->trackIndex() : trackIndexOffValue; |
| 527 HTMLLabelElement* trackItem = HTMLLabelElement::create(document()); | 527 HTMLLabelElement* trackItem = HTMLLabelElement::create(document()); |
| 528 trackItem->setShadowPseudoId( | 528 trackItem->setShadowPseudoId( |
| 529 AtomicString("-internal-media-controls-text-track-list-item")); | 529 AtomicString("-internal-media-controls-text-track-list-item")); |
| 530 HTMLInputElement* trackItemInput = | 530 HTMLInputElement* trackItemInput = |
| 531 HTMLInputElement::create(document(), nullptr, false); | 531 HTMLInputElement::create(document(), false); |
| 532 trackItemInput->setShadowPseudoId( | 532 trackItemInput->setShadowPseudoId( |
| 533 AtomicString("-internal-media-controls-text-track-list-item-input")); | 533 AtomicString("-internal-media-controls-text-track-list-item-input")); |
| 534 trackItemInput->setType(InputTypeNames::checkbox); | 534 trackItemInput->setType(InputTypeNames::checkbox); |
| 535 trackItemInput->setIntegralAttribute(trackIndexAttrName(), trackIndex); | 535 trackItemInput->setIntegralAttribute(trackIndexAttrName(), trackIndex); |
| 536 if (!mediaElement().textTracksVisible()) { | 536 if (!mediaElement().textTracksVisible()) { |
| 537 if (!track) | 537 if (!track) |
| 538 trackItemInput->setChecked(true); | 538 trackItemInput->setChecked(true); |
| 539 } else { | 539 } else { |
| 540 // If there are multiple text tracks set to showing, they must all have | 540 // If there are multiple text tracks set to showing, they must all have |
| 541 // checkmarks displayed. | 541 // checkmarks displayed. |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1040 MediaControlCurrentTimeDisplayElement* | 1040 MediaControlCurrentTimeDisplayElement* |
| 1041 MediaControlCurrentTimeDisplayElement::create(MediaControls& mediaControls) { | 1041 MediaControlCurrentTimeDisplayElement::create(MediaControls& mediaControls) { |
| 1042 MediaControlCurrentTimeDisplayElement* element = | 1042 MediaControlCurrentTimeDisplayElement* element = |
| 1043 new MediaControlCurrentTimeDisplayElement(mediaControls); | 1043 new MediaControlCurrentTimeDisplayElement(mediaControls); |
| 1044 element->setShadowPseudoId( | 1044 element->setShadowPseudoId( |
| 1045 AtomicString("-webkit-media-controls-current-time-display")); | 1045 AtomicString("-webkit-media-controls-current-time-display")); |
| 1046 return element; | 1046 return element; |
| 1047 } | 1047 } |
| 1048 | 1048 |
| 1049 } // namespace blink | 1049 } // namespace blink |
| OLD | NEW |