Cheng Zhao
93f1a3dbd5
Make app.setApplicationMenu an alias to Menu.setApplicationMenu.
2013-10-05 13:46:48 +08:00
Cheng Zhao
666f6b3a01
Add app.getBrowserWindows() API.
2013-10-05 13:13:04 +08:00
Cheng Zhao
587484a5d0
Make sure application menu always get referenced.
2013-10-05 12:56:30 +08:00
Cheng Zhao
5a6ff0f80d
win: Add BrowserWindow.setMenu API.
2013-10-02 21:24:21 +08:00
Cheng Zhao
14de58a6b7
Calling asynchronous functions in renderer now doesn't block browser.
2013-09-24 18:01:12 +08:00
Cheng Zhao
30ca085fd8
Make dialog.showSaveDialog accept no parent window.
2013-09-23 19:59:00 +08:00
Cheng Zhao
c95cfc9540
Make dialog.showOpenDialog accept callback.
2013-09-23 19:23:49 +08:00
Cheng Zhao
f444e9dc74
💄 CoffeeScript is cute.
2013-09-23 16:51:00 +08:00
Cheng Zhao
76ac8f2719
Enable taking window as parameter in dialog.showOpenDialog.
2013-09-23 16:36:33 +08:00
Cheng Zhao
85d6588661
Make dialog.showMessageBox asynchronous.
2013-09-23 14:29:55 +08:00
Cheng Zhao
1e4762ce92
Do not store the event.returnValue.
2013-09-22 10:03:47 +08:00
Cheng Zhao
d443b36446
Send reply for sync messages when event.returnValue is set.
2013-09-22 09:52:58 +08:00
Cheng Zhao
ef5a4b5fe0
Pass synchronous messages by JSON string.
...
We are going to use IPC_MESSAGE_HANDLER_DELAY_REPLY to handle
synchronous messages but DictionaryValue is not copyable, so we pass the
JSON string instead.
2013-09-20 22:32:59 +08:00
Cheng Zhao
261f50701a
Add 'registered' and 'unregistered' events for protocol module.
...
This is only used for writing specs.
2013-08-29 20:56:25 +08:00
Cheng Zhao
bc4201f911
Make protocol module an EventEmitter.
2013-08-29 20:38:04 +08:00
Cheng Zhao
244d7eaf17
Allow returning file for custom protocol.
2013-08-25 16:06:29 +08:00
Cheng Zhao
1ed77371c0
Enable customing mime type and charset when returning reqeust string job.
2013-08-25 15:07:07 +08:00
Cheng Zhao
0b01e49cd3
💄
2013-08-24 20:21:46 +08:00
Cheng Zhao
b9cbfb8103
Skelecton for the protocol module.
2013-08-24 15:26:10 +08:00
Cheng Zhao
fc3bad0d4f
💄
2013-08-15 17:50:30 +08:00
Cheng Zhao
c700d291e5
Don't overwrite existing fields when build menu from template.
2013-08-15 16:11:25 +08:00
Cheng Zhao
ee2c696577
Make sure all MenuItem's options have a default value.
2013-08-14 21:59:49 +08:00
Cheng Zhao
971b72c2b6
When calling menu item's click callback, pass the item object.
2013-08-14 12:51:47 +08:00
Cheng Zhao
d4a148ea52
The Menu object should store items by its index.
2013-08-14 12:03:37 +08:00
Cheng Zhao
c6f18f095e
Enable to attach extra fields to menu items.
2013-08-14 11:07:44 +08:00
Cheng Zhao
ea1f81aa52
[Mac] Add app.dock.getBadge() API.
2013-08-06 16:39:31 +08:00
Cheng Zhao
b1f88d680b
[Mac] Add API for dock, fixes #46 .
2013-08-06 16:19:56 +08:00
Cheng Zhao
55034be104
Add power-monitor module, fixes #45 .
2013-08-03 16:03:56 +08:00
Cheng Zhao
0c6997b160
Fix passing null as window in dialog.showMessageBox.
2013-06-27 19:33:38 +08:00
Cheng Zhao
7138d3a58d
Add app.getHomeDir() API.
2013-06-19 13:49:58 +08:00
Cheng Zhao
dbaf8860a6
Revert "Make BrowserWindow inheritable. Fixed #23."
...
This reverts commit 5a0aab2e4f
.
2013-06-18 21:40:03 +08:00
Cheng Zhao
3d267e2a9f
Since we support inheritance of native objects, use js to send messages.
2013-06-18 18:47:13 +08:00
Cheng Zhao
5a0aab2e4f
Make BrowserWindow inheritable. Fixed #23 .
2013-06-18 18:35:08 +08:00
Cheng Zhao
dfbbaa9efb
Allow showing message dialog as sheet.
2013-06-07 15:59:12 +08:00
Cheng Zhao
a1dc4b88be
Add 'ready-for-update-on-quit' event for auto-updater.
2013-06-03 21:51:46 +08:00
Cheng Zhao
f435ed8667
Pass continueUpdate callback in the 'will-install-update' event.
2013-06-03 18:27:12 +08:00
Cheng Zhao
1f8fd40195
Add auto-updater module.
2013-06-03 17:59:34 +08:00
Cheng Zhao
cd42fcceb9
Add crash reporter module (based on Quincy).
2013-06-01 15:57:37 +08:00
Cheng Zhao
bb69d99423
Use - as filename seperator for coffee script files. Fixes #15 .
...
Also clean unused files and wrong file names.
2013-05-30 20:21:07 +08:00
Cheng Zhao
9cf890bb61
Add BrowserWindow.restart() to restart renderer process.
2013-05-28 16:22:29 +08:00
Cheng Zhao
2bb33d8b32
Rewrite dialog API with our simpler blocking dialog implementations.
...
Fixed #9 , fixed #10 .
2013-05-20 21:50:54 +08:00
Cheng Zhao
ca1b8ada99
dialog.showMessageBox doesn't require window as parameter any more.
2013-05-18 10:47:06 +08:00
Cheng Zhao
7e11743735
Use string instead of integer to represent dialog's types.
2013-05-18 10:41:43 +08:00
Cheng Zhao
354b0c8e39
Send message to window directly when passing BrowserWindow for ipc.send.
2013-05-17 23:40:37 +08:00
Cheng Zhao
66c35e4517
Add BrowserWindow.fromProcessIdAndRoutingId API.
2013-05-17 21:53:37 +08:00
Cheng Zhao
1fea283d91
Simulate the toggleDevTools API.
...
Currently there is no way to know the devtools's state in brightray, so
we have to record the state manually, fix this after patching brightray.
2013-05-17 16:09:12 +08:00
Cheng Zhao
61bca04dfd
Add the App.commandLine API to control Chromium's command line.
2013-05-17 15:39:44 +08:00
Cheng Zhao
394bf0a8d9
Add BrowserWindow.getFocusedWindow() API.
2013-05-16 23:00:43 +08:00
Cheng Zhao
eec8abf397
Add Menu.buildFromTemplate API to greatly simplify building menu.
2013-05-16 22:43:58 +08:00
Cheng Zhao
e58f115b43
Make MenuItem's type default to 'submenu' if it has submenu property.
2013-05-16 22:22:33 +08:00