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

Unified Diff: chrome/test/data/extensions/platform_apps/web_view/pointer_lock/guest.js

Issue 438693003: Use the unprefixed Pointer Lock API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
Index: chrome/test/data/extensions/platform_apps/web_view/pointer_lock/guest.js
diff --git a/chrome/test/data/extensions/platform_apps/web_view/pointer_lock/guest.js b/chrome/test/data/extensions/platform_apps/web_view/pointer_lock/guest.js
index 3b8c417caa261c049046cad3d45ff20253b34be5..4f38ed434ddfa5c3cdf37dd7943de60f7344a204 100644
--- a/chrome/test/data/extensions/platform_apps/web_view/pointer_lock/guest.js
+++ b/chrome/test/data/extensions/platform_apps/web_view/pointer_lock/guest.js
@@ -6,12 +6,12 @@
// (WebViewInteractiveTest, PointerLock) for documentation on this test.
function LockMouse(element) {
- element.requestPointerLock = element.webkitRequestPointerLock;
+ element.requestPointerLock = element.requestPointerLock;
element.requestPointerLock();
}
var first_lock = true;
-document.onwebkitpointerlockchange = function() {
- if (document.webkitPointerLockElement) {
+document.onpointerlockchange = function() {
+ if (document.pointerLockElement) {
if (first_lock) {
console.log('locked');
setTimeout(function() { embedder.postMessage('locked', '*'); }, 500);
@@ -26,7 +26,7 @@ document.onwebkitpointerlockchange = function() {
}
}
-document.onwebkitpointerlockerror = function() {
+document.onpointerlockerror = function() {
console.log('lock error', '*');
setTimeout(function() { embedder.postMessage('lock error', '*'); }, 1000);
}

Powered by Google App Engine
This is Rietveld 408576698