Cheng Zhao
53c6d51d56
win: Accept parent window in ShowOpenDialog.
2013-09-24 10:13:43 +08:00
Cheng Zhao
ac76017702
Merge branch 'master' into no-blocking-browser
2013-09-24 10:09:35 +08:00
Cheng Zhao
9927b4bf4c
Merge pull request #93 from atom/file-dialog
...
Implement file dialogs API on Windows
2013-09-23 19:08:00 -07:00
Cheng Zhao
11ca836afc
Use the convient V8 wrapper in all files.
2013-09-24 09:41:54 +08:00
Cheng Zhao
a824c88352
Use same name convention in string16_conversions.
2013-09-23 23:00:58 +08:00
Cheng Zhao
8fdd3b3044
Use FromV8Arguments in atom_api_dialog.cc.
2013-09-23 22:52:48 +08:00
Cheng Zhao
1e5e0194bd
Add convient function for converting args from V8 Arguments.
2013-09-23 22:48:55 +08:00
Cheng Zhao
a0d1a7620c
Put FromV8Value and ToV8Value to a new header.
2013-09-23 21:30:54 +08:00
Cheng Zhao
770a0068a3
Simplify conversions between native types and v8 types.
2013-09-23 21:12:40 +08:00
Cheng Zhao
26f0e49c9a
Make dialog.showSaveDialog accept a callback.
2013-09-23 20:08:49 +08:00
Cheng Zhao
c7637c78d1
mac: Add asynchronous ShowSaveDialog.
2013-09-23 20:08:32 +08:00
Cheng Zhao
30ca085fd8
Make dialog.showSaveDialog accept no parent window.
2013-09-23 19:59:00 +08:00
Cheng Zhao
e824b6c910
💄 Pick duplicate code together.
2013-09-23 19:42:07 +08:00
Cheng Zhao
43b492c641
mac: make ShowSaveDialog accept no parent window.
2013-09-23 19:36:52 +08:00
Cheng Zhao
c95cfc9540
Make dialog.showOpenDialog accept callback.
2013-09-23 19:23:49 +08:00
Cheng Zhao
d3dd2b4332
mac: Add asynchronous ShowOpenDialog.
2013-09-23 19:22:36 +08:00
Cheng Zhao
7e86ee37f3
💄 cpplint.
2013-09-23 17:27:32 +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
a4262bc39d
mac: Make ShowOpenDialog able to be shown as sheet.
2013-09-23 16:27:22 +08:00
Cheng Zhao
85d6588661
Make dialog.showMessageBox asynchronous.
2013-09-23 14:29:55 +08:00
Cheng Zhao
b70722feb6
mac: Implement async ShowMessageBox.
2013-09-22 18:47:00 +08:00
Cheng Zhao
bfe59480e3
Add header for asynchronous version of ShowMessageBox.
2013-09-22 17:11:09 +08:00
Cheng Zhao
68bdad9a23
Add spec for ipc.sendSync.
2013-09-22 12:06:41 +08:00
Cheng Zhao
761b9d22c8
Do not reply sync messages when window is closed.
2013-09-22 10:44:18 +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
ef4b36d621
Use string16 instead of std::string when sending IPC messages.
...
The underlying V8::String is represented in UTF18, by using string16 in
IPC messages we can avoid the overhead of encode conversion.
2013-09-20 22:55:42 +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
07b5039c64
Make sure all sync messages get a return value.
2013-09-20 21:39:07 +08:00
Cheng Zhao
a9c824eba1
Use event.returnValue instead of event.result in atom-shell's code.
...
event.result is still kept for backward compatible.
2013-09-20 21:37:47 +08:00
Cheng Zhao
b225a59a15
Prefer event.returnValue to event.result for sync messages.
2013-09-20 21:37:00 +08:00
Cheng Zhao
50b5272354
Dump v0.4.9.
2013-09-20 18:50:18 +08:00
Cheng Zhao
8879334468
Merge pull request #100 from atom/fix-protocol-crash
...
Fix crash when using protocol module on startup.
2013-09-20 03:49:33 -07:00
Cheng Zhao
2be1145a9e
Guard against using protocol module too early.
2013-09-20 18:45:53 +08:00
Cheng Zhao
e65220adb0
doc: Mention when protocol module is safe to use.
2013-09-20 18:36:16 +08:00
Cheng Zhao
92e157de30
Fix crash when using protocol module on startup.
...
The job factory was not created before any request was sent, so when the
app used the protocol module on startup it would cause a crash.
2013-09-20 18:32:05 +08:00
Cheng Zhao
c908cae72c
Dump v0.4.8.
2013-09-20 16:55:43 +08:00
Cheng Zhao
3f357f184d
Use custom url request getter to setup request job factory.
2013-09-20 16:47:47 +08:00
Cheng Zhao
3fdec5c6e3
win: Implement ShowOpenDialog.
2013-09-19 22:28:18 +08:00
Cheng Zhao
6fced224c7
win: Open dialog and save dialog can have different options.
2013-09-18 22:27:40 +08:00
Cheng Zhao
9ed64548d4
💄 Fix comparing extension.
2013-09-18 22:24:46 +08:00
Cheng Zhao
575fe06f29
win: Append extension to save dialog's result according to the selected filter.
2013-09-18 22:21:28 +08:00
Cheng Zhao
6cb2ece285
win: Make common part of ShowSaveDialog a independet class.
2013-09-18 21:42:14 +08:00
Cheng Zhao
29e071a1ad
win: Rewrite ShowSaveDialog with IFileSaveDialog.
2013-09-18 20:28:56 +08:00
Cheng Zhao
9e9579a858
Remove dialog hack for Windows XP.
2013-09-18 16:19:32 +08:00
Paul Betts
9849844e89
Merge pull request #92 from atom/paulcbetts-patch-1
...
Need PathService on Win32
2013-09-17 13:35:12 -07:00
Paul Betts
c578a2cbc2
Need PathService on Win32
...
This was accidentally left out of 8708d061
2013-09-17 11:53:31 -07:00
Cheng Zhao
583d34b9f7
Dump v0.4.7.
2013-09-13 10:12:02 +08:00
Steve Smith
a2c3690592
Merge pull request #91 from atom/rounded-corner
...
Round whole frame in Frameless mode
2013-09-12 08:43:30 -07:00