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/. */
12 } = require("resource://devtools/shared/protocol.js");
14 types.addDictType("target-configuration.configuration", {
15 cacheDisabled: "nullable:boolean",
16 colorSchemeSimulation: "nullable:string",
17 customFormatters: "nullable:boolean",
18 customUserAgent: "nullable:string",
19 javascriptEnabled: "nullable:boolean",
20 overrideDPPX: "nullable:number",
21 printSimulationEnabled: "nullable:boolean",
22 rdmPaneOrientation: "nullable:json",
23 reloadOnTouchSimulationToggle: "nullable:boolean",
24 restoreFocus: "nullable:boolean",
25 serviceWorkersTestingEnabled: "nullable:boolean",
26 setTabOffline: "nullable:boolean",
27 touchEventsOverride: "nullable:string",
30 const targetConfigurationSpec = generateActorSpec({
31 typeName: "target-configuration",
34 updateConfiguration: {
36 configuration: Arg(0, "target-configuration.configuration"),
39 configuration: RetVal("target-configuration.configuration"),
42 isJavascriptEnabled: {
45 javascriptEnabled: RetVal("boolean"),
51 exports.targetConfigurationSpec = targetConfigurationSpec;