├── script ├── lib │ └── __init__.py ├── cibuild.ps1 ├── chrome_version.h.in ├── clean.py ├── pylint.py ├── start.py └── upload-index-json.py ├── .node-version ├── spec ├── fixtures │ ├── asar │ │ ├── file │ │ ├── unpack.asar.unpacked │ │ │ ├── a.txt │ │ │ └── atom.png │ │ ├── empty.asar │ │ ├── echo.asar │ │ ├── logo.asar │ │ ├── unpack.asar │ │ ├── web.asar │ │ ├── script.asar │ │ └── a.asar │ ├── module │ │ ├── id.js │ │ ├── property.js │ │ ├── set-global.js │ │ ├── process-stdout.js │ │ ├── function.js │ │ ├── preload.js │ │ ├── ping.js │ │ ├── original-fs.js │ │ ├── process_args.js │ │ ├── no-prototype.js │ │ ├── asar.js │ │ ├── call.js │ │ ├── promise.js │ │ ├── answer.js │ │ ├── create_socket.js │ │ ├── rejected-promise.js │ │ ├── runas.js │ │ ├── print_name.js │ │ ├── preload-webview.js │ │ ├── send-later.js │ │ ├── preload-ipc.js │ │ ├── preload-node-off.js │ │ ├── locale-compare.js │ │ ├── set-immediate.js │ │ ├── fork_ping.js │ │ └── class.js │ ├── pages │ │ ├── save_page │ │ │ ├── test.css │ │ │ ├── test.js │ │ │ └── index.html │ │ ├── fullscreen.html │ │ ├── base-page.html │ │ ├── audio.html │ │ ├── did-get-response-details.html │ │ ├── webview-no-script.html │ │ ├── webview-zoom-factor.html │ │ ├── webview-visibilitychange.html │ │ ├── theme-color.html │ │ ├── will-navigate.html │ │ ├── partition │ │ │ └── one.html │ │ ├── referrer.html │ │ ├── useragent.html │ │ ├── b.html │ │ ├── ping.html │ │ ├── window-open.html │ │ ├── e.html │ │ ├── process-exit.html │ │ ├── window-opener-postMessage.html │ │ ├── d.html │ │ ├── document-hidden.html │ │ ├── permissions │ │ │ ├── geolocation.html │ │ │ ├── midi.html │ │ │ └── media.html │ │ ├── ipc-message.html │ │ ├── set-global.html │ │ ├── c.html │ │ ├── window-opener-node.html │ │ ├── webview-did-navigate-in-page-with-hash.html │ │ ├── webview-did-navigate-in-page-with-history.html │ │ ├── zoom-factor.html │ │ ├── native-module.html │ │ ├── onkeyup.html │ │ ├── onmouseup.html │ │ ├── web-view-log-process.html │ │ ├── window-open-size.html │ │ ├── close.html │ │ ├── history.html │ │ ├── ping-pong.html │ │ ├── window-open-hide.html │ │ ├── webview-opener-no-node-integration.html │ │ ├── webview-will-navigate.html │ │ ├── a.html │ │ ├── post.html │ │ ├── window-opener.html │ │ ├── dom-ready.html │ │ ├── service-worker │ │ │ ├── service-worker.js │ │ │ └── index.html │ │ ├── webview-did-navigate-in-page.html │ │ ├── beforeunload-false.html │ │ ├── target-name.html │ │ ├── visibilitychange.html │ │ ├── window-open-postMessage.html │ │ ├── window-opener-no-node-integration.html │ │ ├── basic-auth.html │ │ ├── content.html │ │ └── webview-no-node-integration-on-window.html │ ├── api │ │ ├── electron-module-app │ │ │ ├── node_modules │ │ │ │ ├── electron │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ └── foo │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ └── index.html │ │ ├── quit-app │ │ │ ├── package.json │ │ │ └── main.js │ │ ├── blank.html │ │ ├── did-fail-load-iframe.html │ │ ├── preload.html │ │ ├── send-sync-message.html │ │ ├── unload.html │ │ ├── close.html │ │ ├── beforeunload-false.html │ │ ├── localstorage.html │ │ ├── close-beforeunload-undefined.html │ │ ├── close-beforeunload-false.html │ │ ├── close-beforeunload-empty-string.html │ │ └── crash.html │ ├── zip │ │ └── a.zip │ ├── workers │ │ ├── worker.js │ │ └── shared_worker.js │ ├── assets │ │ ├── LICENSE │ │ ├── logo.png │ │ └── tone.wav │ ├── certificates │ │ ├── client.p12 │ │ └── rootCA.pem │ └── devtools-extensions │ │ └── foo │ │ ├── manifest.json │ │ ├── foo.html │ │ └── index.html ├── api-web-frame-spec.js ├── package.json ├── api-screen-spec.js └── api-deprecations-spec.js ├── chromium_src ├── grit │ └── generated_resources.h └── chrome │ ├── browser │ ├── profiles │ │ ├── profile.h │ │ └── profile_io_data.h │ ├── ui │ │ ├── simple_message_box.h │ │ └── browser_dialogs.h │ ├── speech │ │ └── tts_platform.cc │ ├── browser_process.cc │ ├── printing │ │ ├── printing_ui_web_contents_observer.cc │ │ ├── print_view_manager_observer.h │ │ ├── print_job_worker_owner.cc │ │ └── printing_ui_web_contents_observer.h │ └── media │ │ └── desktop_media_list_observer.h │ ├── common │ ├── pref_names.h │ ├── pref_names.cc │ ├── widevine_cdm_constants.cc │ ├── tts_utterance_request.cc │ ├── widevine_cdm_constants.h │ └── tts_utterance_request.h │ ├── renderer │ ├── media │ │ └── chrome_key_systems.h │ └── pepper │ │ ├── pepper_helper.h │ │ ├── chrome_renderer_pepper_host_factory.h │ │ ├── pepper_helper.cc │ │ └── pepper_flash_fullscreen_host.h │ └── utility │ └── utility_message_handler.h ├── ISSUE_TEMPLATE.md ├── lib ├── common │ ├── api │ │ ├── shell.js │ │ ├── native-image.js │ │ ├── clipboard.js │ │ ├── deprecations.js │ │ └── is-promise.js │ └── asar_init.js ├── renderer │ ├── api │ │ ├── screen.js │ │ ├── web-frame.js │ │ ├── exports │ │ │ └── electron.js │ │ └── ipc-renderer.js │ └── web-view │ │ └── web-view-constants.js └── browser │ └── api │ ├── content-tracing.js │ ├── global-shortcut.js │ ├── power-save-blocker.js │ ├── ipc-main.js │ ├── screen.js │ ├── tray.js │ ├── auto-updater.js │ ├── power-monitor.js │ ├── system-preferences.js │ ├── auto-updater │ └── auto-updater-native.js │ ├── protocol.js │ └── session.js ├── tools ├── posix │ └── strip.sh ├── atom_source_root.js ├── get-endianness.js ├── mac │ └── create-framework-subdir-symlinks.sh ├── win │ └── register_msdia80_dll.js ├── make_locale_paks.py ├── js2c.py └── js2asar.py ├── default_app ├── package.json └── default_app.js ├── atom ├── browser │ ├── resources │ │ ├── win │ │ │ ├── atom.ico │ │ │ └── resource.h │ │ └── mac │ │ │ ├── electron.icns │ │ │ └── Info.plist │ ├── ui │ │ ├── accelerator_util_views.cc │ │ ├── win │ │ │ ├── message_handler_delegate.cc │ │ │ ├── message_handler_delegate.h │ │ │ ├── atom_desktop_window_tree_host_win.cc │ │ │ └── atom_desktop_window_tree_host_win.h │ │ ├── tray_icon_win.cc │ │ ├── views │ │ │ ├── native_frame_view.cc │ │ │ ├── win_frame_view.h │ │ │ ├── native_frame_view.h │ │ │ ├── menu_layout.h │ │ │ └── win_frame_view.cc │ │ ├── atom_menu_model.cc │ │ ├── x │ │ │ ├── x_window_utils.h │ │ │ └── window_state_watcher.h │ │ ├── tray_icon_observer.h │ │ └── tray_icon_gtk.h │ ├── mac │ │ ├── atom_application_delegate.h │ │ ├── dict_util.h │ │ └── atom_application.h │ ├── auto_updater.cc │ ├── atom_quota_permission_context.cc │ ├── api │ │ ├── atom_api_menu_views.h │ │ └── atom_api_menu_mac.h │ ├── net │ │ ├── atom_ssl_config_service.h │ │ ├── http_protocol_handler.cc │ │ ├── http_protocol_handler.h │ │ ├── url_request_async_asar_job.h │ │ ├── asar │ │ │ ├── asar_protocol_handler.cc │ │ │ └── asar_protocol_handler.h │ │ └── url_request_string_job.h │ ├── atom_access_token_store.h │ ├── window_list_observer.h │ ├── atom_quota_permission_context.h │ ├── javascript_environment.h │ ├── atom_javascript_dialog_manager.cc │ ├── atom_resource_dispatcher_host_delegate.h │ └── web_dialog_helper.h ├── app │ ├── atom_main.h │ ├── node_main.h │ └── atom_library_main.h ├── common │ ├── draggable_region.cc │ ├── google_api_key.h │ ├── api │ │ ├── locker.cc │ │ ├── atom_api_native_image_mac.mm │ │ ├── remote_object_freer.h │ │ ├── locker.h │ │ ├── object_life_monitor.h │ │ ├── event_emitter_caller.cc │ │ └── atom_bindings.h │ ├── common_message_generator.h │ ├── linux │ │ └── application_info.cc │ ├── chrome_version.h │ ├── color_util.h │ ├── crash_reporter │ │ └── win │ │ │ └── crash_service_main.h │ ├── draggable_region.h │ ├── resources │ │ └── mac │ │ │ └── Info.plist │ ├── keyboard_util.h │ ├── native_mate_converters │ │ ├── accelerator_converter.cc │ │ ├── accelerator_converter.h │ │ ├── image_converter.h │ │ ├── gurl_converter.h │ │ ├── ui_base_types_converter.h │ │ └── value_converter.h │ ├── node_bindings_win.h │ ├── atom_constants.h │ ├── node_bindings_mac.h │ ├── atom_command_line.cc │ ├── node_includes.h │ ├── node_bindings_linux.h │ ├── asar │ │ └── asar_util.h │ ├── atom_command_line.h │ ├── platform_util.h │ ├── common_message_generator.cc │ └── atom_constants.cc ├── node │ ├── osfhandle.cc │ └── osfhandle.h └── renderer │ ├── node_array_buffer_bridge.h │ ├── resources │ └── mac │ │ └── Info.plist │ ├── preferences_manager.cc │ └── preferences_manager.h ├── .gitignore ├── .travis.yml ├── appveyor.yml ├── docs-translations ├── ru-RU │ └── tutorial │ │ └── supported-platforms.md ├── zh-CN │ ├── tutorial │ │ └── supported-platforms.md │ ├── api │ │ ├── file-object.md │ │ ├── power-monitor.md │ │ ├── shell.md │ │ ├── accelerator.md │ │ ├── environment-variables.md │ │ └── process.md │ └── development │ │ ├── coding-style.md │ │ └── build-instructions-osx.md ├── zh-TW │ ├── api │ │ ├── process.md │ │ ├── power-monitor.md │ │ ├── file-object.md │ │ ├── shell.md │ │ └── synopsis.md │ └── tutorial │ │ └── supported-platforms.md ├── jp │ ├── api │ │ ├── power-monitor.md │ │ ├── file-object.md │ │ ├── shell.md │ │ ├── accelerator.md │ │ └── environment-variables.md │ └── tutorial │ │ ├── supported-platforms.md │ │ └── electron-versioning.md ├── ko-KR │ ├── api │ │ ├── power-monitor.md │ │ ├── file-object.md │ │ ├── environment-variables.md │ │ └── shell.md │ ├── tutorial │ │ ├── supported-platforms.md │ │ └── electron-versioning.md │ └── development │ │ └── build-instructions-osx.md ├── tr-TR │ └── api │ │ └── file-object.md ├── pt-BR │ ├── api │ │ └── shell.md │ └── tutorial │ │ └── supported-platforms.md └── es │ └── tutorial │ └── supported-platforms.md ├── docs ├── api │ ├── power-monitor.md │ └── file-object.md └── tutorial │ ├── supported-platforms.md │ └── electron-versioning.md ├── package.json ├── .gitmodules └── LICENSE /script/lib/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.node-version: -------------------------------------------------------------------------------- 1 | v5.10.0 2 | -------------------------------------------------------------------------------- /spec/fixtures/asar/file: -------------------------------------------------------------------------------- 1 | file 2 | -------------------------------------------------------------------------------- /chromium_src/grit/generated_resources.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chromium_src/chrome/browser/profiles/profile.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/fixtures/module/id.js: -------------------------------------------------------------------------------- 1 | exports.id = 1127 2 | -------------------------------------------------------------------------------- /chromium_src/chrome/browser/ui/simple_message_box.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/fixtures/asar/unpack.asar.unpacked/a.txt: -------------------------------------------------------------------------------- 1 | a 2 | -------------------------------------------------------------------------------- /spec/fixtures/pages/save_page/test.css: -------------------------------------------------------------------------------- 1 | h1 { } 2 | -------------------------------------------------------------------------------- /chromium_src/chrome/browser/profiles/profile_io_data.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/fixtures/pages/fullscreen.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /spec/fixtures/pages/save_page/test.js: -------------------------------------------------------------------------------- 1 | // do nothing 2 | -------------------------------------------------------------------------------- /spec/fixtures/module/property.js: -------------------------------------------------------------------------------- 1 | exports.property = 1127 2 | -------------------------------------------------------------------------------- /spec/fixtures/module/set-global.js: -------------------------------------------------------------------------------- 1 | window.test = 'preload' 2 | -------------------------------------------------------------------------------- /ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | * Electron version: 2 | * Operating system: 3 | -------------------------------------------------------------------------------- /spec/fixtures/api/electron-module-app/node_modules/electron/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/common/api/shell.js: -------------------------------------------------------------------------------- 1 | module.exports = process.atomBinding('shell') 2 | -------------------------------------------------------------------------------- /spec/fixtures/module/process-stdout.js: -------------------------------------------------------------------------------- 1 | process.stdout.write('pipes stdio') 2 | -------------------------------------------------------------------------------- /lib/renderer/api/screen.js: -------------------------------------------------------------------------------- 1 | module.exports = require('electron').remote.screen 2 | -------------------------------------------------------------------------------- /spec/fixtures/pages/base-page.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | -------------------------------------------------------------------------------- /lib/common/api/native-image.js: -------------------------------------------------------------------------------- 1 | module.exports = process.atomBinding('native_image') 2 | -------------------------------------------------------------------------------- /spec/fixtures/module/function.js: -------------------------------------------------------------------------------- 1 | exports.aFunction = function () { return 1127 } 2 | -------------------------------------------------------------------------------- /spec/fixtures/asar/empty.asar: -------------------------------------------------------------------------------- 1 | 4 0 + {"files":{"file1":{"size":0,"offset":"0"}}} -------------------------------------------------------------------------------- /spec/fixtures/pages/audio.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /lib/browser/api/content-tracing.js: -------------------------------------------------------------------------------- 1 | module.exports = process.atomBinding('content_tracing') 2 | -------------------------------------------------------------------------------- /spec/fixtures/api/electron-module-app/node_modules/foo/index.js: -------------------------------------------------------------------------------- 1 | exports.bar = function () {} 2 | -------------------------------------------------------------------------------- /spec/fixtures/api/quit-app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "quit-app", 3 | "main": "main.js" 4 | } 5 | -------------------------------------------------------------------------------- /spec/fixtures/zip/a.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/functions/electron/master/spec/fixtures/zip/a.zip -------------------------------------------------------------------------------- /spec/fixtures/module/preload.js: -------------------------------------------------------------------------------- 1 | console.log([typeof require, typeof module, typeof process].join(' ')) 2 | -------------------------------------------------------------------------------- /spec/fixtures/workers/worker.js: -------------------------------------------------------------------------------- 1 | this.onmessage = function (msg) { 2 | this.postMessage(msg.data) 3 | } 4 | -------------------------------------------------------------------------------- /tools/posix/strip.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Ignore errors from strip. 4 | strip "$@" 5 | 6 | exit 0 7 | -------------------------------------------------------------------------------- /lib/browser/api/global-shortcut.js: -------------------------------------------------------------------------------- 1 | module.exports = process.atomBinding('global_shortcut').globalShortcut 2 | -------------------------------------------------------------------------------- /spec/fixtures/asar/echo.asar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/functions/electron/master/spec/fixtures/asar/echo.asar -------------------------------------------------------------------------------- /spec/fixtures/asar/logo.asar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/functions/electron/master/spec/fixtures/asar/logo.asar -------------------------------------------------------------------------------- /spec/fixtures/assets/LICENSE: -------------------------------------------------------------------------------- 1 | tone.wav 2 | http://soundbible.com/1815-A-Tone.html 3 | License: Public Domain 4 | -------------------------------------------------------------------------------- /lib/browser/api/power-save-blocker.js: -------------------------------------------------------------------------------- 1 | module.exports = process.atomBinding('power_save_blocker').powerSaveBlocker 2 | -------------------------------------------------------------------------------- /spec/fixtures/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/functions/electron/master/spec/fixtures/assets/logo.png -------------------------------------------------------------------------------- /spec/fixtures/assets/tone.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/functions/electron/master/spec/fixtures/assets/tone.wav -------------------------------------------------------------------------------- /tools/atom_source_root.js: -------------------------------------------------------------------------------- 1 | var path = require('path') 2 | 3 | console.log(path.resolve(path.dirname(__dirname))) 4 | -------------------------------------------------------------------------------- /default_app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "electron", 3 | "productName": "Electron", 4 | "main": "main.js" 5 | } 6 | -------------------------------------------------------------------------------- /atom/browser/resources/win/atom.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/functions/electron/master/atom/browser/resources/win/atom.ico -------------------------------------------------------------------------------- /lib/browser/api/ipc-main.js: -------------------------------------------------------------------------------- 1 | const EventEmitter = require('events').EventEmitter 2 | 3 | module.exports = new EventEmitter() 4 | -------------------------------------------------------------------------------- /script/cibuild.ps1: -------------------------------------------------------------------------------- 1 | $scriptPath = split-path -parent $MyInvocation.MyCommand.Definition 2 | & python "$scriptPath/cibuild" 3 | -------------------------------------------------------------------------------- /spec/fixtures/api/electron-module-app/node_modules/foo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "foo", 3 | "main": "index.js" 4 | } 5 | -------------------------------------------------------------------------------- /spec/fixtures/module/ping.js: -------------------------------------------------------------------------------- 1 | process.on('message', function (msg) { 2 | process.send(msg) 3 | process.exit(0) 4 | }) 5 | -------------------------------------------------------------------------------- /spec/fixtures/api/blank.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /spec/fixtures/api/did-fail-load-iframe.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /spec/fixtures/certificates/client.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/functions/electron/master/spec/fixtures/certificates/client.p12 -------------------------------------------------------------------------------- /spec/fixtures/module/original-fs.js: -------------------------------------------------------------------------------- 1 | process.on('message', function () { 2 | process.send(typeof require('original-fs')) 3 | }) 4 | -------------------------------------------------------------------------------- /atom/browser/resources/mac/electron.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/functions/electron/master/atom/browser/resources/mac/electron.icns -------------------------------------------------------------------------------- /spec/fixtures/api/electron-module-app/node_modules/electron/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "electron", 3 | "main": "index.js" 4 | } 5 | -------------------------------------------------------------------------------- /spec/fixtures/asar/unpack.asar: -------------------------------------------------------------------------------- 1 | d ` Y {"files":{"a.txt":{"size":2,"unpacked":true},"atom.png":{"size":643183,"unpacked":true}}} -------------------------------------------------------------------------------- /spec/fixtures/module/process_args.js: -------------------------------------------------------------------------------- 1 | process.on('message', function () { 2 | process.send(process.argv) 3 | process.exit(0) 4 | }) 5 | -------------------------------------------------------------------------------- /spec/fixtures/pages/did-get-response-details.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/spec/fixtures/pages/webview-no-script.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/spec/fixtures/pages/ping.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/spec/fixtures/pages/save_page/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/spec/fixtures/pages/window-open.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/spec/fixtures/module/preload-ipc.js:
--------------------------------------------------------------------------------
1 | var ipcRenderer = require('electron').ipcRenderer
2 | ipcRenderer.on('ping', function (event, message) {
3 | ipcRenderer.sendToHost('pong', message)
4 | })
5 |
--------------------------------------------------------------------------------
/spec/fixtures/pages/e.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/spec/fixtures/pages/process-exit.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/spec/fixtures/pages/window-opener-postMessage.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/lib/browser/api/screen.js:
--------------------------------------------------------------------------------
1 | const {EventEmitter} = require('events')
2 | const {screen} = process.atomBinding('screen')
3 |
4 | Object.setPrototypeOf(screen, EventEmitter.prototype)
5 |
6 | module.exports = screen
7 |
--------------------------------------------------------------------------------
/lib/browser/api/tray.js:
--------------------------------------------------------------------------------
1 | const {EventEmitter} = require('events')
2 | const {Tray} = process.atomBinding('tray')
3 |
4 | Object.setPrototypeOf(Tray.prototype, EventEmitter.prototype)
5 |
6 | module.exports = Tray
7 |
--------------------------------------------------------------------------------
/spec/fixtures/pages/d.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/spec/fixtures/pages/document-hidden.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/spec/fixtures/pages/permissions/geolocation.html:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/spec/fixtures/pages/permissions/midi.html:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/spec/fixtures/workers/shared_worker.js:
--------------------------------------------------------------------------------
1 | this.onconnect = function (event) {
2 | var port = event.ports[0]
3 | port.start()
4 | port.onmessage = function (event) {
5 | port.postMessage(event.data)
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/lib/browser/api/auto-updater.js:
--------------------------------------------------------------------------------
1 | if (process.platform === 'win32') {
2 | module.exports = require('./auto-updater/auto-updater-win')
3 | } else {
4 | module.exports = require('./auto-updater/auto-updater-native')
5 | }
6 |
--------------------------------------------------------------------------------
/spec/fixtures/pages/ipc-message.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/spec/fixtures/pages/set-global.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/spec/fixtures/module/preload-node-off.js:
--------------------------------------------------------------------------------
1 | setImmediate(function () {
2 | try {
3 | console.log([typeof process, typeof setImmediate, typeof global].join(' '))
4 | } catch (e) {
5 | console.log(e.message)
6 | }
7 | })
8 |
--------------------------------------------------------------------------------
/spec/fixtures/pages/c.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/tools/get-endianness.js:
--------------------------------------------------------------------------------
1 | var os = require('os')
2 | if (os.endianness) {
3 | console.log(require('os').endianness() === 'BE' ? 'big' : 'little')
4 | } else { // Your Node is rather old, but I don't care.
5 | console.log('little')
6 | }
7 |
--------------------------------------------------------------------------------
/spec/fixtures/module/locale-compare.js:
--------------------------------------------------------------------------------
1 | process.on('message', function () {
2 | process.send([
3 | 'a'.localeCompare('a'),
4 | 'ä'.localeCompare('z', 'de'),
5 | 'ä'.localeCompare('a', 'sv', { sensitivity: 'base' })
6 | ])
7 | })
8 |
--------------------------------------------------------------------------------
/tools/mac/create-framework-subdir-symlinks.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -e
4 |
5 | cd "${BUILT_PRODUCTS_DIR}/${1}.framework"
6 | shift
7 |
8 | while [ ! -z "${1}" ]; do
9 | ln -sf Versions/Current/"${1}" "${1}"
10 | shift
11 | done
12 |
--------------------------------------------------------------------------------
/lib/browser/api/power-monitor.js:
--------------------------------------------------------------------------------
1 | const {EventEmitter} = require('events')
2 | const {powerMonitor} = process.atomBinding('power_monitor')
3 |
4 | Object.setPrototypeOf(powerMonitor, EventEmitter.prototype)
5 |
6 | module.exports = powerMonitor
7 |
--------------------------------------------------------------------------------
/spec/fixtures/pages/window-opener-node.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/spec/fixtures/pages/webview-did-navigate-in-page-with-hash.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/spec/fixtures/api/preload.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/spec/fixtures/asar/web.asar:
--------------------------------------------------------------------------------
1 | <