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

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: Add copyright notice to full_screen_video.js 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 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 function goFullscreen(id) {
6 var element = document.getElementById(id);
7 if (element.webkitRequestFullScreen) {
8 element.webkitRequestFullScreen();
9 }
10 }
11
12 function playVideo() {
13 document.getElementById('video').play();
14 }
15
16 addEventListener('DOMContentLoaded', function() {
17 document.addEventListener('webkitfullscreenchange', function() {
18 javaOnEnterFullscreen.notifyJava();
19 }, false);
20 document.getElementById('video').addEventListener('play', function() {
21 javaOnPlayObserver.notifyJava();
22 }, false);
23 document.addEventListener('webkitfullscreenerror', function() {
24 javaFullScreenErrorObserver.notifyJava();
25 }, false);
26 }, false);
27
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698