summaryrefslogtreecommitdiffstats
path: root/dom/vr/test/mochitest/WebVRHelpers.js
blob: e19294a236817e7613b668d1b1a1090e99f9203b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
var WebVRHelpers = (function () {
  "use strict";

  var RequestPresentOnVRDisplay = function (vrDisplay, vrLayers, callback) {
    if (callback) {
      callback();
    }

    return vrDisplay.requestPresent(vrLayers);
  };

  var API = {
    RequestPresentOnVRDisplay,

    none: false,
  };

  return API;
})();