diff options
Diffstat (limited to 'devtools/shared/specs/content-viewer.js')
-rw-r--r-- | devtools/shared/specs/content-viewer.js | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/devtools/shared/specs/content-viewer.js b/devtools/shared/specs/content-viewer.js new file mode 100644 index 0000000000..7c7c26e77a --- /dev/null +++ b/devtools/shared/specs/content-viewer.js @@ -0,0 +1,47 @@ +/* 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 contentViewerSpec = generateActorSpec({ + typeName: "contentViewer", + + methods: { + getEmulatedColorScheme: { + request: {}, + response: { + emulated: RetVal("nullable:string"), + }, + }, + + setEmulatedColorScheme: { + request: { + scheme: Arg(0, "nullable:string"), + }, + response: {}, + }, + + getIsPrintSimulationEnabled: { + request: {}, + response: { + enabled: RetVal("boolean"), + }, + }, + + startPrintMediaSimulation: { + request: {}, + response: {}, + }, + + stopPrintMediaSimulation: { + request: { + state: Arg(0, "boolean"), + }, + response: {}, + }, + }, +}); + +exports.contentViewerSpec = contentViewerSpec; |