Skip to content

Commit f6a127b

Browse files
committed
add parameter types
1 parent 263b607 commit f6a127b

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

ExtensionManifest.d.ts

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,35 @@ declare namespace ExtensionManifest {
225225

226226
export namespace DispatchInfoList {
227227

228+
export type FeatureParameterValue = "SameSiteByDefaultCookies" | "CookiesWithoutSameSiteMustBeSecure" | "NetworkService";
229+
228230
/**
229231
* One CEF command line parameter
230232
*/
231-
export type Parameter = string;
233+
export type Parameter =
234+
"--enable-media-stream" | // Enable media (WebRTC audio/video) streaming.
235+
"--enable-speech-input" | // Enable speech input (x-webkit-speech).
236+
"--persist-session-cookies" | // Persist session cookies.
237+
"--disable-image-loading" | // Disable loading of images from the network. A cached image will still be rendered if requested.
238+
"--disable-javascript-open-windows" | // Disable opening of windows via JavaScript.
239+
"--disable-javascript-close-windows" | // Disable closing of windows via JavaScript.
240+
"--disable-javascript-access-clipboard" | // Disable clipboard access via JavaScript.
241+
"--enable-caret-browsing" | // Enable caret browsing.
242+
"--proxy-auto-detect" | // This tells Chrome to try and automatically detect your proxy configuration.
243+
// See more info at http://www.chromium.org/developers/design-documents/network-settings.
244+
"--user-agent" | // A string used to override the default user agent with a custom one.
245+
"--disable-application-cache" | // Disable the ApplicationCache.
246+
"--enable-nodejs" | // Enable Node.js APIs in extensions. Supported since CEP 6.1.
247+
"--disable-pinch" | // Disable compositor-accelerated touch-screen pinch gestures.
248+
"--mixed-context" | // Enable the "mixed context" mode. Supported since CEP 7.0.
249+
250+
"--allow-file-access" |
251+
"--allow-file-access-from-files" |
252+
// @see https://github.com/Adobe-CEP/CEP-Resources/blob/master/CEP_11.x/Documentation/CEP%2011.1%20HTML%20Extension%20Cookbook.md#migration-from-cep-10-to-cep-11
253+
"--disable-features" |
254+
"--disable-site-isolation-trials"
255+
;
256+
232257
/**
233258
* Contains a list of CEF command line parameters.
234259
*/
@@ -464,4 +489,4 @@ interface V7 extends ExtensionManifest.ExtensionManifest {
464489
}
465490

466491
export { V6, V7}
467-
export default ExtensionManifest;
492+
export default ExtensionManifest;

0 commit comments

Comments
 (0)