tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

responsive.js (773B)


      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 
      6 const {
      7  Arg,
      8  RetVal,
      9  generateActorSpec,
     10 } = require("resource://devtools/shared/protocol.js");
     11 
     12 const responsiveSpec = generateActorSpec({
     13  typeName: "responsive",
     14 
     15  methods: {
     16    toggleTouchSimulator: {
     17      request: {
     18        options: Arg(0, "json"),
     19      },
     20      response: {
     21        valueChanged: RetVal("boolean"),
     22      },
     23    },
     24 
     25    setElementPickerState: {
     26      request: {
     27        state: Arg(0, "boolean"),
     28        pickerType: Arg(1, "string"),
     29      },
     30      response: {},
     31    },
     32  },
     33 });
     34 
     35 exports.responsiveSpec = responsiveSpec;