@openfin/core 33.76.31 → 33.76.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/OpenFin.d.ts +1 -1
- package/README.md +29 -4
- package/fin.d.ts +2 -2
- package/{src → out}/GlobalOpenFin.d.ts +1 -1
- package/out/mock-alpha.d.ts +16112 -0
- package/out/mock-beta.d.ts +16112 -0
- package/out/mock-public.d.ts +16112 -0
- package/out/mock.d.ts +16797 -0
- package/out/mock.js +17104 -0
- package/package.json +30 -23
- package/LICENSE +0 -13
- package/NOTICE +0 -16
- package/openfin-core-33.76.31.tgz +0 -0
- package/src/OpenFin.d.ts +0 -3080
- package/src/OpenFin.js +0 -2
- package/src/api/api-exposer/api-consumer.d.ts +0 -28
- package/src/api/api-exposer/api-consumer.js +0 -28
- package/src/api/api-exposer/api-exposer.d.ts +0 -35
- package/src/api/api-exposer/api-exposer.js +0 -38
- package/src/api/api-exposer/decorators.d.ts +0 -10
- package/src/api/api-exposer/decorators.js +0 -18
- package/src/api/api-exposer/index.d.ts +0 -4
- package/src/api/api-exposer/index.js +0 -20
- package/src/api/api-exposer/strategies/index.d.ts +0 -1
- package/src/api/api-exposer/strategies/index.js +0 -17
- package/src/api/api-exposer/strategies/openfin-channels/channels-consumer.d.ts +0 -14
- package/src/api/api-exposer/strategies/openfin-channels/channels-consumer.js +0 -20
- package/src/api/api-exposer/strategies/openfin-channels/channels-exposer.d.ts +0 -20
- package/src/api/api-exposer/strategies/openfin-channels/channels-exposer.js +0 -23
- package/src/api/api-exposer/strategies/openfin-channels/index.d.ts +0 -2
- package/src/api/api-exposer/strategies/openfin-channels/index.js +0 -18
- package/src/api/application/Factory.d.ts +0 -148
- package/src/api/application/Factory.js +0 -230
- package/src/api/application/Instance.d.ts +0 -321
- package/src/api/application/Instance.js +0 -453
- package/src/api/application/index.d.ts +0 -3
- package/src/api/application/index.js +0 -19
- package/src/api/base.d.ts +0 -48
- package/src/api/base.js +0 -177
- package/src/api/clipboard/index.d.ts +0 -92
- package/src/api/clipboard/index.js +0 -120
- package/src/api/events/application.d.ts +0 -146
- package/src/api/events/application.js +0 -2
- package/src/api/events/base.d.ts +0 -42
- package/src/api/events/base.js +0 -2
- package/src/api/events/channel.d.ts +0 -30
- package/src/api/events/channel.js +0 -2
- package/src/api/events/emitterMap.d.ts +0 -11
- package/src/api/events/emitterMap.js +0 -35
- package/src/api/events/eventAggregator.d.ts +0 -5
- package/src/api/events/eventAggregator.js +0 -35
- package/src/api/events/externalApplication.d.ts +0 -19
- package/src/api/events/externalApplication.js +0 -2
- package/src/api/events/frame.d.ts +0 -30
- package/src/api/events/frame.js +0 -2
- package/src/api/events/globalHotkey.d.ts +0 -20
- package/src/api/events/globalHotkey.js +0 -2
- package/src/api/events/platform.d.ts +0 -26
- package/src/api/events/platform.js +0 -2
- package/src/api/events/system.d.ts +0 -113
- package/src/api/events/system.js +0 -2
- package/src/api/events/typedEventEmitter.d.ts +0 -20
- package/src/api/events/typedEventEmitter.js +0 -2
- package/src/api/events/view.d.ts +0 -82
- package/src/api/events/view.js +0 -2
- package/src/api/events/webcontents.d.ts +0 -266
- package/src/api/events/webcontents.js +0 -2
- package/src/api/events/window.d.ts +0 -352
- package/src/api/events/window.js +0 -2
- package/src/api/external-application/Factory.d.ts +0 -27
- package/src/api/external-application/Factory.js +0 -40
- package/src/api/external-application/Instance.d.ts +0 -102
- package/src/api/external-application/Instance.js +0 -109
- package/src/api/external-application/index.d.ts +0 -3
- package/src/api/external-application/index.js +0 -19
- package/src/api/fin.d.ts +0 -51
- package/src/api/fin.js +0 -42
- package/src/api/frame/Factory.d.ts +0 -37
- package/src/api/frame/Factory.js +0 -69
- package/src/api/frame/Instance.d.ts +0 -123
- package/src/api/frame/Instance.js +0 -130
- package/src/api/frame/index.d.ts +0 -3
- package/src/api/frame/index.js +0 -19
- package/src/api/global-hotkey/index.d.ts +0 -38
- package/src/api/global-hotkey/index.js +0 -64
- package/src/api/interappbus/channel/channel.d.ts +0 -28
- package/src/api/interappbus/channel/channel.js +0 -77
- package/src/api/interappbus/channel/channels-docs.d.ts +0 -340
- package/src/api/interappbus/channel/channels-docs.js +0 -398
- package/src/api/interappbus/channel/client.d.ts +0 -24
- package/src/api/interappbus/channel/client.js +0 -89
- package/src/api/interappbus/channel/connection-manager.d.ts +0 -29
- package/src/api/interappbus/channel/connection-manager.js +0 -246
- package/src/api/interappbus/channel/index.d.ts +0 -25
- package/src/api/interappbus/channel/index.js +0 -169
- package/src/api/interappbus/channel/protocols/classic/message-receiver.d.ts +0 -13
- package/src/api/interappbus/channel/protocols/classic/message-receiver.js +0 -73
- package/src/api/interappbus/channel/protocols/classic/strategy.d.ts +0 -24
- package/src/api/interappbus/channel/protocols/classic/strategy.js +0 -101
- package/src/api/interappbus/channel/protocols/combined/strategy.d.ts +0 -20
- package/src/api/interappbus/channel/protocols/combined/strategy.js +0 -58
- package/src/api/interappbus/channel/protocols/index.d.ts +0 -47
- package/src/api/interappbus/channel/protocols/index.js +0 -2
- package/src/api/interappbus/channel/protocols/protocol-manager.d.ts +0 -10
- package/src/api/interappbus/channel/protocols/protocol-manager.js +0 -43
- package/src/api/interappbus/channel/protocols/rtc/endpoint.d.ts +0 -25
- package/src/api/interappbus/channel/protocols/rtc/endpoint.js +0 -141
- package/src/api/interappbus/channel/protocols/rtc/ice-manager.d.ts +0 -30
- package/src/api/interappbus/channel/protocols/rtc/ice-manager.js +0 -130
- package/src/api/interappbus/channel/protocols/rtc/strategy.d.ts +0 -24
- package/src/api/interappbus/channel/protocols/rtc/strategy.js +0 -85
- package/src/api/interappbus/channel/protocols/strategy-types.d.ts +0 -13
- package/src/api/interappbus/channel/protocols/strategy-types.js +0 -2
- package/src/api/interappbus/channel/protocols/strategy.d.ts +0 -17
- package/src/api/interappbus/channel/protocols/strategy.js +0 -2
- package/src/api/interappbus/channel/provider.d.ts +0 -34
- package/src/api/interappbus/channel/provider.js +0 -166
- package/src/api/interappbus/index.d.ts +0 -85
- package/src/api/interappbus/index.js +0 -175
- package/src/api/interop/Factory.d.ts +0 -37
- package/src/api/interop/Factory.js +0 -76
- package/src/api/interop/InteropBroker.d.ts +0 -437
- package/src/api/interop/InteropBroker.js +0 -1085
- package/src/api/interop/InteropClient.d.ts +0 -278
- package/src/api/interop/InteropClient.js +0 -459
- package/src/api/interop/SessionContextGroupBroker.d.ts +0 -27
- package/src/api/interop/SessionContextGroupBroker.js +0 -108
- package/src/api/interop/SessionContextGroupClient.d.ts +0 -21
- package/src/api/interop/SessionContextGroupClient.js +0 -86
- package/src/api/interop/fdc3/PrivateChannelClient.d.ts +0 -20
- package/src/api/interop/fdc3/PrivateChannelClient.js +0 -90
- package/src/api/interop/fdc3/PrivateChannelProvider.d.ts +0 -55
- package/src/api/interop/fdc3/PrivateChannelProvider.js +0 -276
- package/src/api/interop/fdc3/fdc3-1.2.d.ts +0 -208
- package/src/api/interop/fdc3/fdc3-1.2.js +0 -438
- package/src/api/interop/fdc3/fdc3-2.0.d.ts +0 -301
- package/src/api/interop/fdc3/fdc3-2.0.js +0 -482
- package/src/api/interop/fdc3/fdc3.d.ts +0 -12
- package/src/api/interop/fdc3/fdc3.js +0 -35
- package/src/api/interop/fdc3/overrideCheck.d.ts +0 -4
- package/src/api/interop/fdc3/overrideCheck.js +0 -32
- package/src/api/interop/fdc3/shapes/fdc3v1.d.ts +0 -53
- package/src/api/interop/fdc3/shapes/fdc3v1.js +0 -4
- package/src/api/interop/fdc3/shapes/fdc3v2.d.ts +0 -75
- package/src/api/interop/fdc3/shapes/fdc3v2.js +0 -2
- package/src/api/interop/fdc3/utils.d.ts +0 -45
- package/src/api/interop/fdc3/utils.js +0 -239
- package/src/api/interop/fdc3/versions.d.ts +0 -1
- package/src/api/interop/fdc3/versions.js +0 -2
- package/src/api/interop/index.d.ts +0 -4
- package/src/api/interop/index.js +0 -20
- package/src/api/interop/utils.d.ts +0 -18
- package/src/api/interop/utils.js +0 -61
- package/src/api/me.d.ts +0 -40
- package/src/api/me.js +0 -134
- package/src/api/platform/Factory.d.ts +0 -115
- package/src/api/platform/Factory.js +0 -184
- package/src/api/platform/Instance.d.ts +0 -150
- package/src/api/platform/Instance.js +0 -332
- package/src/api/platform/common-utils.d.ts +0 -7
- package/src/api/platform/common-utils.js +0 -16
- package/src/api/platform/index.d.ts +0 -3
- package/src/api/platform/index.js +0 -19
- package/src/api/platform/layout/Factory.d.ts +0 -114
- package/src/api/platform/layout/Factory.js +0 -174
- package/src/api/platform/layout/Instance.d.ts +0 -57
- package/src/api/platform/layout/Instance.js +0 -126
- package/src/api/platform/layout/controllers/layout-content-cache.d.ts +0 -9
- package/src/api/platform/layout/controllers/layout-content-cache.js +0 -54
- package/src/api/platform/layout/controllers/layout-entities-controller.d.ts +0 -119
- package/src/api/platform/layout/controllers/layout-entities-controller.js +0 -287
- package/src/api/platform/layout/entities/layout-entities.d.ts +0 -235
- package/src/api/platform/layout/entities/layout-entities.js +0 -312
- package/src/api/platform/layout/entities/shapes.d.ts +0 -6
- package/src/api/platform/layout/entities/shapes.js +0 -2
- package/src/api/platform/layout/index.d.ts +0 -2
- package/src/api/platform/layout/index.js +0 -18
- package/src/api/platform/layout/layout.constants.d.ts +0 -1
- package/src/api/platform/layout/layout.constants.js +0 -4
- package/src/api/platform/layout/shapes.d.ts +0 -16
- package/src/api/platform/layout/shapes.js +0 -2
- package/src/api/platform/layout/utils/layout-traversal.d.ts +0 -4
- package/src/api/platform/layout/utils/layout-traversal.js +0 -65
- package/src/api/platform/provider.d.ts +0 -163
- package/src/api/platform/provider.js +0 -2
- package/src/api/snapshot-source/Factory.d.ts +0 -38
- package/src/api/snapshot-source/Factory.js +0 -66
- package/src/api/snapshot-source/Instance.d.ts +0 -31
- package/src/api/snapshot-source/Instance.js +0 -132
- package/src/api/snapshot-source/index.d.ts +0 -3
- package/src/api/snapshot-source/index.js +0 -19
- package/src/api/snapshot-source/utils.d.ts +0 -2
- package/src/api/snapshot-source/utils.js +0 -6
- package/src/api/system/index.d.ts +0 -517
- package/src/api/system/index.js +0 -895
- package/src/api/view/Factory.d.ts +0 -50
- package/src/api/view/Factory.js +0 -103
- package/src/api/view/Instance.d.ts +0 -487
- package/src/api/view/Instance.js +0 -557
- package/src/api/view/index.d.ts +0 -3
- package/src/api/view/index.js +0 -19
- package/src/api/webcontents/main.d.ts +0 -32
- package/src/api/webcontents/main.js +0 -156
- package/src/api/window/Factory.d.ts +0 -45
- package/src/api/window/Factory.js +0 -91
- package/src/api/window/Instance.d.ts +0 -1090
- package/src/api/window/Instance.js +0 -1349
- package/src/api/window/index.d.ts +0 -3
- package/src/api/window/index.js +0 -19
- package/src/browser.d.ts +0 -10
- package/src/browser.js +0 -36
- package/src/environment/browser.d.ts +0 -29
- package/src/environment/browser.js +0 -60
- package/src/environment/environment.d.ts +0 -33
- package/src/environment/environment.js +0 -4
- package/src/environment/mockEnvironment.d.ts +0 -27
- package/src/environment/mockEnvironment.js +0 -61
- package/src/environment/node-env.d.ts +0 -29
- package/src/environment/node-env.js +0 -72
- package/src/fdc3.d.ts +0 -3
- package/src/fdc3.js +0 -9
- package/src/mock.d.ts +0 -3
- package/src/mock.js +0 -18
- package/src/namespaces.d.ts +0 -21
- package/src/namespaces.js +0 -24
- package/src/shapes/ERROR_BOX_TYPES.d.ts +0 -1
- package/src/shapes/ERROR_BOX_TYPES.js +0 -2
- package/src/shapes/WebOptions.d.ts +0 -13
- package/src/shapes/WebOptions.js +0 -2
- package/src/shapes/WindowOptions.d.ts +0 -43
- package/src/shapes/WindowOptions.js +0 -2
- package/src/shapes/protocol.d.ts +0 -200
- package/src/shapes/protocol.js +0 -2
- package/src/transport/mockWire.d.ts +0 -11
- package/src/transport/mockWire.js +0 -26
- package/src/transport/transport-errors.d.ts +0 -31
- package/src/transport/transport-errors.js +0 -79
- package/src/transport/transport.d.ts +0 -73
- package/src/transport/transport.js +0 -219
- package/src/transport/wire.d.ts +0 -77
- package/src/transport/wire.js +0 -36
- package/src/util/asyncFilter.d.ts +0 -1
- package/src/util/asyncFilter.js +0 -7
- package/src/util/channel-api-relay.d.ts +0 -13
- package/src/util/channel-api-relay.js +0 -47
- package/src/util/errors.d.ts +0 -10
- package/src/util/errors.js +0 -12
- package/src/util/exhaustive.d.ts +0 -1
- package/src/util/exhaustive.js +0 -7
- package/src/util/http.d.ts +0 -11
- package/src/util/http.js +0 -90
- package/src/util/inaccessibleObject.d.ts +0 -2
- package/src/util/inaccessibleObject.js +0 -49
- package/src/util/lazy.d.ts +0 -34
- package/src/util/lazy.js +0 -54
- package/src/util/normalize-config.d.ts +0 -3
- package/src/util/normalize-config.js +0 -52
- package/src/util/promises.d.ts +0 -5
- package/src/util/promises.js +0 -27
- package/src/util/ref-counter.d.ts +0 -7
- package/src/util/ref-counter.js +0 -52
- package/src/util/reversible-map.d.ts +0 -11
- package/src/util/reversible-map.js +0 -49
- package/src/util/runtimeVersioning.d.ts +0 -3
- package/src/util/runtimeVersioning.js +0 -25
- package/src/util/utilTypes.d.ts +0 -8
- package/src/util/utilTypes.js +0 -2
- package/src/util/validate.d.ts +0 -3
- package/src/util/validate.js +0 -11
|
@@ -1,1090 +0,0 @@
|
|
|
1
|
-
import type * as OpenFin from '../../OpenFin';
|
|
2
|
-
import { Transport } from '../../transport/transport';
|
|
3
|
-
import { WebContents } from '../webcontents/main';
|
|
4
|
-
/**
|
|
5
|
-
* @PORTED
|
|
6
|
-
* @typedef { object } Margins
|
|
7
|
-
* @property { string } [marginType]
|
|
8
|
-
* Can be `default`, `none`, `printableArea`, or `custom`. If `custom` is chosen,
|
|
9
|
-
* you will also need to specify `top`, `bottom`, `left`, and `right`.
|
|
10
|
-
*
|
|
11
|
-
* @property { number } [top] The top margin of the printed web page, in pixels.
|
|
12
|
-
* @property { number } [bottom] The bottom margin of the printed web page, in pixels.
|
|
13
|
-
* @property { number } [left] The left margin of the printed web page, in pixels.
|
|
14
|
-
* @property { number } [right] The right margin of the printed web page, in pixels.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* @PORTED
|
|
18
|
-
* @typedef { object } Dpi
|
|
19
|
-
* @property { number } [horizontal] The horizontal dpi
|
|
20
|
-
* @property { number } [vertical] The vertical dpi
|
|
21
|
-
*/
|
|
22
|
-
/**
|
|
23
|
-
* @PORTED
|
|
24
|
-
* @typedef { object } PrintOptions
|
|
25
|
-
* @property { boolean } [silent=false] Don't ask user for print settings.
|
|
26
|
-
* @property { boolean } [printBackground=false] Prints the background color and image of the web page.
|
|
27
|
-
* @property { string } [deviceName=''] Set the printer device name to use.
|
|
28
|
-
* @property { boolean } [color=true] Set whether the printed web page will be in color or grayscale.
|
|
29
|
-
* @property { Margins } [margins] Set margins for the printed web page
|
|
30
|
-
* @property { boolean } [landscape=false] Whether the web page should be printed in landscape mode.
|
|
31
|
-
* @property { number } [scaleFactor] The scale factor of the web page.
|
|
32
|
-
* @property { number } [pagesPerSheet] The number of pages to print per page sheet.
|
|
33
|
-
* @property { boolean } [collate] Whether the web page should be collated.
|
|
34
|
-
* @property { number } [copies] The number of copies of the web page to print.
|
|
35
|
-
* @property { Record<string, number> } [pageRanges] The page range to print. Should have two keys: from and to.
|
|
36
|
-
* @property { string } [duplexMode] Set the duplex mode of the printed web page. Can be simplex, shortEdge, or longEdge.
|
|
37
|
-
* @property { Dpi } [dpi] Set dpi for the printed web page
|
|
38
|
-
*/
|
|
39
|
-
/**
|
|
40
|
-
* @REMOVED
|
|
41
|
-
* PrinterInfo interface
|
|
42
|
-
* @typedef { object } PrinterInfo
|
|
43
|
-
* @property { string } name Printer Name
|
|
44
|
-
* @property { string } description Printer Description
|
|
45
|
-
* @property { number } status Printer Status
|
|
46
|
-
* @property { boolean } isDefault Indicates that system's default printer
|
|
47
|
-
*/
|
|
48
|
-
/**
|
|
49
|
-
* @REMOVED
|
|
50
|
-
* SharedWorkerInfo interface
|
|
51
|
-
* @typedef { object } SharedWorkerInfo
|
|
52
|
-
* @property { string } id The unique id of the shared worker.
|
|
53
|
-
* @property { string } url The url of the shared worker.
|
|
54
|
-
*/
|
|
55
|
-
/**
|
|
56
|
-
* @PORTED
|
|
57
|
-
* ContentCreationRule interface
|
|
58
|
-
* @typedef { object } ContentCreationRule
|
|
59
|
-
* @property { string } behavior 'view' | 'window' | 'browser' | 'block'
|
|
60
|
-
* @property { string[] } match List of [match patterns](https://developer.chrome.com/extensions/match_patterns).
|
|
61
|
-
* @property { object } options Window creation options or View creation options.
|
|
62
|
-
*/
|
|
63
|
-
/**
|
|
64
|
-
* @PORTED
|
|
65
|
-
* @typedef {object} Window~options
|
|
66
|
-
* @summary Window creation options.
|
|
67
|
-
* @desc This is the options object required by {@link Window.create Window.create}.
|
|
68
|
-
*
|
|
69
|
-
* Note that `name` is the only required property — albeit the `url` property is usually provided as well
|
|
70
|
-
* (defaults to `"about:blank"` when omitted).
|
|
71
|
-
*
|
|
72
|
-
* _This jsdoc typedef mirrors the `WindowOptions` TypeScript interface in `@types/openfin`._
|
|
73
|
-
*
|
|
74
|
-
* @property {object} [accelerator]
|
|
75
|
-
* Enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
|
|
76
|
-
*
|
|
77
|
-
* @property {boolean} [accelerator.devtools=false]
|
|
78
|
-
* If `true`, enables the devtools keyboard shortcut:<br>
|
|
79
|
-
* `Ctrl` + `Shift` + `I` _(Toggles Devtools)_
|
|
80
|
-
*
|
|
81
|
-
* @property {boolean} [accelerator.reload=false]
|
|
82
|
-
* If `true`, enables the reload keyboard shortcuts:<br>
|
|
83
|
-
* `Ctrl` + `R` _(Windows)_<br>
|
|
84
|
-
* `F5` _(Windows)_<br>
|
|
85
|
-
* `Command` + `R` _(Mac)_
|
|
86
|
-
*
|
|
87
|
-
* @property {boolean} [accelerator.reloadIgnoringCache=false]
|
|
88
|
-
* If `true`, enables the reload-from-source keyboard shortcuts:<br>
|
|
89
|
-
* `Ctrl` + `Shift` + `R` _(Windows)_<br>
|
|
90
|
-
* `Shift` + `F5` _(Windows)_<br>
|
|
91
|
-
* `Command` + `Shift` + `R` _(Mac)_
|
|
92
|
-
*
|
|
93
|
-
* @property {boolean} [accelerator.zoom=false]
|
|
94
|
-
* NOTE: It is not recommended to set this value to true for Windows in Platforms as that may lead to unexpected visual shifts in layout.
|
|
95
|
-
* If `true`, enables the zoom keyboard shortcuts:<br>
|
|
96
|
-
* `Ctrl` + `+` _(Zoom In)_<br>
|
|
97
|
-
* `Ctrl` + `Shift` + `+` _(Zoom In)_<br>
|
|
98
|
-
* `Ctrl` + `NumPad+` _(Zoom In)_<br>
|
|
99
|
-
* `Ctrl` + `-` _(Zoom Out)_<br>
|
|
100
|
-
* `Ctrl` + `Shift` + `-` _(Zoom Out)_<br>
|
|
101
|
-
* `Ctrl` + `NumPad-` _(Zoom Out)_<br>
|
|
102
|
-
* `Ctrl` + `Scroll` _(Zoom In & Out)_<br>
|
|
103
|
-
* `Ctrl` + `0` _(Restore to 100%)_
|
|
104
|
-
*
|
|
105
|
-
* @property {object} [alphaMask] - _Experimental._ _Updatable._
|
|
106
|
-
* <br>
|
|
107
|
-
* alphaMask turns anything of matching RGB value transparent.
|
|
108
|
-
* <br>
|
|
109
|
-
* Caveats:
|
|
110
|
-
* * runtime key --disable-gpu is required. Note: Unclear behavior on remote Desktop support
|
|
111
|
-
* * User cannot click-through transparent regions
|
|
112
|
-
* * Not supported on Mac
|
|
113
|
-
* * Windows Aero must be enabled
|
|
114
|
-
* * Won't make visual sense on Pixel-pushed environments such as Citrix
|
|
115
|
-
* * Not supported on rounded corner windows
|
|
116
|
-
* @property {number} [alphaMask.red=-1] 0-255
|
|
117
|
-
* @property {number} [alphaMask.green=-1] 0-255
|
|
118
|
-
* @property {number} [alphaMask.blue=-1] 0-255
|
|
119
|
-
*
|
|
120
|
-
* @property {boolean} [alwaysOnTop=false] - _Updatable._
|
|
121
|
-
* A flag to always position the window at the top of the window stack.
|
|
122
|
-
*
|
|
123
|
-
* @property {object} [api]
|
|
124
|
-
* Configurations for API injection.
|
|
125
|
-
*
|
|
126
|
-
* @property {object} [api.iframe] Configure if the the API should be injected into iframes based on domain.
|
|
127
|
-
*
|
|
128
|
-
* @property {boolean} [api.iframe.crossOriginInjection=false] Controls if the `fin` API object is present for cross origin iframes.
|
|
129
|
-
* @property {boolean} [api.iframe.sameOriginInjection=true] Controls if the `fin` API object is present for same origin iframes.
|
|
130
|
-
*
|
|
131
|
-
* @property {string} [applicationIcon = ""] - _Deprecated_ - use `icon` instead.
|
|
132
|
-
*
|
|
133
|
-
* @property {number} [aspectRatio=0] - _Updatable._
|
|
134
|
-
* The aspect ratio of width to height to enforce for the window. If this value is equal to or less than zero,
|
|
135
|
-
* an aspect ratio will not be enforced.
|
|
136
|
-
*
|
|
137
|
-
* @property {string} [autoplayPolicy="no-user-gesture-required"]
|
|
138
|
-
* Autoplay policy to apply to content in the window, can be
|
|
139
|
-
* `no-user-gesture-required`, `user-gesture-required`,
|
|
140
|
-
* `document-user-activation-required`. Defaults to `no-user-gesture-required`.
|
|
141
|
-
*
|
|
142
|
-
* @property {boolean} [autoShow=true]
|
|
143
|
-
* A flag to automatically show the window when it is created.
|
|
144
|
-
*
|
|
145
|
-
* @property {string} [backgroundColor="#FFF"]
|
|
146
|
-
* The window’s _backfill_ color as a hexadecimal value. Not to be confused with the content background color
|
|
147
|
-
* (`document.body.style.backgroundColor`),
|
|
148
|
-
* this color briefly fills a window’s (a) content area before its content is loaded as well as (b) newly exposed
|
|
149
|
-
* areas when growing a window. Setting
|
|
150
|
-
* this value to the anticipated content background color can help improve user experience.
|
|
151
|
-
* Default is white.
|
|
152
|
-
*
|
|
153
|
-
* @property {object} [contentCreation]
|
|
154
|
-
* Apply rules that determine how user interaction (`window.open` and links) creates content.
|
|
155
|
-
* @property {ContentCreationRule[]} [contentCreation.rules = []] List of content creation rules.
|
|
156
|
-
*
|
|
157
|
-
* @property {object} [contentNavigation]
|
|
158
|
-
* Restrict navigation to URLs that match an allowed pattern.
|
|
159
|
-
* In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
|
|
160
|
-
* See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
|
|
161
|
-
* @property {string[]} [contentNavigation.allowlist=[]] List of allowed URLs.
|
|
162
|
-
* @property {string[]} [contentNavigation.denylist=[]] List of denied URLs.
|
|
163
|
-
*
|
|
164
|
-
* @property {object} [contentRedirect]
|
|
165
|
-
* Restrict redirects to URLs that match an allowed pattern.
|
|
166
|
-
* In the lack of an allowlist, redirects to URLs that match a denied pattern would be prohibited.
|
|
167
|
-
* See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
|
|
168
|
-
* @property {string[]} [contentRedirect.allowlist=[]] List of allowed URLs.
|
|
169
|
-
* @property {string[]} [contentRedirect.denylist=[]] List of denied URLs.
|
|
170
|
-
*
|
|
171
|
-
* @property {boolean} [contextMenu=true] - _Updatable._
|
|
172
|
-
* A flag to show the context menu when right-clicking on a window.
|
|
173
|
-
* Gives access to the devtools for the window.
|
|
174
|
-
*
|
|
175
|
-
* @property {object} [contextMenuSettings] - _Updatable._
|
|
176
|
-
* Deprecated - superseded by {@link contextMenuOptions}, which offers a larger feature-set and cleaner syntax.
|
|
177
|
-
* Configure the context menu when right-clicking on a window.
|
|
178
|
-
* @property {boolean} [contextMenuSettings.enable=true] Should the context menu display on right click.
|
|
179
|
-
* @property {boolean} [contextMenuSettings.devtools=true] Should the context menu contain a button for opening devtools.
|
|
180
|
-
* @property {boolean} [contextMenuSettings.reload=true] Should the context menu contain a button for reloading the page.
|
|
181
|
-
*
|
|
182
|
-
* @property {object} [contextMenuOptions] - _Updatable._
|
|
183
|
-
* Configure the context menu when right-clicking on a window. Supported menu items:
|
|
184
|
-
* 'separator'
|
|
185
|
-
* 'cut'
|
|
186
|
-
* 'copy'
|
|
187
|
-
* 'paste'
|
|
188
|
-
* 'spellCheck'
|
|
189
|
-
* 'inspect'
|
|
190
|
-
* 'reload'
|
|
191
|
-
* 'navigateForward'
|
|
192
|
-
* 'navigateBack'
|
|
193
|
-
* 'print'
|
|
194
|
-
* @property {boolean} [contextMenuOptions.enabled = true] Should the context menu display on right click.
|
|
195
|
-
* @property {string[]} [contextMenuSettings.template=[]] List of context menu items to display on right-click.
|
|
196
|
-
*
|
|
197
|
-
* @property {object} [cornerRounding] - _Updatable._
|
|
198
|
-
* Defines and applies rounded corners for a frameless window. **NOTE:** On macOS corner is not ellipse but circle rounded by the
|
|
199
|
-
* average of _height_ and _width_.
|
|
200
|
-
* @property {number} [cornerRounding.height=0] The height in pixels.
|
|
201
|
-
* @property {number} [cornerRounding.width=0] The width in pixels.
|
|
202
|
-
*
|
|
203
|
-
* @property {any} [customContext=""] - _Updatable. Inheritable._
|
|
204
|
-
* A field that the user can use to attach serializable data that will be saved when {@link Platform#getSnapshot Platform.getSnapshot}
|
|
205
|
-
* is called. If a window in a Platform is trying to update or retrieve its own context, it can use the
|
|
206
|
-
* {@link Platform#setWindowContext Platform.setWindowContext} and {@link Platform#getWindowContext Platform.getWindowContext} calls.
|
|
207
|
-
* _When omitted, _inherits_ from the parent application._
|
|
208
|
-
* As opposed to customData, this is meant for frequent updates and sharing with other contexts. [Example]{@tutorial customContext}
|
|
209
|
-
*
|
|
210
|
-
* @property {any} [customData=""] - _Updatable. Inheritable._
|
|
211
|
-
* A field that the user can attach serializable data to be ferried around with the window options.
|
|
212
|
-
* _When omitted, _inherits_ from the parent application._
|
|
213
|
-
*
|
|
214
|
-
* @property {object[]} [customRequestHeaders]
|
|
215
|
-
* Defines list of custom headers for requests sent by the window.
|
|
216
|
-
* @property {string[]} [customRequestHeaders.urlPatterns=[]] The URL patterns for which the headers will be applied
|
|
217
|
-
* @property {object[]} [customRequestHeaders.headers=[]] Objects representing headers and their values,
|
|
218
|
-
* where the object key is the name of header and value at key is the value of the header
|
|
219
|
-
*
|
|
220
|
-
* @property {boolean} [closeOnLastViewRemoved=true] - _Experimental._ _Updatable._
|
|
221
|
-
* Toggling off would keep the Window alive even if all its Views were closed.
|
|
222
|
-
* This is meant for advanced users and should be used with caution.
|
|
223
|
-
* Limitations - Once a Layout has been emptied out of all views it's not usable anymore, and certain API calls will fail.
|
|
224
|
-
* Use `layout.replace` to create a fresh Layout instance in case you want to populate it with Views again.
|
|
225
|
-
* ** note ** - This option is ignored in non-Platforms apps.
|
|
226
|
-
*
|
|
227
|
-
* @property {boolean} [defaultCentered=false]
|
|
228
|
-
* Centers the window in the primary monitor. This option overrides `defaultLeft` and `defaultTop`. When `saveWindowState` is `true`,
|
|
229
|
-
* this value will be ignored for subsequent launches in favor of the cached value. **NOTE:** On macOS _defaultCenter_ is
|
|
230
|
-
* somewhat above center vertically.
|
|
231
|
-
*
|
|
232
|
-
* @property {number} [defaultHeight=500]
|
|
233
|
-
* The default height of the window. When `saveWindowState` is `true`, this value will be ignored for subsequent launches
|
|
234
|
-
* in favor of the cached value.
|
|
235
|
-
*
|
|
236
|
-
* @property {number} [defaultLeft=100]
|
|
237
|
-
* The default left position of the window. When `saveWindowState` is `true`, this value will be ignored for subsequent
|
|
238
|
-
* launches in favor of the cached value.
|
|
239
|
-
*
|
|
240
|
-
* @property {number} [defaultTop=100]
|
|
241
|
-
* The default top position of the window. When `saveWindowState` is `true`, this value will be ignored for subsequent
|
|
242
|
-
* launches in favor of the cached value.
|
|
243
|
-
*
|
|
244
|
-
* @property {number} [defaultWidth=800]
|
|
245
|
-
* The default width of the window. When `saveWindowState` is `true`, this value will be ignored for subsequent
|
|
246
|
-
* launches in favor of the cached value.
|
|
247
|
-
*
|
|
248
|
-
* @property {boolean} [includeInSnapshots=true] - _Updatable._
|
|
249
|
-
* When true, the window will be be included in snapshots returned by Platform.getSnapshot(). Turning this off may be desirable when dealing with
|
|
250
|
-
* inherently temporary windows whose state shouldn't be preserved, such as modals, menus, or popups.
|
|
251
|
-
*
|
|
252
|
-
* @property {boolean} [frame=true] - _Updatable._
|
|
253
|
-
* A flag to show the frame.
|
|
254
|
-
*
|
|
255
|
-
* @hidden-property {boolean} [hideOnClose=false] - A flag to allow a window to be hidden when the close button is clicked.
|
|
256
|
-
*
|
|
257
|
-
* @property {object[]} [hotkeys=[]] - _Updatable._
|
|
258
|
-
* Defines the list of hotkeys that will be emitted as a `hotkey` event on the window. For usage example see [example]{@tutorial hotkeys}.
|
|
259
|
-
* Within Platform, OpenFin also implements a set of pre-defined actions called
|
|
260
|
-
* [keyboard commands]{@link https://developers.openfin.co/docs/platform-api#section-5-3-using-keyboard-commands}
|
|
261
|
-
* that can be assigned to a specific hotkey in the platform manifest.
|
|
262
|
-
* @property {string} hotkeys.keys The key combination of the hotkey, i.e. "Ctrl+T"
|
|
263
|
-
* @property {boolean} [hotkeys.preventDefault=false] Whether or not to prevent default key handling before emitting the event
|
|
264
|
-
*
|
|
265
|
-
* @property {string} [icon] - _Updatable. Inheritable._
|
|
266
|
-
* A URL for the icon to be shown in the window title bar and the taskbar.
|
|
267
|
-
* When omitted, inherits from the parent application._
|
|
268
|
-
* note: Window OS caches taskbar icons, therefore an icon change might only be visible after the cache is removed or the uuid is changed.
|
|
269
|
-
*
|
|
270
|
-
* @property {number} [maxHeight=-1] - _Updatable._
|
|
271
|
-
* The maximum height of a window. Will default to the OS defined value if set to -1.
|
|
272
|
-
*
|
|
273
|
-
* @property {boolean} [maximizable=true] - _Updatable._
|
|
274
|
-
* A flag that lets the window be maximized.
|
|
275
|
-
*
|
|
276
|
-
* @property {number} [maxWidth=-1] - _Updatable._
|
|
277
|
-
* The maximum width of a window. Will default to the OS defined value if set to -1.
|
|
278
|
-
*
|
|
279
|
-
* @property {number} [minHeight=0] - _Updatable._
|
|
280
|
-
* The minimum height of a window.
|
|
281
|
-
*
|
|
282
|
-
* @property {boolean} [minimizable=true] - _Updatable._
|
|
283
|
-
* A flag that lets the window be minimized.
|
|
284
|
-
*
|
|
285
|
-
* @property {number} [minWidth=0] - _Updatable._
|
|
286
|
-
* The minimum width of a window.
|
|
287
|
-
*
|
|
288
|
-
* @property {Identity} [modalParentIdentity]
|
|
289
|
-
* Parent identity of a modal window. It will create a modal child window when this option is set.
|
|
290
|
-
*
|
|
291
|
-
* @property {string} name
|
|
292
|
-
* The name of the window.
|
|
293
|
-
*
|
|
294
|
-
* @property {number} [opacity=1.0] - _Updatable._
|
|
295
|
-
* A flag that specifies how transparent the window will be.
|
|
296
|
-
* Changing opacity doesn't work on Windows 7 without Aero so setting this value will have no effect there.
|
|
297
|
-
* This value is clamped between `0.0` and `1.0`.
|
|
298
|
-
*
|
|
299
|
-
* @property {preloadScript[]} [preloadScripts] - _Inheritable_
|
|
300
|
-
* A list of scripts that are eval'ed before other scripts in the page. When omitted, _inherits_
|
|
301
|
-
* from the parent application.
|
|
302
|
-
*
|
|
303
|
-
* @property {string} [processAffinity]
|
|
304
|
-
* A string to attempt to group renderers together. Will only be used if pages are on the same origin.
|
|
305
|
-
*
|
|
306
|
-
* @property {boolean} [resizable=true] - _Updatable._
|
|
307
|
-
* A flag to allow the user to resize the window.
|
|
308
|
-
*
|
|
309
|
-
* @property {object} [resizeRegion] - _Updatable._
|
|
310
|
-
* Defines a region in pixels that will respond to user mouse interaction for resizing a frameless window.
|
|
311
|
-
* @property {number} [resizeRegion.bottomRightCorner=9]
|
|
312
|
-
* The size in pixels of an additional square resizable region located at the bottom right corner of a frameless window.
|
|
313
|
-
* @property {number} [resizeRegion.size=7]
|
|
314
|
-
* The size in pixels.
|
|
315
|
-
* @property {object} [resizeRegion.sides={top:true,right:true,bottom:true,left:true}]
|
|
316
|
-
* Sides that a window can be resized from.
|
|
317
|
-
*
|
|
318
|
-
* @property {boolean} [saveWindowState=true]
|
|
319
|
-
* A flag to cache the location of the window.
|
|
320
|
-
* ** note ** - This option is ignored in Platforms as it would cause inconsistent {@link Platform#applySnapshot applySnapshot} behavior.
|
|
321
|
-
*
|
|
322
|
-
* @property {boolean} [ignoreSavedWindowState]
|
|
323
|
-
* A flag to ignore previously cached state of the window. It defaults the opposite value of `saveWindowState` to maintain backwards compatibility.
|
|
324
|
-
*
|
|
325
|
-
* @property {boolean} [shadow=false]
|
|
326
|
-
* A flag to display a shadow on frameless windows.
|
|
327
|
-
* `shadow` and `cornerRounding` are mutually exclusive.
|
|
328
|
-
* On Windows 7, Aero theme is required.
|
|
329
|
-
*
|
|
330
|
-
* @property {boolean} [showBackgroundImages=false] - _Updatable._
|
|
331
|
-
* Platforms Only. If true, will show background images in the layout when the Views are hidden.
|
|
332
|
-
* This occurs when the window is resizing or a tab is being dragged within the layout.
|
|
333
|
-
*
|
|
334
|
-
* @property {boolean} [showTaskbarIcon=true] - _Updatable._ _Windows_.
|
|
335
|
-
* A flag to show the window's icon in the taskbar.
|
|
336
|
-
*
|
|
337
|
-
* @property {boolean} [smallWindow=false]
|
|
338
|
-
* A flag to specify a frameless window that can be be created and resized to less than 41x36 px (width x height).
|
|
339
|
-
* _Note: Caveats of small windows are no Aero Snap and drag to/from maximize._
|
|
340
|
-
* _Windows 10: Requires `maximizable` to be false. Resizing with the mouse is only possible down to 38x39 px._
|
|
341
|
-
*
|
|
342
|
-
* @property {boolean} [spellCheck=false]
|
|
343
|
-
* Enable spell check in input text fields for the window.
|
|
344
|
-
*
|
|
345
|
-
* @property {string} [state="normal"]
|
|
346
|
-
* The visible state of the window on creation.
|
|
347
|
-
* One of:
|
|
348
|
-
* * `"maximized"`
|
|
349
|
-
* * `"minimized"`
|
|
350
|
-
* * `"normal"`
|
|
351
|
-
*
|
|
352
|
-
* @property {string} [taskbarIcon=string] - Deprecated - use `icon` instead._Windows_.
|
|
353
|
-
*
|
|
354
|
-
* @property {string} [taskbarIconGroup=<application uuid>] - _Windows_.
|
|
355
|
-
* Specify a taskbar group for the window.
|
|
356
|
-
* _If omitted, defaults to app's uuid (`fin.Application.getCurrentSync().identity.uuid`)._
|
|
357
|
-
*
|
|
358
|
-
* @property {string} [url="about:blank"]
|
|
359
|
-
* The URL of the window.
|
|
360
|
-
*
|
|
361
|
-
* @property {string} [uuid=<application uuid>]
|
|
362
|
-
* The `uuid` of the application, unique within the set of all `Application`s running in OpenFin Runtime.
|
|
363
|
-
* If omitted, defaults to the `uuid` of the application spawning the window.
|
|
364
|
-
* If given, must match the `uuid` of the application spawning the window.
|
|
365
|
-
* In other words, the application's `uuid` is the only acceptable value, but is the default, so there's
|
|
366
|
-
* really no need to provide it.
|
|
367
|
-
*
|
|
368
|
-
* @property {boolean} [waitForPageLoad=false]
|
|
369
|
-
* When set to `true`, the window will not appear until the `window` object's `load` event fires.
|
|
370
|
-
* When set to `false`, the window will appear immediately without waiting for content to be loaded.
|
|
371
|
-
*
|
|
372
|
-
* @property {ViewVisibility} [viewVisibility]
|
|
373
|
-
* _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
|
|
374
|
-
*/
|
|
375
|
-
/**
|
|
376
|
-
* @PORTED
|
|
377
|
-
* @typedef {Object} ViewVisibility _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
|
|
378
|
-
* @property {ShowViewsOnWindowResize} [showViewsOnWindowResize] Enables views to be shown when a Platform Window is being resized by the user.
|
|
379
|
-
* @property {ShowViewsOnSplitterDrag} [showViewsOnSplitterDrag] Allows views to be shown when they are resized by the user dragging the splitter between layout stacks.
|
|
380
|
-
* @property {ShowViewsOnTabDrag} [showViewsOnTabDrag] _Supported on Windows Operating Systems only_. Allows views to be shown when the user is dragging a tab around a layout.
|
|
381
|
-
*/
|
|
382
|
-
/**
|
|
383
|
-
* @PORTED
|
|
384
|
-
* @typedef {Object} ShowViewsOnWindowResize _Platform Windows Only_. Enables views to be shown when a Platform Window is being resized by the user.
|
|
385
|
-
* @property {boolean} [enabled=false] Enables or disables showing Views when a Platform Window is being resized.
|
|
386
|
-
* @property {number} [paintIntervalMs=0] Number of miliseconds to wait between view repaints.
|
|
387
|
-
*/
|
|
388
|
-
/**
|
|
389
|
-
* @REMOVED
|
|
390
|
-
* @typedef {Object} ShowViewsOnSplitterDrag _Platform Windows Only_. Allows views to be shown when they are resized by the user dragging the splitter between layout stacks.
|
|
391
|
-
* @property {boolean} [enabled=false] Enables or disables showing views when the layout splitter is being dragged.
|
|
392
|
-
*/
|
|
393
|
-
/**
|
|
394
|
-
* @REMOVED
|
|
395
|
-
* @typedef {Object} ShowViewsOnTabDrag _Platform Windows Only_. Allows views to be shown when the user is manipulating the layout by repositioning a tab.
|
|
396
|
-
* @property {boolean} [enabled=false] Enables or disables showing views when a tab is being dragged.
|
|
397
|
-
*/
|
|
398
|
-
/**
|
|
399
|
-
* @PORTED
|
|
400
|
-
* @typedef {object} CapturePageOptions
|
|
401
|
-
* @property { Area } [area] The area of the window to be captured.
|
|
402
|
-
* @property { string } [format='png'] The format of the captured image. Can be 'png', 'jpg', or 'bmp'.
|
|
403
|
-
* @property { number } [quality=100] Number representing quality of JPEG image only. Between 0 - 100.
|
|
404
|
-
*/
|
|
405
|
-
/**
|
|
406
|
-
* @PORTED
|
|
407
|
-
* @typedef { object } Area
|
|
408
|
-
* @property { number } height Area's height
|
|
409
|
-
* @property { number } width Area's width
|
|
410
|
-
* @property { number } x X coordinate of area's starting point
|
|
411
|
-
* @property { number } y Y coordinate of area's starting point
|
|
412
|
-
*/
|
|
413
|
-
/**
|
|
414
|
-
* @PORTED
|
|
415
|
-
* @typedef {object} FindInPageOptions
|
|
416
|
-
* @property {boolean} [forward=true] Whether to search forward or backward.
|
|
417
|
-
* @property {boolean} [findNext=false] Whether to begin a new text finding session. Should be true for first requests, and false for subsequent requests. Defaults to false.
|
|
418
|
-
* @property {boolean} [matchCase=false] Whether search should be case-sensitive.
|
|
419
|
-
* @property {boolean} [wordStart=false] Whether to look only at the start of words.
|
|
420
|
-
* @property {boolean} [medialCapitalAsWordStart=false]
|
|
421
|
-
* When combined with wordStart, accepts a match in the middle of a word if the match begins with an uppercase letter followed by a<br>
|
|
422
|
-
* lowercase or non-letter. Accepts several other intra-word matches.
|
|
423
|
-
*/
|
|
424
|
-
/**
|
|
425
|
-
* @REMOVED
|
|
426
|
-
* @typedef {object} Transition
|
|
427
|
-
* @property {Opacity} opacity - The Opacity transition
|
|
428
|
-
* @property {Position} position - The Position transition
|
|
429
|
-
* @property {Size} size - The Size transition
|
|
430
|
-
*/
|
|
431
|
-
/**
|
|
432
|
-
* @PORTED
|
|
433
|
-
* @typedef {object} TransitionOptions
|
|
434
|
-
* @property {boolean} interrupt - This option interrupts the current animation. When false it pushes
|
|
435
|
-
this animation onto the end of the animation queue.
|
|
436
|
-
* @property {boolean} relative - Treat 'opacity' as absolute or as a delta. Defaults to false.
|
|
437
|
-
*/
|
|
438
|
-
/**
|
|
439
|
-
* @PORTED
|
|
440
|
-
* @typedef {object} Size
|
|
441
|
-
* @property {number} duration - The total time in milliseconds this transition should take.
|
|
442
|
-
* @property {boolean} relative - Treat 'opacity' as absolute or as a delta. Defaults to false.
|
|
443
|
-
* @property {number} width - Optional if height is present. Defaults to the window's current width.
|
|
444
|
-
* @property {number} height - Optional if width is present. Defaults to the window's current height.
|
|
445
|
-
*/
|
|
446
|
-
/**
|
|
447
|
-
* @PORTED
|
|
448
|
-
* @typedef {object} Position
|
|
449
|
-
* @property {number} duration - The total time in milliseconds this transition should take.
|
|
450
|
-
* @property {boolean} relative - Treat 'opacity' as absolute or as a delta. Defaults to false.
|
|
451
|
-
* @property {number} left - Defaults to the window's current left position in virtual screen coordinates.
|
|
452
|
-
* @property {number} top - Defaults to the window's current top position in virtual screen coordinates.
|
|
453
|
-
*/
|
|
454
|
-
/**
|
|
455
|
-
* @PORTED
|
|
456
|
-
* @typedef {object} Opacity
|
|
457
|
-
* @property {number} duration - The total time in milliseconds this transition should take.
|
|
458
|
-
* @property {boolean} relative - Treat 'opacity' as absolute or as a delta. Defaults to false.
|
|
459
|
-
* @property {number} opacity - This value is clamped from 0.0 to 1.0.
|
|
460
|
-
*/
|
|
461
|
-
/**
|
|
462
|
-
* @REMOVED
|
|
463
|
-
* Bounds is a interface that has the properties of height,
|
|
464
|
-
* width, left, top which are all numbers
|
|
465
|
-
* @typedef { object } Bounds
|
|
466
|
-
* @property { number } height Get the application height bound
|
|
467
|
-
* @property { number } width Get the application width bound
|
|
468
|
-
* @property { number } top Get the application top bound
|
|
469
|
-
* @property { number } left Get the application left bound
|
|
470
|
-
* @property { number } right Get the application right bound
|
|
471
|
-
* @property { number } bottom Get the application bottom bound
|
|
472
|
-
*/
|
|
473
|
-
/**
|
|
474
|
-
* @classdesc A basic window that wraps a native HTML window. Provides more fine-grained
|
|
475
|
-
* control over the window state such as the ability to minimize, maximize, restore, etc.
|
|
476
|
-
* By default a window does not show upon instantiation; instead the window's show() method
|
|
477
|
-
* must be invoked manually. The new window appears in the same process as the parent window.
|
|
478
|
-
* It has the ability to listen for <a href="tutorial-Window.EventEmitter.html">window specific events</a>.
|
|
479
|
-
* @class
|
|
480
|
-
* @alias Window
|
|
481
|
-
* @hideconstructor
|
|
482
|
-
*/
|
|
483
|
-
export declare class _Window extends WebContents<OpenFin.WindowEvent> {
|
|
484
|
-
identity: OpenFin.Identity;
|
|
485
|
-
constructor(wire: Transport, identity: OpenFin.Identity);
|
|
486
|
-
/**
|
|
487
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
|
488
|
-
* @param { string | symbol } eventType - The type of the event.
|
|
489
|
-
* @param { Function } listener - Called whenever an event of the specified type occurs.
|
|
490
|
-
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
491
|
-
* @return {Promise.<this>}
|
|
492
|
-
* @function addListener
|
|
493
|
-
* @memberof Window
|
|
494
|
-
* @instance
|
|
495
|
-
* @tutorial Window.EventEmitter
|
|
496
|
-
*/
|
|
497
|
-
/**
|
|
498
|
-
* Adds a listener to the end of the listeners array for the specified event.
|
|
499
|
-
* @param { string | symbol } eventType - The type of the event.
|
|
500
|
-
* @param { Function } listener - Called whenever an event of the specified type occurs.
|
|
501
|
-
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
502
|
-
* @return {Promise.<this>}
|
|
503
|
-
* @function on
|
|
504
|
-
* @memberof Window
|
|
505
|
-
* @instance
|
|
506
|
-
* @tutorial Window.EventEmitter
|
|
507
|
-
*/
|
|
508
|
-
/**
|
|
509
|
-
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
|
510
|
-
* @param { string | symbol } eventType - The type of the event.
|
|
511
|
-
* @param { Function } listener - The callback function.
|
|
512
|
-
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
513
|
-
* @return {Promise.<this>}
|
|
514
|
-
* @function once
|
|
515
|
-
* @memberof Window
|
|
516
|
-
* @instance
|
|
517
|
-
* @tutorial Window.EventEmitter
|
|
518
|
-
*/
|
|
519
|
-
/**
|
|
520
|
-
* Adds a listener to the beginning of the listeners array for the specified event.
|
|
521
|
-
* @param { string | symbol } eventType - The type of the event.
|
|
522
|
-
* @param { Function } listener - The callback function.
|
|
523
|
-
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
524
|
-
* @return {Promise.<this>}
|
|
525
|
-
* @function prependListener
|
|
526
|
-
* @memberof Window
|
|
527
|
-
* @instance
|
|
528
|
-
* @tutorial Window.EventEmitter
|
|
529
|
-
*/
|
|
530
|
-
/**
|
|
531
|
-
* Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
|
|
532
|
-
* The listener is added to the beginning of the listeners array.
|
|
533
|
-
* @param { string | symbol } eventType - The type of the event.
|
|
534
|
-
* @param { Function } listener - The callback function.
|
|
535
|
-
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
536
|
-
* @return {Promise.<this>}
|
|
537
|
-
* @function prependOnceListener
|
|
538
|
-
* @memberof Window
|
|
539
|
-
* @instance
|
|
540
|
-
* @tutorial Window.EventEmitter
|
|
541
|
-
*/
|
|
542
|
-
/**
|
|
543
|
-
* Remove a listener from the listener array for the specified event.
|
|
544
|
-
* Caution: Calling this method changes the array indices in the listener array behind the listener.
|
|
545
|
-
* @param { string | symbol } eventType - The type of the event.
|
|
546
|
-
* @param { Function } listener - The callback function.
|
|
547
|
-
* @param { SubOptions } [options] - Option to support event timestamps.
|
|
548
|
-
* @return {Promise.<this>}
|
|
549
|
-
* @function removeListener
|
|
550
|
-
* @memberof Window
|
|
551
|
-
* @instance
|
|
552
|
-
* @tutorial Window.EventEmitter
|
|
553
|
-
*/
|
|
554
|
-
/**
|
|
555
|
-
* Removes all listeners, or those of the specified event.
|
|
556
|
-
* @param { string | symbol } [eventType] - The type of the event.
|
|
557
|
-
* @return {Promise.<this>}
|
|
558
|
-
* @function removeAllListeners
|
|
559
|
-
* @memberof Window
|
|
560
|
-
* @instance
|
|
561
|
-
* @tutorial Window.EventEmitter
|
|
562
|
-
*/
|
|
563
|
-
/**
|
|
564
|
-
* Gets a base64 encoded image of the window or a part of it.
|
|
565
|
-
* @function capturePage
|
|
566
|
-
* @param { CapturePageOptions } [options] options for capturePage call.
|
|
567
|
-
* @return {Promise.<string>}
|
|
568
|
-
* @memberof Window
|
|
569
|
-
* @instance
|
|
570
|
-
* @tutorial Window.capturePage
|
|
571
|
-
*/
|
|
572
|
-
/**
|
|
573
|
-
* Executes Javascript on the window, restricted to windows you own or windows owned by
|
|
574
|
-
* applications you have created.
|
|
575
|
-
* @param { string } code JavaScript code to be executed on the window.
|
|
576
|
-
* @function executeJavaScript
|
|
577
|
-
* @memberOf Window
|
|
578
|
-
* @instance
|
|
579
|
-
* @return {Promise.<void>}
|
|
580
|
-
* @tutorial Window.executeJavaScript
|
|
581
|
-
*/
|
|
582
|
-
/**
|
|
583
|
-
* Gives focus to the window.
|
|
584
|
-
* @return {Promise.<void>}
|
|
585
|
-
* @function focus
|
|
586
|
-
* @emits focused
|
|
587
|
-
* @memberOf Window
|
|
588
|
-
* @instance
|
|
589
|
-
* @tutorial Window.focus
|
|
590
|
-
*/
|
|
591
|
-
/**
|
|
592
|
-
* Returns the zoom level of the window.
|
|
593
|
-
* @function getZoomLevel
|
|
594
|
-
* @memberOf Window
|
|
595
|
-
* @instance
|
|
596
|
-
* @return {Promise.<number>}
|
|
597
|
-
* @tutorial Window.getZoomLevel
|
|
598
|
-
*/
|
|
599
|
-
/**
|
|
600
|
-
* Sets the zoom level of the window.
|
|
601
|
-
* @param { number } level The zoom level
|
|
602
|
-
* @function setZoomLevel
|
|
603
|
-
* @memberOf Window
|
|
604
|
-
* @instance
|
|
605
|
-
* @return {Promise.<void>}
|
|
606
|
-
* @tutorial Window.setZoomLevel
|
|
607
|
-
*/
|
|
608
|
-
/**
|
|
609
|
-
* Find and highlight text on a page.
|
|
610
|
-
* @param { string } searchTerm Term to find in page
|
|
611
|
-
* @param { FindInPageOptions } options Search options
|
|
612
|
-
* @function findInPage
|
|
613
|
-
* @memberOf Window
|
|
614
|
-
* @instance
|
|
615
|
-
* @return {Promise.<number>}
|
|
616
|
-
* @tutorial Window.findInPage
|
|
617
|
-
*/
|
|
618
|
-
/**
|
|
619
|
-
* Stops any findInPage call with the provided action.
|
|
620
|
-
* @param {string} action
|
|
621
|
-
* Action to execute when stopping a find in page:<br>
|
|
622
|
-
* "clearSelection" - Clear the selection.<br>
|
|
623
|
-
* "keepSelection" - Translate the selection into a normal selection.<br>
|
|
624
|
-
* "activateSelection" - Focus and click the selection node.<br>
|
|
625
|
-
* @function stopFindInPage
|
|
626
|
-
* @memberOf Window
|
|
627
|
-
* @instance
|
|
628
|
-
* @return {Promise.<void>}
|
|
629
|
-
* @tutorial Window.stopFindInPage
|
|
630
|
-
*/
|
|
631
|
-
/**
|
|
632
|
-
* Navigates the window to a specified URL. The url must contain the protocol prefix such as http:// or https://.
|
|
633
|
-
* @param {string} url - The URL to navigate the window to.
|
|
634
|
-
* @function navigate
|
|
635
|
-
* @memberOf Window
|
|
636
|
-
* @instance
|
|
637
|
-
* @return {Promise.<void>}
|
|
638
|
-
* @tutorial Window.navigate
|
|
639
|
-
*/
|
|
640
|
-
/**
|
|
641
|
-
* Navigates the window back one page.
|
|
642
|
-
* @function navigateBack
|
|
643
|
-
* @memberOf Window
|
|
644
|
-
* @instance
|
|
645
|
-
* @return {Promise.<void>}
|
|
646
|
-
* @tutorial Window.navigateBack
|
|
647
|
-
*/
|
|
648
|
-
/**
|
|
649
|
-
* Navigates the window forward one page.
|
|
650
|
-
* @function navigateForward
|
|
651
|
-
* @memberOf Window
|
|
652
|
-
* @instance
|
|
653
|
-
* @return {Promise.<void>}
|
|
654
|
-
* @tutorial Window.navigateForward
|
|
655
|
-
*/
|
|
656
|
-
/**
|
|
657
|
-
* Stops any current navigation the window is performing.
|
|
658
|
-
* @function stopNavigation
|
|
659
|
-
* @memberOf Window
|
|
660
|
-
* @instance
|
|
661
|
-
* @return {Promise.<void>}
|
|
662
|
-
* @tutorial Window.stopNavigation
|
|
663
|
-
*/
|
|
664
|
-
/**
|
|
665
|
-
* Reloads the window current page
|
|
666
|
-
* @function reload
|
|
667
|
-
* @memberOf Window
|
|
668
|
-
* @instance
|
|
669
|
-
* @return {Promise.<void>}
|
|
670
|
-
* @tutorial Window.reload
|
|
671
|
-
*/
|
|
672
|
-
/**
|
|
673
|
-
* Prints the window's web page
|
|
674
|
-
* @param { PrintOptions } [options] Printer Options
|
|
675
|
-
* @function print
|
|
676
|
-
* @memberOf Window
|
|
677
|
-
* @instance
|
|
678
|
-
* @return {Promise.<void>}
|
|
679
|
-
* @tutorial Window.print
|
|
680
|
-
*/
|
|
681
|
-
/**
|
|
682
|
-
* Returns an array with all system printers
|
|
683
|
-
* @deprecated use System.getPrinters instead
|
|
684
|
-
* @function getPrinters
|
|
685
|
-
* @memberOf Window
|
|
686
|
-
* @instance
|
|
687
|
-
* @return { Promise.Array.<PrinterInfo> }
|
|
688
|
-
* @tutorial Window.getPrinters
|
|
689
|
-
*/
|
|
690
|
-
/**
|
|
691
|
-
* Retrieves the process information associated with a window.
|
|
692
|
-
* @function getProcessInfo
|
|
693
|
-
* @memberOf Window
|
|
694
|
-
* @instance
|
|
695
|
-
* @return {Promise.<EntityProcessDetails>}
|
|
696
|
-
* @tutorial Window.getProcessInfo
|
|
697
|
-
*/
|
|
698
|
-
/**
|
|
699
|
-
* Retrieves information on all Shared Workers.
|
|
700
|
-
* @function getSharedWorkers
|
|
701
|
-
* @memberOf Window
|
|
702
|
-
* @instance
|
|
703
|
-
* @return {Promise.Array.<SharedWorkerInfo>}
|
|
704
|
-
* @tutorial Window.getSharedWorkers
|
|
705
|
-
*/
|
|
706
|
-
/**
|
|
707
|
-
* Opens the developer tools for the shared worker context.
|
|
708
|
-
* @function inspectSharedWorker
|
|
709
|
-
* @memberOf Window
|
|
710
|
-
* @instance
|
|
711
|
-
* @return {Promise.<void>}
|
|
712
|
-
* @tutorial Window.inspectSharedWorker
|
|
713
|
-
*/
|
|
714
|
-
/**
|
|
715
|
-
* Inspects the shared worker based on its ID.
|
|
716
|
-
* @param { string } workerId - The id of the shared worker.
|
|
717
|
-
* @function inspectSharedWorkerById
|
|
718
|
-
* @memberOf Window
|
|
719
|
-
* @instance
|
|
720
|
-
* @return {Promise.<void>}
|
|
721
|
-
* @tutorial Window.inspectSharedWorkerById
|
|
722
|
-
*/
|
|
723
|
-
/**
|
|
724
|
-
* Opens the developer tools for the service worker context.
|
|
725
|
-
* @function inspectServiceWorker
|
|
726
|
-
* @memberOf Window
|
|
727
|
-
* @instance
|
|
728
|
-
* @return {Promise.<void>}
|
|
729
|
-
* @tutorial Window.inspectServiceWorker
|
|
730
|
-
*/
|
|
731
|
-
createWindow(options: OpenFin.WindowCreationOptions): Promise<OpenFin.Window>;
|
|
732
|
-
/**
|
|
733
|
-
* Retrieves an array of frame info objects representing the main frame and any
|
|
734
|
-
* iframes that are currently on the page.
|
|
735
|
-
* @return {Promise.<Array<FrameInfo>>}
|
|
736
|
-
* @tutorial Window.getAllFrames
|
|
737
|
-
*/
|
|
738
|
-
getAllFrames(): Promise<Array<OpenFin.FrameInfo>>;
|
|
739
|
-
/**
|
|
740
|
-
* Gets the current bounds (top, bottom, right, left, width, height) of the window.
|
|
741
|
-
* @return {Promise.<Bounds>}
|
|
742
|
-
* @tutorial Window.getBounds
|
|
743
|
-
*/
|
|
744
|
-
getBounds(): Promise<OpenFin.WindowBounds>;
|
|
745
|
-
/**
|
|
746
|
-
* Centers the window on its current screen.
|
|
747
|
-
* @return {Promise.<void>}
|
|
748
|
-
* @tutorial Window.center
|
|
749
|
-
*/
|
|
750
|
-
center(): Promise<void>;
|
|
751
|
-
/**
|
|
752
|
-
* Removes focus from the window.
|
|
753
|
-
* @return {Promise.<void>}
|
|
754
|
-
* @tutorial Window.blur
|
|
755
|
-
*/
|
|
756
|
-
blur(): Promise<void>;
|
|
757
|
-
/**
|
|
758
|
-
* Brings the window to the front of the window stack.
|
|
759
|
-
* @return {Promise.<void>}
|
|
760
|
-
* @tutorial Window.bringToFront
|
|
761
|
-
*/
|
|
762
|
-
bringToFront(): Promise<void>;
|
|
763
|
-
/**
|
|
764
|
-
* Performs the specified window transitions.
|
|
765
|
-
* @param {Transition} transitions - Describes the animations to perform. See the tutorial.
|
|
766
|
-
* @param {TransitionOptions} options - Options for the animation. See the tutorial.
|
|
767
|
-
* @return {Promise.<void>}
|
|
768
|
-
* @tutorial Window.animate
|
|
769
|
-
*/
|
|
770
|
-
animate(transitions: OpenFin.Transition, options: OpenFin.TransitionOptions): Promise<void>;
|
|
771
|
-
/**
|
|
772
|
-
* Hides the window.
|
|
773
|
-
* @return {Promise.<void>}
|
|
774
|
-
* @tutorial Window.hide
|
|
775
|
-
*/
|
|
776
|
-
hide(): Promise<void>;
|
|
777
|
-
/**
|
|
778
|
-
* closes the window application
|
|
779
|
-
* @param { boolean } [force = false] Close will be prevented from closing when force is false and
|
|
780
|
-
* ‘close-requested’ has been subscribed to for application’s main window.
|
|
781
|
-
* @return {Promise.<void>}
|
|
782
|
-
* @tutorial Window.close
|
|
783
|
-
*/
|
|
784
|
-
close(force?: boolean): Promise<void>;
|
|
785
|
-
focusedWebViewWasChanged(): Promise<void>;
|
|
786
|
-
/**
|
|
787
|
-
* Returns the native OS level Id.
|
|
788
|
-
* In Windows, it will return the Windows [handle](https://docs.microsoft.com/en-us/windows/desktop/WinProg/windows-data-types#HWND).
|
|
789
|
-
* @return {Promise.<string>}
|
|
790
|
-
* @tutorial Window.getNativeId
|
|
791
|
-
*/
|
|
792
|
-
getNativeId(): Promise<string>;
|
|
793
|
-
/**
|
|
794
|
-
* Retrieves window's attached views.
|
|
795
|
-
* @experimental
|
|
796
|
-
* @return {Promise.Array.<View>}
|
|
797
|
-
* @tutorial Window.getCurrentViews
|
|
798
|
-
*/
|
|
799
|
-
getCurrentViews(): Promise<OpenFin.View[]>;
|
|
800
|
-
disableFrame(): Promise<void>;
|
|
801
|
-
/**
|
|
802
|
-
* Prevents a user from changing a window's size/position when using the window's frame.
|
|
803
|
-
* @return {Promise.<void>}
|
|
804
|
-
* @tutorial Window.disableUserMovement
|
|
805
|
-
*/
|
|
806
|
-
disableUserMovement(): Promise<void>;
|
|
807
|
-
enableFrame(): Promise<void>;
|
|
808
|
-
/**
|
|
809
|
-
* Re-enables user changes to a window's size/position when using the window's frame.
|
|
810
|
-
* @return {Promise.<void>}
|
|
811
|
-
* @tutorial Window.enableUserMovement
|
|
812
|
-
*/
|
|
813
|
-
enableUserMovement(): Promise<void>;
|
|
814
|
-
/**
|
|
815
|
-
* Flashes the window’s frame and taskbar icon until stopFlashing is called or until a focus event is fired.
|
|
816
|
-
* @return {Promise.<void>}
|
|
817
|
-
* @tutorial Window.flash
|
|
818
|
-
*/
|
|
819
|
-
flash(): Promise<void>;
|
|
820
|
-
/**
|
|
821
|
-
* Stops the taskbar icon from flashing.
|
|
822
|
-
* @return {Promise.<void>}
|
|
823
|
-
* @tutorial Window.stopFlashing
|
|
824
|
-
*/
|
|
825
|
-
stopFlashing(): Promise<void>;
|
|
826
|
-
/**
|
|
827
|
-
* Gets an information object for the window.
|
|
828
|
-
* @return {Promise.<WindowInfo>}
|
|
829
|
-
* @tutorial Window.getInfo
|
|
830
|
-
*/
|
|
831
|
-
getInfo(): Promise<OpenFin.WindowInfo>;
|
|
832
|
-
/**
|
|
833
|
-
* Retrieves the window's Layout
|
|
834
|
-
* @return {Promise.<Layout>}
|
|
835
|
-
* @tutorial Window.getLayout
|
|
836
|
-
* @experimental
|
|
837
|
-
*/
|
|
838
|
-
getLayout(): Promise<OpenFin.Layout>;
|
|
839
|
-
/**
|
|
840
|
-
* Gets the current settings of the window.
|
|
841
|
-
* @return {Promise.<any>}
|
|
842
|
-
* @tutorial Window.getOptions
|
|
843
|
-
*/
|
|
844
|
-
getOptions(): Promise<OpenFin.WindowOptions>;
|
|
845
|
-
/**
|
|
846
|
-
* Gets the parent application.
|
|
847
|
-
* @return {Promise.<Application>}
|
|
848
|
-
* @tutorial Window.getParentApplication
|
|
849
|
-
*/
|
|
850
|
-
getParentApplication(): Promise<OpenFin.Application>;
|
|
851
|
-
/**
|
|
852
|
-
* Gets the parent window.
|
|
853
|
-
* @return {Promise.<_Window>}
|
|
854
|
-
* @tutorial Window.getParentWindow
|
|
855
|
-
*/
|
|
856
|
-
getParentWindow(): Promise<OpenFin.Window>;
|
|
857
|
-
/**
|
|
858
|
-
* ***DEPRECATED - please use Window.capturePage.***
|
|
859
|
-
* Gets a base64 encoded PNG image of the window or just part a of it.
|
|
860
|
-
* @param { Area } [area] The area of the window to be captured.
|
|
861
|
-
* Omitting it will capture the whole visible window.
|
|
862
|
-
* @return {Promise.<string>}
|
|
863
|
-
* @tutorial Window.capturePage
|
|
864
|
-
*/
|
|
865
|
-
getSnapshot(area?: OpenFin.Rectangle): Promise<string>;
|
|
866
|
-
/**
|
|
867
|
-
* Gets the current state ("minimized", "maximized", or "normal") of the window.
|
|
868
|
-
* @return {Promise.<string>}
|
|
869
|
-
* @tutorial Window.getState
|
|
870
|
-
*/
|
|
871
|
-
getState(): Promise<'minimized' | 'maximized' | 'normal'>;
|
|
872
|
-
/**
|
|
873
|
-
* Previously called getNativeWindow.
|
|
874
|
-
* Returns the [Window Object](https://developer.mozilla.org/en-US/docs/Web/API/Window)
|
|
875
|
-
* that represents the web context of the target window. This is the same object that
|
|
876
|
-
* you would get from calling [window.open()](https://developer.mozilla.org/en-US/docs/Web/API/Window/open) in a standard web context.
|
|
877
|
-
* The target window needs to be in the same application as the requesting window
|
|
878
|
-
* as well as comply with [same-origin](https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy) policy requirements.
|
|
879
|
-
* @return {object}
|
|
880
|
-
* @tutorial Window.getWebWindow
|
|
881
|
-
*/
|
|
882
|
-
getWebWindow(): globalThis.Window;
|
|
883
|
-
/**
|
|
884
|
-
* Determines if the window is a main window.
|
|
885
|
-
* @return {boolean}
|
|
886
|
-
* @tutorial Window.isMainWindow
|
|
887
|
-
*/
|
|
888
|
-
isMainWindow(): boolean;
|
|
889
|
-
/**
|
|
890
|
-
* Determines if the window is currently showing.
|
|
891
|
-
* @return {Promise.<boolean>}
|
|
892
|
-
* @tutorial Window.isShowing
|
|
893
|
-
*/
|
|
894
|
-
isShowing(): Promise<boolean>;
|
|
895
|
-
/**
|
|
896
|
-
* Maximizes the window
|
|
897
|
-
* @return {Promise.<void>}
|
|
898
|
-
* @tutorial Window.maximize
|
|
899
|
-
*/
|
|
900
|
-
maximize(): Promise<void>;
|
|
901
|
-
/**
|
|
902
|
-
* Minimizes the window.
|
|
903
|
-
* @return {Promise.<void>}
|
|
904
|
-
* @tutorial Window.minimize
|
|
905
|
-
*/
|
|
906
|
-
minimize(): Promise<void>;
|
|
907
|
-
/**
|
|
908
|
-
* Moves the window by a specified amount.
|
|
909
|
-
* @param { number } deltaLeft The change in the left position of the window
|
|
910
|
-
* @param { number } deltaTop The change in the top position of the window
|
|
911
|
-
* @return {Promise.<void>}
|
|
912
|
-
* @tutorial Window.moveBy
|
|
913
|
-
*/
|
|
914
|
-
moveBy(deltaLeft: number, deltaTop: number): Promise<void>;
|
|
915
|
-
/**
|
|
916
|
-
* Moves the window to a specified location.
|
|
917
|
-
* @param { number } left The left position of the window
|
|
918
|
-
* @param { number } top The top position of the window
|
|
919
|
-
* @return {Promise.<void>}
|
|
920
|
-
* @tutorial Window.moveTo
|
|
921
|
-
*/
|
|
922
|
-
moveTo(left: number, top: number): Promise<void>;
|
|
923
|
-
/**
|
|
924
|
-
* Resizes the window by a specified amount.
|
|
925
|
-
* @param { number } deltaWidth The change in the width of the window
|
|
926
|
-
* @param { number } deltaHeight The change in the height of the window
|
|
927
|
-
* @param { AnchorType } anchor Specifies a corner to remain fixed during the resize.
|
|
928
|
-
* Can take the values: "top-left", "top-right", "bottom-left", or "bottom-right".
|
|
929
|
-
* If undefined, the default is "top-left"
|
|
930
|
-
* @return {Promise.<void>}
|
|
931
|
-
* @tutorial Window.resizeBy
|
|
932
|
-
*/
|
|
933
|
-
resizeBy(deltaWidth: number, deltaHeight: number, anchor: OpenFin.AnchorType): Promise<void>;
|
|
934
|
-
/**
|
|
935
|
-
* Resizes the window to the specified dimensions.
|
|
936
|
-
* @param { number } width The change in the width of the window
|
|
937
|
-
* @param { number } height The change in the height of the window
|
|
938
|
-
* @param { AnchorType } anchor Specifies a corner to remain fixed during the resize.
|
|
939
|
-
* Can take the values: "top-left", "top-right", "bottom-left", or "bottom-right".
|
|
940
|
-
* If undefined, the default is "top-left"
|
|
941
|
-
* @return {Promise.<void>}
|
|
942
|
-
* @tutorial Window.resizeTo
|
|
943
|
-
*/
|
|
944
|
-
resizeTo(width: number, height: number, anchor: OpenFin.AnchorType): Promise<void>;
|
|
945
|
-
/**
|
|
946
|
-
* Restores the window to its normal state (i.e., unminimized, unmaximized).
|
|
947
|
-
* @return {Promise.<void>}
|
|
948
|
-
* @tutorial Window.restore
|
|
949
|
-
*/
|
|
950
|
-
restore(): Promise<void>;
|
|
951
|
-
/**
|
|
952
|
-
* Will bring the window to the front of the entire stack and give it focus.
|
|
953
|
-
* @return {Promise.<void>}
|
|
954
|
-
* @tutorial Window.setAsForeground
|
|
955
|
-
*/
|
|
956
|
-
setAsForeground(): Promise<void>;
|
|
957
|
-
/**
|
|
958
|
-
* Sets the window's size and position.
|
|
959
|
-
* @property { Bounds } bounds This is a * @type {string} name - name of the window.object that holds the propertys of
|
|
960
|
-
* @return {Promise.<void>}
|
|
961
|
-
* @tutorial Window.setBounds
|
|
962
|
-
*/
|
|
963
|
-
setBounds(bounds: Partial<OpenFin.Bounds>): Promise<void>;
|
|
964
|
-
/**
|
|
965
|
-
* Shows the window if it is hidden.
|
|
966
|
-
* @param { boolean } [force = false] Show will be prevented from showing when force is false and
|
|
967
|
-
* ‘show-requested’ has been subscribed to for application’s main window.
|
|
968
|
-
* @return {Promise.<void>}
|
|
969
|
-
* @tutorial Window.show
|
|
970
|
-
*/
|
|
971
|
-
show(force?: boolean): Promise<void>;
|
|
972
|
-
/**
|
|
973
|
-
* Shows the window if it is hidden at the specified location.
|
|
974
|
-
* If the toggle parameter is set to true, the window will
|
|
975
|
-
* alternate between showing and hiding.
|
|
976
|
-
* @param { number } left The left position of the window
|
|
977
|
-
* @param { number } top The right position of the window
|
|
978
|
-
* @param { boolean } force Show will be prevented from closing when force is false and
|
|
979
|
-
* ‘show-requested’ has been subscribed to for application’s main window
|
|
980
|
-
* @return {Promise.<void>}
|
|
981
|
-
* @tutorial Window.showAt
|
|
982
|
-
*/
|
|
983
|
-
showAt(left: number, top: number, force?: boolean): Promise<void>;
|
|
984
|
-
/**
|
|
985
|
-
* Shows the Chromium Developer Tools
|
|
986
|
-
* @return {Promise.<void>}
|
|
987
|
-
* @tutorial Window.showDeveloperTools
|
|
988
|
-
*/
|
|
989
|
-
/**
|
|
990
|
-
* Updates the window using the passed options.
|
|
991
|
-
* Values that are objects are deep-merged, overwriting only the values that are provided.
|
|
992
|
-
* @param {*} options Changes a window's options that were defined upon creation. See tutorial
|
|
993
|
-
* @return {Promise.<void>}
|
|
994
|
-
* @tutorial Window.updateOptions
|
|
995
|
-
*/
|
|
996
|
-
updateOptions(options: OpenFin.UpdatableWindowOptions): Promise<void>;
|
|
997
|
-
/**
|
|
998
|
-
* Provides credentials to authentication requests
|
|
999
|
-
* @param { string } userName userName to provide to the authentication challenge
|
|
1000
|
-
* @param { string } password password to provide to the authentication challenge
|
|
1001
|
-
* @return {Promise.<void>}
|
|
1002
|
-
* @tutorial Window.authenticate
|
|
1003
|
-
*/
|
|
1004
|
-
authenticate(userName: string, password: string): Promise<void>;
|
|
1005
|
-
/**
|
|
1006
|
-
* @typedef {object} ShowPopupMenuOptions
|
|
1007
|
-
* @property {Array<MenuItemTemplate>} template - An array describing the menu to show.
|
|
1008
|
-
* @property {number} [x] - The window x coordinate where to show the menu. Defaults to mouse position. If using must also use `y`.
|
|
1009
|
-
* @property {number} [y] - The window y coordinate where to show the menu. Defaults to mouse position. If using must also use `x`
|
|
1010
|
-
*/
|
|
1011
|
-
/**
|
|
1012
|
-
* @typedef {object} MenuItemTemplate
|
|
1013
|
-
* @property {*} data - Data to be returned if the user selects the element. Must be serializable. Large objects can have a performance impact.
|
|
1014
|
-
* @property {'normal' | 'separator' | 'submenu' | 'checkbox'} [type] - Defaults to 'normal' unless a 'submenu' key exists
|
|
1015
|
-
* @property {string} [label] - The text to show on the menu item. Should be left undefined for `type: 'separator'`
|
|
1016
|
-
* @property {boolean} [enabled] - If false, the menu item will be greyed out and unclickable.
|
|
1017
|
-
* @property {boolean} [visible] - If false, the menu item will be entirely hidden.
|
|
1018
|
-
* @property {boolean} [checked] - Should only be specified for `checkbox` type menu items.
|
|
1019
|
-
* @property {string} [icon] - Image Data URI with image dimensions inferred from the encoded string
|
|
1020
|
-
* @property {Array<MenuItemTemplate>} [submenu] Should be specified for `submenu` type menu items. If `submenu` is specified, the `type: 'submenu'` can be omitted.
|
|
1021
|
-
*/
|
|
1022
|
-
/**
|
|
1023
|
-
* @typedef {object} MenuResult
|
|
1024
|
-
* @property {'clicked' | 'closed'} result - Whether the user clicked on a menu item or the menu was closed (user clicked elsewhere).
|
|
1025
|
-
* @property {* | undefined} [data] - The data property of the menu item clicked by the user. Only defined if result was `clicked`.
|
|
1026
|
-
*/
|
|
1027
|
-
/**
|
|
1028
|
-
* Shows a menu on the window. Returns a promise that resolves when the user has either selected an item or closed the menu. (This may take longer than other apis).
|
|
1029
|
-
* Resolves to an object with `{result: 'clicked', data }` where data is the data field on the menu item clicked, or `{result 'closed'}` when the user doesn't select anything.
|
|
1030
|
-
* Calling this method will close previously opened menus.
|
|
1031
|
-
* @experimental
|
|
1032
|
-
* @param {ShowPopupMenuOptions} options
|
|
1033
|
-
* @return {Promise<MenuResult>}
|
|
1034
|
-
* @tutorial Window.showPopupMenu
|
|
1035
|
-
*/
|
|
1036
|
-
showPopupMenu<T>(options: OpenFin.ShowPopupMenuOptions<T>): Promise<OpenFin.MenuResult<T>>;
|
|
1037
|
-
/**
|
|
1038
|
-
* Closes the window's popup menu, if one exists.
|
|
1039
|
-
* @experimental
|
|
1040
|
-
* @return {Promise<void>}
|
|
1041
|
-
* @tutorial Window.closePopupMenu
|
|
1042
|
-
*/
|
|
1043
|
-
closePopupMenu(): Promise<void>;
|
|
1044
|
-
/**
|
|
1045
|
-
* @typedef {object} PopupOptions
|
|
1046
|
-
* @property {string} [name] - If a window with this `name` exists, it will be shown as a popup. Otherwise, a new window with this `name` will be created. If this `name` is undefined, `initialOptions.name` will be used. If this `name` and `intialOptions.name` are both undefined, a `name` will be generated.
|
|
1047
|
-
* @property {string} [url] - Navigates to this `url` if showing an existing window as a popup, otherwise the newly created window will load this `url`.
|
|
1048
|
-
* @property {Window~options} [initialOptions] - Window creation options when using `showPopupWindow` to create a new window.
|
|
1049
|
-
* @property {Window~options} [additionalOptions] - Updatable window options applied to new and existing windows when shown as popups.
|
|
1050
|
-
* @property {function} [onPopupResult] - Executed when this window's popup calls `dispatchPopupResult`. Note: if this is defined, `showPopupWindow` will not return a `PopupResult`.
|
|
1051
|
-
* @property {function} [onPopupReady] - Executed when the popup window is shown. Provides the popup window to the provided function, and allows for easy access the popup window for additional behavior customization.
|
|
1052
|
-
* @property {number} [height] - Height of the popup window (takes priority over `intialOptions` size properties).
|
|
1053
|
-
* @property {number} [width] - Width of the popup window (takes priority over `intialOptions` size properties).
|
|
1054
|
-
* @property {number} [x] - Left position where the popup window will be shown (relative to the window calling `showPopupWindow`).
|
|
1055
|
-
* @property {number} [y] - Top position where the popup window will be shown (relative to the window calling `showPopupWindow`).
|
|
1056
|
-
* @property {'modal' | 'hide' | 'close'} [blurBehavior] - Determines what happens if the popup window is blurred. 'modal' restricts resizing and positioning in the caller, 'hide' hides the popup window on blur and 'close' closes the popup window on blur.
|
|
1057
|
-
* @property {'none' | 'hide' | 'close'} [resultDispatchBehavior] - Determines what happens when the popup window calls `dispatchPopupResult`. 'none' will do nothing, 'hide' hides the popup window on `dispatchPopupResult` and 'close' closes the popup window on `dispatchPopupResult`.
|
|
1058
|
-
* @property {boolean} [focus] - Determines if the popup window should or should not be focused when it is shown.
|
|
1059
|
-
* @property {boolean} [hideOnClose] - Hide the popup window instead of closing whenever `close` is called on it. Note: if this is `true` and `blurBehavior` and/or `resultDispatchBehavior` are set to `close`, the window will be hidden.
|
|
1060
|
-
*/
|
|
1061
|
-
/**
|
|
1062
|
-
* @typedef {object} PopupResult
|
|
1063
|
-
* @property {Identity} identity - `name` and `uuid` of the popup window that called dispatched this result.
|
|
1064
|
-
* @property {'clicked' | 'dismissed'} result - Result of the user interaction with the popup window.
|
|
1065
|
-
* @property {* | undefined} [data] - Data passed to `dispatchPopupResult`.
|
|
1066
|
-
*/
|
|
1067
|
-
/**
|
|
1068
|
-
* Shows a popup window. If this window currently has a popup open, closes it.
|
|
1069
|
-
* @function showPopupWindow
|
|
1070
|
-
* @memberOf Window
|
|
1071
|
-
* @instance
|
|
1072
|
-
* @param {PopupOptions} options
|
|
1073
|
-
* @return {Promise<PopupResult>}
|
|
1074
|
-
* @tutorial Window.showPopupWindow
|
|
1075
|
-
*/
|
|
1076
|
-
/**
|
|
1077
|
-
* Dispatch a result to the caller of `showPopupWindow`. If this window isn't currently being shown as a popup, this call will silently fail.
|
|
1078
|
-
* @param {*} data Serializable data to send to the caller window.
|
|
1079
|
-
* @return {Promise<void>}
|
|
1080
|
-
* @tutorial Window.dispatchPopupResult
|
|
1081
|
-
*/
|
|
1082
|
-
dispatchPopupResult(data: any): Promise<void>;
|
|
1083
|
-
/**
|
|
1084
|
-
* Prints the contents of the window.
|
|
1085
|
-
*
|
|
1086
|
-
* @param options Configuration for the print task.
|
|
1087
|
-
* @tutorial Window.print
|
|
1088
|
-
*/
|
|
1089
|
-
print(options?: OpenFin.WindowPrintOptions): Promise<void>;
|
|
1090
|
-
}
|