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

Unified Diff: LayoutTests/http/tests/resources/pointer-lock/iframe-common-prefixed.js

Issue 437443005: Revert of Revert of Remove prefixed Pointer Lock API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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: LayoutTests/http/tests/resources/pointer-lock/iframe-common-prefixed.js
diff --git a/LayoutTests/http/tests/resources/pointer-lock/iframe-common-prefixed.js b/LayoutTests/http/tests/resources/pointer-lock/iframe-common-prefixed.js
deleted file mode 100644
index 2190747aab753450435397685dcefb6b9432e4ce..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/resources/pointer-lock/iframe-common-prefixed.js
+++ /dev/null
@@ -1,27 +0,0 @@
-function thisFileName()
-{
- return window.location.href.split("/").pop();
-}
-
-window.onmessage = function (messageEvent) {
- switch (messageEvent.data[0]) {
- case "eval":
- eval(messageEvent.data[1]);
- break;
- case "pass message down":
- iframe = document.getElementsByTagName("iframe")[0];
- iframe.contentWindow.postMessage(messageEvent.data.slice(1), "*");
- break;
- default:
- // Pass all other messages up to parent.
- parent.postMessage(messageEvent.data, "*");
- }
-}
-
-document.onwebkitpointerlockchange = function () {
- parent.postMessage(thisFileName() + " onwebkitpointerlockchange, document.webkitPointerLockElement = " + document.webkitPointerLockElement, "*");
-}
-
-document.onwebkitpointerlockerror = function () {
- parent.postMessage(thisFileName() + " onwebkitpointerlockerror", "*");
-}

Powered by Google App Engine
This is Rietveld 408576698