Skip to content

Commit

Permalink
Updated for v7.0.0-wvvmp-beta.6
Browse files Browse the repository at this point in the history
  • Loading branch information
khwaaj committed Oct 9, 2019
1 parent b563482 commit 41a3c2e
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 13 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# castLabs Electron v7.0.0-beta.5 for Content Security
# castLabs Electron v7.0.0-beta.6 for Content Security

Check out the [Wiki](https://github.com/castlabs/electron-releases/wiki) for general news and other updates.

Expand All @@ -12,7 +12,7 @@ The provided builds are VMP-signed for development use, i.e. using Widevine UAT

The sections below will describe the additions to the Electron APIs, for anything else refer to the regular Electron documentation:

[Electron README](https://github.com/electron/electron/blob/v7.0.0-beta.5/README.md)
[Electron README](https://github.com/electron/electron/blob/v7.0.0-beta.6/README.md)

> **NOTE**: The section about Widevine DRM in the regular Electron documentation does not apply to this fork of Electron since the Widevine components are now automatically installed and configured.
Expand All @@ -30,11 +30,11 @@ becomes:

```
"dependencies": {
"electron": "https://github.com/castlabs/electron-releases#v7.0.0-wvvmp-beta.5"
"electron": "https://github.com/castlabs/electron-releases#v7.0.0-wvvmp-beta.6"
}
```

The `#v7.0.0-wvvmp-beta.5` part of the URL references a specific release tag for Electron for Content Security, if it is left out the master branch will be tracked instead.
The `#v7.0.0-wvvmp-beta.6` part of the URL references a specific release tag for Electron for Content Security, if it is left out the master branch will be tracked instead.

## Migrating from an earlier castLabs Electron for Content Security release

Expand Down Expand Up @@ -66,7 +66,7 @@ Widevine CDM verification/installation/update is normally automatically triggere
### `app.verifyWidevineCdm([options])`

* `options` Object (optional)
* `session` [Session](https://github.com/electron/electron/blob/v7.0.0-beta.5/docs/api/session.md) (optional)
* `session` [Session](https://github.com/electron/electron/blob/v7.0.0-beta.6/docs/api/session.md) (optional)
* `disableUpdate` boolean (optional)

Initiates asynchronous Widevine CDM verify/install/update procedure and returns no value. Once initiated Widevine related events will be emitted as necessary, namely `widevine-ready`, `widevine-update-pending` & `widevine-error`. Unless the `no-verify-widevine-cdm` command line parameter is set this API is automatically triggered on startup and should not be called manually. If customized options are necessary `no-verify-widevine-cdm` should be set and the API call made once, very early, after the app has received the `ready` event (but before loading any media-related content to avoid potentially requiring a restart).
Expand Down
58 changes: 51 additions & 7 deletions electron.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for Electron 7.0.0-beta.5
// Type definitions for Electron 7.0.0-beta.6
// Project: http://electronjs.org/
// Definitions by: The Electron Team <https://github.com/electron/electron>
// Definitions: https://github.com/electron/electron-typescript-definitions
Expand Down Expand Up @@ -3355,9 +3355,12 @@ This cannot be called when `titleBarStyle` is set to `customButtonsOnHover`.
*/
readBuffer(format: string): Buffer;
/**
* The text on the find pasteboard. This method uses synchronous IPC when called
* from the renderer process. The cached value is reread from the find pasteboard
* whenever the application is activated.
* The text on the find pasteboard, which is the pasteboard that holds information
* about the current state of the active application’s find panel.
*
* This method uses synchronous IPC when called from the renderer process. The
* cached value is reread from the find pasteboard whenever the application is
* activated.
*
* @platform darwin
*/
Expand Down Expand Up @@ -3399,8 +3402,10 @@ This cannot be called when `titleBarStyle` is set to `customButtonsOnHover`.
*/
writeBuffer(format: string, buffer: Buffer, type?: 'selection' | 'clipboard'): void;
/**
* Writes the `text` into the find pasteboard as plain text. This method uses
* synchronous IPC when called from the renderer process.
* Writes the `text` into the find pasteboard (the pasteboard that holds
* information about the current state of the active application’s find panel) as
* plain text. This method uses synchronous IPC when called from the renderer
* process.
*
* @platform darwin
*/
Expand Down Expand Up @@ -5356,7 +5361,8 @@ Please note that this property only has an effect on macOS.
removeListener(event: 'updated', listener: Function): this;
/**
* A `Boolean` for if the OS / Chromium currently has a dark mode enabled or is
* being instructed to show a dark-style UI.
* being instructed to show a dark-style UI. If you want to modify this value you
* should use `themeSource` below.
*
*/
readonly shouldUseDarkColors: boolean;
Expand All @@ -5374,6 +5380,44 @@ Please note that this property only has an effect on macOS.
* @platform darwin,win32
*/
readonly shouldUseInvertedColorScheme: boolean;
/**
* A `String` property that can be `system`, `light` or `dark`. It is used to
* override and supercede the value that Chromium has chosen to use internally.
*
* Setting this property to `system` will remove the override and everything will
* be reset to the OS default. By default `themeSource` is `system`.
*
* Settings this property to `dark` will have the following effects:
*
* * `nativeTheme.shouldUseDarkColors` will be `true` when accessed
* * Any UI Electron renders on Linux and Windows including context menus,
* devtools, etc. will use the dark UI.
* * Any UI the OS renders on macOS including menus, window frames, etc. will use
* the dark UI.
* * The `prefers-color-scheme` CSS query will match `dark` mode.
* * The `updated` event will be emitted
*
* Settings this property to `light` will have the following effects:
*
* * `nativeTheme.shouldUseDarkColors` will be `false` when accessed
* * Any UI Electron renders on Linux and Windows including context menus,
* devtools, etc. will use the light UI.
* * Any UI the OS renders on macOS including menus, window frames, etc. will use
* the light UI.
* * The `prefers-color-scheme` CSS query will match `light` mode.
* * The `updated` event will be emitted
*
* The usage of this property should align with a classic "dark mode" state machine
* in your application where the user has three options.
*
* * `Follow OS` --> `themeSource = 'system'`
* * `Dark Mode` --> `themeSource = 'dark'`
* * `Light Mode` --> `themeSource = 'light'`
*
* Your application should then always use `shouldUseDarkColors` to determine what
* CSS to apply.
*/
themeSource: ('system' | 'light' | 'dark');
}

interface Net {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"node": ">= 8.6"
},
"name": "electron",
"version": "7.0.0-wvvmp-beta.5",
"version": "7.0.0-wvvmp-beta.6",
"repository": "https://github.com/castlabs/electron-releases",
"description": "Build cross platform desktop apps with JavaScript, HTML, CSS, and Widevine DRM protection",
"license": "MIT",
Expand Down

0 comments on commit 41a3c2e

Please sign in to comment.