├── script ├── lib │ └── __init__.py ├── eslintrc-spec.json ├── chrome_version.h.in ├── clean.py ├── pylint.py ├── eslintrc-base.json ├── eslint.py ├── test.py ├── start.py ├── upload-index-json.py ├── build.py └── upload-windows-pdb.py ├── 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 │ │ ├── preload.js │ │ ├── ping.js │ │ ├── original-fs.js │ │ ├── process_args.js │ │ ├── asar.js │ │ ├── call.js │ │ ├── promise.js │ │ ├── runas.js │ │ ├── create_socket.js │ │ ├── print_name.js │ │ ├── send-later.js │ │ ├── preload-ipc.js │ │ ├── preload-node-off.js │ │ ├── locale-compare.js │ │ ├── set-immediate.js │ │ └── fork_ping.js │ ├── pages │ │ ├── save_page │ │ │ ├── test.css │ │ │ ├── test.js │ │ │ └── index.html │ │ ├── fullscreen.html │ │ ├── base-page.html │ │ ├── audio.html │ │ ├── b.html │ │ ├── theme-color.html │ │ ├── will-navigate.html │ │ ├── partition │ │ │ └── one.html │ │ ├── referrer.html │ │ ├── useragent.html │ │ ├── window-open.html │ │ ├── e.html │ │ ├── window-opener-node.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 │ │ ├── webview-did-navigate-in-page-with-hash.html │ │ ├── webview-did-navigate-in-page-with-history.html │ │ ├── native-module.html │ │ ├── onkeyup.html │ │ ├── onmouseup.html │ │ ├── window-open-size.html │ │ ├── close.html │ │ ├── history.html │ │ ├── window-open-hide.html │ │ ├── webview-will-navigate.html │ │ ├── a.html │ │ ├── post.html │ │ ├── window-opener.html │ │ ├── dom-ready.html │ │ ├── webview-did-navigate-in-page.html │ │ ├── service-worker │ │ │ ├── service-worker.js │ │ │ └── index.html │ │ ├── beforeunload-false.html │ │ ├── target-name.html │ │ ├── window-open-postMessage.html │ │ ├── basic-auth.html │ │ └── content.html │ ├── zip │ │ └── a.zip │ ├── api │ │ ├── quit-app │ │ │ ├── package.json │ │ │ └── main.js │ │ ├── blank.html │ │ ├── preload.html │ │ ├── send-sync-message.html │ │ ├── unload.html │ │ ├── close.html │ │ ├── beforeunload-false.html │ │ ├── localstorage.html │ │ ├── close-beforeunload-false.html │ │ ├── close-beforeunload-empty-string.html │ │ ├── close-beforeunload-string.html │ │ ├── close-beforeunload-true.html │ │ └── crash.html │ ├── assets │ │ ├── logo.png │ │ ├── tone.wav │ │ └── LICENSE │ └── workers │ │ ├── worker.js │ │ └── shared_worker.js ├── package.json ├── api-web-frame-spec.js ├── api-screen-spec.js ├── api-desktop-capturer-spec.js └── api-auto-updater-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 │ └── browser_process.h │ ├── common │ ├── pref_names.h │ ├── pref_names.cc │ ├── widevine_cdm_constants.cc │ ├── tts_utterance_request.cc │ ├── widevine_cdm_constants.h │ ├── tts_utterance_request.h │ └── widevine_cdm_messages.h │ ├── renderer │ ├── media │ │ └── chrome_key_systems.h │ └── pepper │ │ ├── pepper_helper.h │ │ ├── pepper_helper.cc │ │ ├── chrome_renderer_pepper_host_factory.h │ │ └── pepper_flash_fullscreen_host.h │ └── utility │ └── utility_message_handler.h ├── atom ├── common │ ├── api │ │ ├── lib │ │ │ ├── shell.js │ │ │ ├── native-image.js │ │ │ └── clipboard.js │ │ ├── locker.cc │ │ ├── atom_api_native_image_mac.mm │ │ ├── locker.h │ │ ├── atom_api_shell.cc │ │ ├── atom_bindings.h │ │ ├── event_emitter_caller.cc │ │ ├── atom_api_id_weak_map.h │ │ └── object_life_monitor.h │ ├── atom_constants.cc │ ├── draggable_region.cc │ ├── google_api_key.h │ ├── atom_constants.h │ ├── common_message_generator.h │ ├── linux │ │ └── application_info.cc │ ├── chrome_version.h │ ├── crash_reporter │ │ └── win │ │ │ └── crash_service_main.h │ ├── draggable_region.h │ ├── resources │ │ └── mac │ │ │ └── Info.plist │ ├── native_mate_converters │ │ ├── accelerator_converter.cc │ │ ├── accelerator_converter.h │ │ ├── image_converter.h │ │ ├── gurl_converter.h │ │ ├── value_converter.h │ │ └── file_path_converter.h │ ├── node_bindings_win.h │ ├── keyboard_util.h │ ├── lib │ │ ├── asar_init.js │ │ └── reset-search-paths.js │ ├── atom_command_line.cc │ ├── node_bindings_mac.h │ ├── node_bindings_linux.h │ ├── asar │ │ └── asar_util.h │ ├── atom_command_line.h │ ├── platform_util.h │ ├── common_message_generator.cc │ └── node_includes.h ├── renderer │ ├── api │ │ └── lib │ │ │ ├── screen.js │ │ │ ├── web-frame.js │ │ │ ├── ipc-renderer.js │ │ │ ├── exports │ │ │ └── electron.js │ │ │ └── ipc.js │ ├── lib │ │ ├── chrome-api.js │ │ └── web-view │ │ │ └── web-view-constants.js │ ├── node_array_buffer_bridge.h │ └── resources │ │ └── mac │ │ └── Info.plist ├── browser │ ├── api │ │ ├── lib │ │ │ ├── content-tracing.js │ │ │ ├── ipc-main.js │ │ │ ├── global-shortcut.js │ │ │ ├── power-save-blocker.js │ │ │ ├── screen.js │ │ │ ├── power-monitor.js │ │ │ ├── auto-updater │ │ │ │ └── auto-updater-native.js │ │ │ ├── ipc.js │ │ │ ├── auto-updater.js │ │ │ ├── tray.js │ │ │ ├── session.js │ │ │ └── protocol.js │ │ ├── atom_api_menu_views.h │ │ ├── atom_api_menu_mac.h │ │ └── atom_api_power_monitor.h │ ├── resources │ │ ├── mac │ │ │ ├── atom.icns │ │ │ └── Info.plist │ │ └── win │ │ │ ├── atom.ico │ │ │ ├── resource.h │ │ │ └── atom.manifest │ ├── default_app │ │ ├── package.json │ │ └── default_app.js │ ├── 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 │ │ └── accelerator_util.h │ ├── mac │ │ ├── atom_application_delegate.h │ │ └── atom_application.h │ ├── auto_updater.cc │ ├── atom_quota_permission_context.cc │ ├── 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 │ ├── web_dialog_helper.h │ ├── atom_javascript_dialog_manager.cc │ ├── atom_resource_dispatcher_host_delegate.h │ ├── browser_linux.cc │ └── atom_browser_main_parts_mac.mm └── app │ ├── atom_main.h │ ├── node_main.h │ ├── atom_library_main.h │ └── atom_content_client.h ├── tools ├── posix │ └── strip.sh ├── atom_source_root.py ├── mac │ └── create-framework-subdir-symlinks.sh ├── win │ └── register_msdia80_dll.js ├── make_locale_paks.py └── js2c.py ├── .gitignore ├── appveyor.yml ├── .travis.yml ├── package.json ├── docs-translations ├── zh-CN │ ├── tutorial │ │ ├── supported-platforms.md │ │ └── debugging-main-process.md │ ├── api │ │ ├── shell.md │ │ └── accelerator.md │ └── development │ │ ├── coding-style.md │ │ └── atom-shell-vs-node-webkit.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 │ │ └── process.md │ └── tutorial │ │ └── supported-platforms.md ├── ko-KR │ ├── api │ │ ├── file-object.md │ │ ├── power-monitor.md │ │ ├── shell.md │ │ ├── accelerator.md │ │ └── environment-variables.md │ ├── tutorial │ │ └── supported-platforms.md │ └── development │ │ └── build-instructions-osx.md ├── pt-BR │ ├── api │ │ └── shell.md │ └── tutorial │ │ └── supported-platforms.md └── es │ └── tutorial │ └── supported-platforms.md ├── docs ├── api │ ├── power-monitor.md │ ├── file-object.md │ ├── shell.md │ └── accelerator.md └── tutorial │ └── supported-platforms.md ├── .gitmodules └── LICENSE /script/lib/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /atom/common/api/lib/shell.js: -------------------------------------------------------------------------------- 1 | module.exports = process.atomBinding('shell'); 2 | -------------------------------------------------------------------------------- /spec/fixtures/pages/base-page.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | -------------------------------------------------------------------------------- /atom/renderer/api/lib/screen.js: -------------------------------------------------------------------------------- 1 | module.exports = require('electron').remote.screen; 2 | -------------------------------------------------------------------------------- /spec/fixtures/asar/empty.asar: -------------------------------------------------------------------------------- 1 | 4 0 + {"files":{"file1":{"size":0,"offset":"0"}}} -------------------------------------------------------------------------------- /spec/fixtures/pages/audio.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /spec/fixtures/zip/a.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hr/electron/master/spec/fixtures/zip/a.zip -------------------------------------------------------------------------------- /atom/browser/api/lib/content-tracing.js: -------------------------------------------------------------------------------- 1 | module.exports = process.atomBinding('content_tracing'); 2 | -------------------------------------------------------------------------------- /spec/fixtures/api/quit-app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "quit-app", 3 | "main": "main.js" 4 | } 5 | -------------------------------------------------------------------------------- /spec/fixtures/asar/echo.asar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hr/electron/master/spec/fixtures/asar/echo.asar -------------------------------------------------------------------------------- /spec/fixtures/asar/logo.asar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hr/electron/master/spec/fixtures/asar/logo.asar -------------------------------------------------------------------------------- /spec/fixtures/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hr/electron/master/spec/fixtures/assets/logo.png -------------------------------------------------------------------------------- /spec/fixtures/assets/tone.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hr/electron/master/spec/fixtures/assets/tone.wav -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /spec/fixtures/assets/LICENSE: -------------------------------------------------------------------------------- 1 | tone.wav 2 | http://soundbible.com/1815-A-Tone.html 3 | License: Public Domain 4 | -------------------------------------------------------------------------------- /atom/browser/resources/mac/atom.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hr/electron/master/atom/browser/resources/mac/atom.icns -------------------------------------------------------------------------------- /atom/browser/resources/win/atom.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hr/electron/master/atom/browser/resources/win/atom.ico -------------------------------------------------------------------------------- /spec/fixtures/module/ping.js: -------------------------------------------------------------------------------- 1 | process.on('message', function(msg) { 2 | process.send(msg); 3 | process.exit(0); 4 | }); 5 | -------------------------------------------------------------------------------- /atom/browser/api/lib/ipc-main.js: -------------------------------------------------------------------------------- 1 | const EventEmitter = require('events').EventEmitter; 2 | 3 | module.exports = new EventEmitter; 4 | -------------------------------------------------------------------------------- /atom/browser/default_app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "electron", 3 | "productName": "Electron", 4 | "main": "main.js" 5 | } 6 | -------------------------------------------------------------------------------- /spec/fixtures/api/blank.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /spec/fixtures/asar/unpack.asar: -------------------------------------------------------------------------------- 1 | d ` Y {"files":{"a.txt":{"size":2,"unpacked":true},"atom.png":{"size":643183,"unpacked":true}}} -------------------------------------------------------------------------------- /spec/fixtures/module/original-fs.js: -------------------------------------------------------------------------------- 1 | process.on('message', function (msg) { 2 | process.send(typeof require('original-fs')); 3 | }); 4 | -------------------------------------------------------------------------------- /spec/fixtures/module/process_args.js: -------------------------------------------------------------------------------- 1 | process.on('message', function() { 2 | process.send(process.argv); 3 | process.exit(0); 4 | }); 5 | -------------------------------------------------------------------------------- /script/eslintrc-spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "jquery": true, 4 | "mocha": true 5 | }, 6 | "extends": "./eslintrc-base.json" 7 | } 8 | -------------------------------------------------------------------------------- /spec/fixtures/asar/unpack.asar.unpacked/atom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hr/electron/master/spec/fixtures/asar/unpack.asar.unpacked/atom.png -------------------------------------------------------------------------------- /spec/fixtures/module/asar.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs'); 2 | process.on('message', function(file) { 3 | process.send(fs.readFileSync(file).toString()); 4 | }); 5 | -------------------------------------------------------------------------------- /spec/fixtures/module/call.js: -------------------------------------------------------------------------------- 1 | exports.call = function(func) { 2 | return func(); 3 | } 4 | 5 | exports.constructor = function() { 6 | this.test = 'test'; 7 | } 8 | -------------------------------------------------------------------------------- /spec/fixtures/module/promise.js: -------------------------------------------------------------------------------- 1 | exports.twicePromise = function (promise) { 2 | return promise.then(function (value) { 3 | return value * 2; 4 | }); 5 | } 6 | -------------------------------------------------------------------------------- /spec/fixtures/pages/b.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /spec/fixtures/pages/theme-color.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /spec/fixtures/module/runas.js: -------------------------------------------------------------------------------- 1 | process.on('uncaughtException', function(err) { 2 | process.send(err.message); 3 | }); 4 | 5 | require('runas'); 6 | process.send('ok'); 7 | -------------------------------------------------------------------------------- /spec/fixtures/module/create_socket.js: -------------------------------------------------------------------------------- 1 | var net = require('net'); 2 | var server = net.createServer(function() {}); 3 | server.listen(process.argv[2]); 4 | process.exit(0); 5 | -------------------------------------------------------------------------------- /spec/fixtures/module/print_name.js: -------------------------------------------------------------------------------- 1 | exports.print = function(obj) { 2 | return obj.constructor.name; 3 | } 4 | 5 | exports.echo = function(obj) { 6 | return obj; 7 | } 8 | -------------------------------------------------------------------------------- /spec/fixtures/pages/will-navigate.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /spec/fixtures/pages/partition/one.html: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /spec/fixtures/pages/referrer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /atom/browser/api/lib/global-shortcut.js: -------------------------------------------------------------------------------- 1 | var globalShortcut; 2 | 3 | globalShortcut = process.atomBinding('global_shortcut').globalShortcut; 4 | 5 | module.exports = globalShortcut; 6 | -------------------------------------------------------------------------------- /spec/fixtures/module/send-later.js: -------------------------------------------------------------------------------- 1 | var ipcRenderer = require('electron').ipcRenderer; 2 | window.onload = function() { 3 | ipcRenderer.send('answer', typeof window.process); 4 | } 5 | -------------------------------------------------------------------------------- /spec/fixtures/pages/useragent.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 | -------------------------------------------------------------------------------- /atom/browser/api/lib/power-save-blocker.js: -------------------------------------------------------------------------------- 1 | var powerSaveBlocker; 2 | 3 | powerSaveBlocker = process.atomBinding('power_save_blocker').powerSaveBlocker; 4 | 5 | module.exports = powerSaveBlocker; 6 | -------------------------------------------------------------------------------- /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/window-opener-node.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /spec/fixtures/pages/window-opener-postMessage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /spec/fixtures/pages/d.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /spec/fixtures/workers/shared_worker.js: -------------------------------------------------------------------------------- 1 | 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 | -------------------------------------------------------------------------------- /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/pages/ipc-message.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /spec/fixtures/pages/set-global.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /atom/browser/api/lib/screen.js: -------------------------------------------------------------------------------- 1 | const EventEmitter = require('events').EventEmitter; 2 | const screen = process.atomBinding('screen').screen; 3 | 4 | screen.__proto__ = EventEmitter.prototype; 5 | 6 | module.exports = screen; 7 | -------------------------------------------------------------------------------- /spec/fixtures/pages/c.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 | -------------------------------------------------------------------------------- /tools/atom_source_root.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import os 4 | 5 | """Prints the absolute path of the root of atom-shell's source tree. 6 | """ 7 | 8 | 9 | print os.path.abspath(os.path.dirname(os.path.dirname(__file__))) 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /spec/fixtures/module/locale-compare.js: -------------------------------------------------------------------------------- 1 | process.on('message', function (msg) { 2 | process.send([ 3 | 'a'.localeCompare('a'), 4 | 'ä'.localeCompare('z', 'de'), 5 | 'ä'.localeCompare('a', 'sv', { sensitivity: 'base' }), 6 | ]); 7 | }); 8 | -------------------------------------------------------------------------------- /spec/fixtures/pages/webview-did-navigate-in-page-with-hash.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /atom/browser/api/lib/power-monitor.js: -------------------------------------------------------------------------------- 1 | const EventEmitter = require('events').EventEmitter; 2 | const powerMonitor = process.atomBinding('power_monitor').powerMonitor; 3 | 4 | powerMonitor.__proto__ = EventEmitter.prototype; 5 | 6 | module.exports = powerMonitor; 7 | -------------------------------------------------------------------------------- /spec/fixtures/api/preload.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /spec/fixtures/asar/web.asar: -------------------------------------------------------------------------------- 1 | <