OLD | NEW |
(Empty) | |
| 1 // We expect the items in the overflow to appear in the following ordering. |
| 2 var overflowButtonsCSS = [ |
| 3 "-webkit-media-controls-mute-button", |
| 4 "-internal-media-controls-cast-button", |
| 5 "-webkit-media-controls-toggle-closed-captions-button", |
| 6 "-webkit-media-controls-fullscreen-button", |
| 7 "-webkit-media-controls-play-button"]; |
| 8 // PseudoID for the overflow button |
| 9 var menuID = "-internal-overflow-menu-button"; |
| 10 // PseudoID for the overflow list |
| 11 var listID = "-internal-media-controls-overflow-menu-list"; |
| 12 |
| 13 // Returns the overflow menu button within the given media element |
| 14 function getOverflowMenuButton(media) { |
| 15 return mediaControlsElement(internals.shadowRoot(media).firstChild, menuID); |
| 16 } |
| 17 |
| 18 // Returns the overflow menu list of overflow controls |
| 19 function getOverflowList(media) { |
| 20 return mediaControlsElement(internals.shadowRoot(media).firstChild, listID); |
| 21 } |
| 22 |
| 23 // Location of media control element in the overflow button |
| 24 var OverflowMenuButtons = { |
| 25 MUTE: 0, |
| 26 CAST: 1, |
| 27 CLOSED_CAPTIONS: 2, |
| 28 FULLSCREEN: 3, |
| 29 PLAY: 4, |
| 30 }; |
| 31 |
| 32 // Default text within the overflow menu |
| 33 var overflowMenuText = ["Mute", "Cast", "Captions", "Fullscreen", "Play"]; |
| 34 |
OLD | NEW |