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

Unified Diff: android_webview/test/shell/assets/full_screen_video_test.html

Issue 425343002: [Android WebView] API to enable fullscreen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update AwContentsClientGetVideoLoadingProgressViewTest Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/native/aw_settings.cc ('k') | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/test/shell/assets/full_screen_video_test.html
diff --git a/android_webview/test/shell/assets/full_screen_video_test.html b/android_webview/test/shell/assets/full_screen_video_test.html
index 618b3426ae08f2de9b2b99e885466d580332c795..d36c546abaf0719c7e7bef3130bcbe959a84214a 100644
--- a/android_webview/test/shell/assets/full_screen_video_test.html
+++ b/android_webview/test/shell/assets/full_screen_video_test.html
@@ -8,10 +8,13 @@ function goFullscreen(id) {
}
}
-addEventListener('Loaded', function() {
+addEventListener('DOMContentLoaded', function() {
document.getElementById('video').addEventListener('play', function() {
console.log('Video Played');
}, false);
+ document.addEventListener('webkitfullscreenerror', function() {
+ javaFullScreenErrorObserver.notifyJava();
+ }, false);
}, false);
</script>
</head>
« no previous file with comments | « android_webview/native/aw_settings.cc ('k') | content/public/common/common_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698