`options` Object, properties:
-* `width` Integer **required** - Window's width.
-* `height` Integer **required** - Window's height.
+* `width` Integer (**required**) - Window's width.
+* `height` Integer (**required**) - Window's height.
* `x` Integer - Window's left offset from screen.
* `y` Integer - Window's top offset from screen.
* `use-content-size` Boolean - The `width` and `height` would be used as web
Returns a boolean, whether the window is in fullscreen mode.
-### `win.setAspectRatio(aspectRatio[, extraSize])`
+### `win.setAspectRatio(aspectRatio[, extraSize])` _OS X_
* `aspectRatio` The aspect ratio we want to maintain for some portion of the
content view.
-* `rect` Object - The extra size to not be included in the aspect ratio to be
-maintained. Properties:
+* `extraSize` Object (optional) - The extra size not to be included while
+maintaining the aspect ratio. Properties:
* `width` Integer
* `height` Integer
### `win.openDevTools([options])`
-* `options` Object, optional. Properties:
+* `options` Object (optional). Properties:
* `detach` Boolean - opens devtools in a new window
Opens the developer tools.
### `win.capturePage([rect, ]callback)`
-* `rect` Object - The area of page to be captured, properties:
+* `rect` Object (optional)- The area of page to be captured, properties:
* `x` Integer
* `y` Integer
* `width` Integer
### `session.clearStorageData([options, ]callback)`
-* `options` Object
+* `options` Object (optional)
* `origin` String - Should follow `window.location.origin`’s representation
`scheme://host:port`
* `storages` Array - The types of storages to clear, can contain:
### `webContents.loadUrl(url[, options])`
* `url` URL
-* `options` Object, properties:
+* `options` Object (optional). Properties:
* `httpReferrer` String - A HTTP Referrer url
* `userAgent` String - A user agent originating the request
### `webContents.executeJavaScript(code[, userGesture])`
* `code` String
-* `userGesture` Boolean
+* `userGesture` Boolean (optional)
Evaluates `code` in page.
### `webContents.print([options])`
-`options` Object, properties:
+`options` Object (optional). Properties:
* `silent` Boolean - Don't ask user for print settings, defaults to `false`
* `printBackground` Boolean - Also prints the background color and image of
### `webContents.send(channel[, args...])`
* `channel` String
+* `args...` (optional)
-Send `args..` to the web page via `channel` in an asynchronous message, the web
+Send `args...` to the web page via `channel` in an asynchronous message, the web
page can handle it by listening to the `channel` event of the `ipc` module.
An example of sending messages from the main process to the renderer process: