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

Unified Diff: chrome/test/data/extensions/platform_apps/web_view/pointerlock/inject_pointer_lock.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/pointerlock/inject_pointer_lock.js
diff --git a/chrome/test/data/extensions/platform_apps/web_view/pointerlock/inject_pointer_lock.js b/chrome/test/data/extensions/platform_apps/web_view/pointerlock/inject_pointer_lock.js
index 75a757ccb77155855a45f895bba0d4537c9a748e..f3f25590a05ec6ce981fc5fcc7229f864ddcac71 100644
--- a/chrome/test/data/extensions/platform_apps/web_view/pointerlock/inject_pointer_lock.js
+++ b/chrome/test/data/extensions/platform_apps/web_view/pointerlock/inject_pointer_lock.js
@@ -13,13 +13,13 @@ window.addEventListener('message', function(e) {
}
if (data == 'start-pointerlock') {
- document.body.webkitRequestPointerLock();
+ document.body.requestPointerLock();
return;
}
});
-document.addEventListener('webkitpointerlockchange', function(e) {
- if (!!document.webkitPointerLockElement) {
+document.addEventListener('pointerlockchange', function(e) {
+ if (!!document.pointerLockElement) {
var msg = ['acquired-pointerlock'];
embedder.postMessage(JSON.stringify(msg), '*');
return;

Powered by Google App Engine
This is Rietveld 408576698