Files
firefox/devtools/shared/specs/emulation.js
T

36 lines
776 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 emulationSpec = generateActorSpec({
typeName: "emulation",
methods: {
setTouchEventsOverride: {
request: {
flag: Arg(0, "number")
},
response: {
reload: RetVal("boolean")
}
},
getTouchEventsOverride: {
request: {},
response: {
flag: RetVal("number")
}
},
clearTouchEventsOverride: {
request: {},
response: {}
},
}
});
exports.emulationSpec = emulationSpec;