id = BrowserWindow.windows.add this
# Remove the window from weak map immediately when it's destroyed, since we
- # could be iterating windows before GC happended.
+ # could be iterating windows before GC happened.
@once 'closed', ->
BrowserWindow.windows.remove id if BrowserWindow.windows.has id
#include "ipc/ipc_message_macros.h"
// The message starter should be declared in ipc/ipc_message_start.h. Since
-// we don't wan't to patch Chromium, we just pretend to be Content Shell.
+// we don't want to patch Chromium, we just pretend to be Content Shell.
#define IPC_MESSAGE_START ShellMsgStart
## Event: ready
-Emitted when atom-shell has done everything initializaiton.
+Emitted when atom-shell has done everything initialization.
## Event: window-all-closed
<iframe src="http://jandan.net"></iframe>
```
-And in atom-shell, the security limitaion of iframe is stricter than normal
+And in atom-shell, the security limitation of iframe is stricter than normal
browser, by default iframe is sandboxed with all permissions except the
`allow-same-origin`, which means iframe could not access parent's js context.
If you want to enable things like `parent.window.process.exit()` in iframe,
-you should explictly set `sandbox` to `none`:
+you should explicitly set `sandbox` to `none`:
```html
<iframe sandbox="none" src="https://github.com"></iframe>
### Event: 'unresponsive'
-Emiited when the web page becomes unresponsive.
+Emitted when the web page becomes unresponsive.
### Event: 'responsive'
### Event: 'blur'
-Emiited when window loses focus.
+Emitted when window loses focus.
### Class Method: BrowserWindow.getAllWindows()
Force closing the window, the `unload` and `beforeunload` event won't be emitted
for the web page, and `close` event would also not be emitted for this window,
-but it would gurrantee the `closed` event to be emitted.
+but it would guarantee the `closed` event to be emitted.
You should only use this method when the web page has crashed.
# protocol
The `protocol` module can register a new protocol or intercept an existing
-protocol, so you can custom the response to the requests for vairous protocols.
+protocol, so you can custom the response to the requests for various protocols.
An example of implementing a protocol that has the same effect with the
`file://` protocol:
* **app** - System entry code.
* **browser** - The frontend including the main window, UI, and all browser
side things. This talks to the renderer to manage web pages.
- * **lib** - Javascript part of browser sidde initialization code.
+ * **lib** - Javascript part of browser side initialization code.
* **ui** - Implementation of UI stuff for different platforms.
* **cocoa** - Cocoa specific source code.
* **gtk** - GTK+ specific source code.
But you should notice that `apm install module` won't work because it will
install a user package for [Atom Editor](https://github.com/atom/atom) instead.
-## Native Node module compability
+## Native Node module compatibility
Since Node v0.11.x there were vital changes in the V8 API. So generally all native
modules written for Node v0.10.x wouldn't work for Node v0.11.x. Additionally
safe_mkdir, execute
-ATOM_SHELL_VRESION = get_atom_shell_version()
+ATOM_SHELL_VERSION = get_atom_shell_version()
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
DIST_DIR = os.path.join(SOURCE_ROOT, 'dist')
def create_version():
version_path = os.path.join(SOURCE_ROOT, 'dist', 'version')
with open(version_path, 'w') as version_file:
- version_file.write(ATOM_SHELL_VRESION)
+ version_file.write(ATOM_SHELL_VERSION)
def download_libchromiumcontent_symbols(url):
def create_dist_zip():
- dist_name = 'atom-shell-{0}-{1}.zip'.format(ATOM_SHELL_VRESION,
+ dist_name = 'atom-shell-{0}-{1}.zip'.format(ATOM_SHELL_VERSION,
TARGET_PLATFORM)
zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)
def create_symbols_zip():
- dist_name = 'atom-shell-{0}-{1}-symbols.zip'.format(ATOM_SHELL_VRESION,
+ dist_name = 'atom-shell-{0}-{1}-symbols.zip'.format(ATOM_SHELL_VERSION,
TARGET_PLATFORM)
zip_file = os.path.join(SOURCE_ROOT, 'dist', dist_name)
}[sys.platform]
ATOM_SHELL_REPO = 'atom/atom-shell'
-ATOM_SHELL_VRESION = get_atom_shell_version()
+ATOM_SHELL_VERSION = get_atom_shell_version()
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
OUT_DIR = os.path.join(SOURCE_ROOT, 'out', 'Release')
DIST_DIR = os.path.join(SOURCE_ROOT, 'dist')
-DIST_NAME = 'atom-shell-{0}-{1}.zip'.format(ATOM_SHELL_VRESION, TARGET_PLATFORM)
-SYMBOLS_NAME = 'atom-shell-{0}-{1}-symbols.zip'.format(ATOM_SHELL_VRESION,
+DIST_NAME = 'atom-shell-{0}-{1}.zip'.format(ATOM_SHELL_VERSION, TARGET_PLATFORM)
+SYMBOLS_NAME = 'atom-shell-{0}-{1}-symbols.zip'.format(ATOM_SHELL_VERSION,
TARGET_PLATFORM)
execute([sys.executable, create_dist])
build_version = get_atom_shell_build_version()
- if not ATOM_SHELL_VRESION.startswith(build_version):
+ if not ATOM_SHELL_VERSION.startswith(build_version):
error = 'Tag name ({0}) should match build version ({1})\n'.format(
- ATOM_SHELL_VRESION, build_version)
+ ATOM_SHELL_VERSION, build_version)
sys.stderr.write(error)
sys.stderr.flush()
return 1
def parse_args():
parser = argparse.ArgumentParser(description='upload distribution file')
parser.add_argument('-v', '--version', help='Specify the version',
- default=ATOM_SHELL_VRESION)
+ default=ATOM_SHELL_VERSION)
parser.add_argument('-p', '--publish-release',
help='Publish the release',
action='store_true')