Cheng Zhao
5250871e69
Remove unneeded HandleScopes.
...
It's not necessary to create HandleScope in v8 native binding functions,
because it's guarrenteed that the there is a upper HandleScope when the
native function is called. So unless we are urgent to free the handles,
not using HandleScope in native binding functions is a cleaner and safer
choice.
2014-01-27 15:01:06 +08:00
Cheng Zhao
931182b677
Fix crash when calling dialog's callback.
2014-01-14 14:18:32 +08:00
Cheng Zhao
409a431892
Huge commit to use new V8 and Content APIs.
...
Still got a lots of linking errors!
2013-12-11 15:48:19 +08:00
Cheng Zhao
d82cfc023f
💄 There should be no space between & and type name.
2013-12-10 14:27:25 +08:00
Cheng Zhao
02d14ed23b
Fix returning the chosen option for synchronous dialogs.
2013-11-29 15:19:00 +08:00
Cheng Zhao
8fdd3b3044
Use FromV8Arguments in atom_api_dialog.cc.
2013-09-23 22:52:48 +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
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
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
97bf979b22
Move file_dialog and message_box to browser/ui.
2013-08-13 16:51:47 +08:00
Cheng Zhao
dfbbaa9efb
Allow showing message dialog as sheet.
2013-06-07 15:59:12 +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
5915591592
Pass the native window object directly in native dialog API.
2013-05-05 20:36:46 +08:00
Cheng Zhao
ec43f740a7
Add the generialized showMessageBox API.
2013-05-03 21:03:26 +08:00