Summary: We in React VR were need newer Chrome DevTools version to make our plugin work properly. Chromium version with required fixes were shipped in electron 5.0.0. This diff bumps electron version and explicitly allows node integration (accessing require, process and other node related functions from window object in index.html), because it was disabled by default in 5.0.0. Reviewed By: jknoxville Differential Revision: D15693539 fbshipit-source-id: 4f71a07b2afaa489aec46940c924f4ad30ad0413
64 lines
1.2 KiB
JavaScript
64 lines
1.2 KiB
JavaScript
/**
|
|
* Copyright 2018-present Facebook.
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
* @format
|
|
*/
|
|
|
|
type Electron$MenuRoles =
|
|
| 'undo'
|
|
| 'redo'
|
|
| 'cut'
|
|
| 'copy'
|
|
| 'paste'
|
|
| 'pasteandmatchstyle'
|
|
| 'selectall'
|
|
| 'delete'
|
|
| 'minimize'
|
|
| 'close'
|
|
| 'quit'
|
|
| 'togglefullscreen' // macOS-only
|
|
| 'about'
|
|
| 'hide'
|
|
| 'hideothers'
|
|
| 'unhide'
|
|
| 'front'
|
|
| 'zoom'
|
|
| 'window'
|
|
| 'help'
|
|
| 'services';
|
|
|
|
type Electron$MenuType =
|
|
| 'normal'
|
|
| 'separator'
|
|
| 'submenu'
|
|
| 'checkbox'
|
|
| 'radio';
|
|
|
|
type MenuItemConstructorOptions = {|
|
|
click?: (
|
|
menuItem: Electron$MenuItem,
|
|
browserWindow: Object,
|
|
event: Object,
|
|
) => mixed,
|
|
role?: Electron$MenuRoles,
|
|
type?: Electron$MenuType,
|
|
label?: string,
|
|
sublabel?: string,
|
|
accelerator?: string,
|
|
icon?: Object,
|
|
enabled?: boolean,
|
|
visible?: boolean,
|
|
checked?: boolean,
|
|
submenu?: Array<MenuItemConstructorOptions>,
|
|
id?: string,
|
|
position?: string,
|
|
|};
|
|
|
|
declare class Electron$MenuItem {
|
|
constructor(options: MenuItemConstructorOptions): Electron$MenuItem;
|
|
enabled: boolean;
|
|
visible: boolean;
|
|
checked: boolean;
|
|
}
|