layout.js 758 B

12345678910111213141516171819202122232425262728293031323334
  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 { Arg, generateActorSpec, RetVal } = require("devtools/shared/protocol");
  6. require("devtools/shared/specs/node");
  7. const gridSpec = generateActorSpec({
  8. typeName: "grid",
  9. methods: {},
  10. });
  11. const layoutSpec = generateActorSpec({
  12. typeName: "layout",
  13. methods: {
  14. getAllGrids: {
  15. request: {
  16. rootNode: Arg(0, "domnode"),
  17. traverseFrames: Arg(1, "boolean")
  18. },
  19. response: {
  20. grids: RetVal("array:grid")
  21. }
  22. }
  23. },
  24. });
  25. exports.gridSpec = gridSpec;
  26. exports.layoutSpec = layoutSpec;