Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <script> | |
| 3 if (window.internals) | |
| 4 runPixelTests = internals.runtimeFlags.overlayFullscreenVideoEnabled; | |
| 5 </script> | |
| 6 <script src="full-screen-test.js"></script> | |
| 7 <script> | |
| 8 var initialized = false; | |
| 9 window.onmessage = function(messageEvent) { | |
| 10 if (!initialized) { | |
| 11 // video has been loaded and messaged us. | |
| 12 // Send click to center of iframe. | |
| 13 iframe = document.getElementById("frame"); | |
| 14 x = iframe.offsetLeft + iframe.offsetWidth / 2; | |
| 15 y = iframe.offsetTop + iframe.offsetHeight / 2; | |
| 16 if (window.eventSender) { | |
| 17 eventSender.mouseMoveTo(x, y); | |
| 18 eventSender.mouseDown(); | |
| 19 eventSender.mouseUp(); | |
| 20 } | |
| 21 initialized = true; | |
| 22 } | |
| 23 else { | |
|
esprehn
2014/03/05 04:36:03
else goes on the same line as the brace
qinmin
2014/03/05 18:45:25
Done.
| |
| 24 consoleWrite(messageEvent.data); | |
| 25 endTest(); | |
| 26 } | |
| 27 } | |
| 28 </script> | |
| 29 Video inside an iframe is allowed to enter fullscreen</p> | |
| 30 <iframe id="frame" src="resources/video.html" width="320" height="240" allowfull screen></iframe> | |
| 31 | |
| OLD | NEW |