gecko-dev/devtools/shared/specs/device.js
Julian Descottes fb34f9ae99 Bug 1495382 - Check isMultiE10s from runtime info;r=daisuke,ladybenko
Depends on D15081

Differential Revision: https://phabricator.services.mozilla.com/D15399

--HG--
rename : devtools/client/shared/multi-e10s-helper.js => devtools/shared/multi-e10s-helper.js
extra : moz-landing-system : lando
2019-01-09 09:44:15 +00:00

23 lines
696 B
JavaScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const { Arg, RetVal, generateActorSpec } = require("devtools/shared/protocol");
const deviceSpec = generateActorSpec({
typeName: "device",
events: {
"multi-e10s-updated": {
type: "multi-e10s-updated",
isMultiE10s: Arg(0, "boolean"),
},
},
methods: {
getDescription: {request: {}, response: { value: RetVal("json")}},
screenshotToDataURL: {request: {}, response: { value: RetVal("longstring")}},
},
});
exports.deviceSpec = deviceSpec;