device.js 719 B

1234567891011121314151617181920
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. "use strict";
  5. const {RetVal, generateActorSpec} = require("devtools/shared/protocol");
  6. const deviceSpec = generateActorSpec({
  7. typeName: "device",
  8. methods: {
  9. getDescription: {request: {}, response: { value: RetVal("json")}},
  10. getWallpaper: {request: {}, response: { value: RetVal("longstring")}},
  11. screenshotToDataURL: {request: {}, response: { value: RetVal("longstring")}},
  12. getRawPermissionsTable: {request: {}, response: { value: RetVal("json")}},
  13. },
  14. });
  15. exports.deviceSpec = deviceSpec;