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); |
} |