Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(578)

Side by Side Diff: android_webview/test/shell/assets/full_screen_video.js

Issue 639923003: [aw] Fullscreen tests for non-media elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fullscreenNonMediaForReview
Patch Set: Remove inheritance, combine tests into one class Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1
2 function goFullscreen(id) {
3 var element = document.getElementById(id);
4 if (element.webkitRequestFullScreen) {
5 element.webkitRequestFullScreen();
6 }
7 }
8
9 function playVideo() {
10 document.getElementById('video').play();
11 }
12
13 addEventListener('DOMContentLoaded', function() {
14 document.addEventListener('webkitfullscreenchange', function() {
15 javaOnEnterFullscreen.notifyJava();
16 }, false);
17 document.getElementById('video').addEventListener('play', function() {
18 javaOnPlayObserver.notifyJava();
19 }, false);
20 document.addEventListener('webkitfullscreenerror', function() {
21 javaFullScreenErrorObserver.notifyJava();
22 }, false);
23 }, false);
24
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698