platform/framework/web/crosswalk-tizen.git
11 years agoMake dialog.showSaveDialog accept no parent window.
Cheng Zhao [Mon, 23 Sep 2013 11:59:00 +0000 (19:59 +0800)]
Make dialog.showSaveDialog accept no parent window.

11 years ago:lipstick: Pick duplicate code together.
Cheng Zhao [Mon, 23 Sep 2013 11:42:07 +0000 (19:42 +0800)]
:lipstick: Pick duplicate code together.

11 years agomac: make ShowSaveDialog accept no parent window.
Cheng Zhao [Mon, 23 Sep 2013 11:36:52 +0000 (19:36 +0800)]
mac: make ShowSaveDialog accept no parent window.

11 years agoMake dialog.showOpenDialog accept callback.
Cheng Zhao [Mon, 23 Sep 2013 11:23:49 +0000 (19:23 +0800)]
Make dialog.showOpenDialog accept callback.

11 years agomac: Add asynchronous ShowOpenDialog.
Cheng Zhao [Mon, 23 Sep 2013 11:22:36 +0000 (19:22 +0800)]
mac: Add asynchronous ShowOpenDialog.

11 years ago:lipstick: cpplint.
Cheng Zhao [Mon, 23 Sep 2013 09:27:32 +0000 (17:27 +0800)]
:lipstick: cpplint.

11 years ago:lipstick: CoffeeScript is cute.
Cheng Zhao [Mon, 23 Sep 2013 08:51:00 +0000 (16:51 +0800)]
:lipstick: CoffeeScript is cute.

11 years agoEnable taking window as parameter in dialog.showOpenDialog.
Cheng Zhao [Mon, 23 Sep 2013 08:36:33 +0000 (16:36 +0800)]
Enable taking window as parameter in dialog.showOpenDialog.

11 years agomac: Make ShowOpenDialog able to be shown as sheet.
Cheng Zhao [Mon, 23 Sep 2013 08:27:22 +0000 (16:27 +0800)]
mac: Make ShowOpenDialog able to be shown as sheet.

11 years agoMake dialog.showMessageBox asynchronous.
Cheng Zhao [Mon, 23 Sep 2013 06:29:55 +0000 (14:29 +0800)]
Make dialog.showMessageBox asynchronous.

11 years agomac: Implement async ShowMessageBox.
Cheng Zhao [Sun, 22 Sep 2013 10:47:00 +0000 (18:47 +0800)]
mac: Implement async ShowMessageBox.

11 years agoAdd header for asynchronous version of ShowMessageBox.
Cheng Zhao [Sun, 22 Sep 2013 09:11:09 +0000 (17:11 +0800)]
Add header for asynchronous version of ShowMessageBox.

11 years agoAdd spec for ipc.sendSync.
Cheng Zhao [Sun, 22 Sep 2013 04:06:41 +0000 (12:06 +0800)]
Add spec for ipc.sendSync.

11 years agoDo not reply sync messages when window is closed.
Cheng Zhao [Sun, 22 Sep 2013 02:43:54 +0000 (10:43 +0800)]
Do not reply sync messages when window is closed.

11 years agoDo not store the event.returnValue.
Cheng Zhao [Sun, 22 Sep 2013 02:03:47 +0000 (10:03 +0800)]
Do not store the event.returnValue.

11 years agoSend reply for sync messages when event.returnValue is set.
Cheng Zhao [Sun, 22 Sep 2013 01:52:58 +0000 (09:52 +0800)]
Send reply for sync messages when event.returnValue is set.

11 years agoUse string16 instead of std::string when sending IPC messages.
Cheng Zhao [Fri, 20 Sep 2013 14:55:42 +0000 (22:55 +0800)]
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.

11 years agoPass synchronous messages by JSON string.
Cheng Zhao [Fri, 20 Sep 2013 14:32:59 +0000 (22:32 +0800)]
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.

11 years agoMake sure all sync messages get a return value.
Cheng Zhao [Fri, 20 Sep 2013 13:39:07 +0000 (21:39 +0800)]
Make sure all sync messages get a return value.

11 years agoUse event.returnValue instead of event.result in atom-shell's code.
Cheng Zhao [Fri, 20 Sep 2013 13:37:47 +0000 (21:37 +0800)]
Use event.returnValue instead of event.result in atom-shell's code.

event.result is still kept for backward compatible.

11 years agoPrefer event.returnValue to event.result for sync messages.
Cheng Zhao [Fri, 20 Sep 2013 13:24:04 +0000 (21:24 +0800)]
Prefer event.returnValue to event.result for sync messages.

11 years agoDump v0.4.9.
Cheng Zhao [Fri, 20 Sep 2013 10:50:18 +0000 (18:50 +0800)]
Dump v0.4.9.

11 years agoMerge pull request #100 from atom/fix-protocol-crash
Cheng Zhao [Fri, 20 Sep 2013 10:49:33 +0000 (03:49 -0700)]
Merge pull request #100 from atom/fix-protocol-crash

Fix crash when using protocol module on startup.

11 years agoGuard against using protocol module too early.
Cheng Zhao [Fri, 20 Sep 2013 10:45:53 +0000 (18:45 +0800)]
Guard against using protocol module too early.

11 years agodoc: Mention when protocol module is safe to use.
Cheng Zhao [Fri, 20 Sep 2013 10:36:16 +0000 (18:36 +0800)]
doc: Mention when protocol module is safe to use.

11 years agoFix crash when using protocol module on startup.
Cheng Zhao [Fri, 20 Sep 2013 10:32:05 +0000 (18:32 +0800)]
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.

11 years agoDump v0.4.8.
Cheng Zhao [Fri, 20 Sep 2013 08:55:43 +0000 (16:55 +0800)]
Dump v0.4.8.

11 years agoUse custom url request getter to setup request job factory.
Cheng Zhao [Fri, 20 Sep 2013 08:47:47 +0000 (16:47 +0800)]
Use custom url request getter to setup request job factory.

11 years agoMerge pull request #92 from atom/paulcbetts-patch-1
Paul Betts [Tue, 17 Sep 2013 20:35:12 +0000 (13:35 -0700)]
Merge pull request #92 from atom/paulcbetts-patch-1

Need PathService on Win32

11 years agoNeed PathService on Win32
Paul Betts [Tue, 17 Sep 2013 18:53:31 +0000 (11:53 -0700)]
Need PathService on Win32

This was accidentally left out of 8708d061

11 years agoDump v0.4.7.
Cheng Zhao [Fri, 13 Sep 2013 02:12:02 +0000 (10:12 +0800)]
Dump v0.4.7.

11 years agoMerge pull request #91 from atom/rounded-corner
Steve Smith [Thu, 12 Sep 2013 15:43:30 +0000 (08:43 -0700)]
Merge pull request #91 from atom/rounded-corner

Round whole frame in Frameless mode

11 years agoSkip the whole AtomFramelessWindow.
Steve Smith [Thu, 12 Sep 2013 15:20:38 +0000 (11:20 -0400)]
Skip the whole AtomFramelessWindow.

Just round the web view and set the bounds to the window, not the main
view.

11 years agomac: Force using "Atom" as application name in framework bundle path.
Cheng Zhao [Thu, 12 Sep 2013 09:51:45 +0000 (17:51 +0800)]
mac: Force using "Atom" as application name in framework bundle path.

11 years agomac: Makes sure MainMenu.nib is alwasys loaded from Atom.framework.
Cheng Zhao [Thu, 12 Sep 2013 09:16:33 +0000 (17:16 +0800)]
mac: Makes sure MainMenu.nib is alwasys loaded from Atom.framework.

11 years agoDump v0.4.6.
Cheng Zhao [Thu, 12 Sep 2013 08:10:11 +0000 (16:10 +0800)]
Dump v0.4.6.

11 years agomac: Always use "Atom" as name when find helper process. Fixes #89.
Cheng Zhao [Thu, 12 Sep 2013 07:42:36 +0000 (15:42 +0800)]
mac: Always use "Atom" as name when find helper process. Fixes #89.

11 years agoRemove code which are used for borderless window.
Cheng Zhao [Thu, 12 Sep 2013 07:13:56 +0000 (15:13 +0800)]
Remove code which are used for borderless window.

11 years ago:lipstick: Fix cpplint warnings.
Cheng Zhao [Thu, 12 Sep 2013 05:00:28 +0000 (13:00 +0800)]
:lipstick: Fix cpplint warnings.

11 years agoJust round the top also and use a standard window.
Steve Smith [Thu, 12 Sep 2013 02:02:42 +0000 (22:02 -0400)]
Just round the top also and use a standard window.

Using borderless window causes too many issues. Smaller, less
window-like shadows being the most annoying.

11 years agoFix view autoresizing.
Steve Smith [Wed, 11 Sep 2013 21:25:42 +0000 (17:25 -0400)]
Fix view autoresizing.

11 years agoGet radius working with frameless window.
Steve Smith [Wed, 11 Sep 2013 20:23:17 +0000 (16:23 -0400)]
Get radius working with frameless window.

Right now it's set as a constant `AtomWindowCornerRadius`, but it could
be set to a variable.

11 years agoWIP: rounded corner of frameless window.
Cheng Zhao [Wed, 11 Sep 2013 10:10:28 +0000 (18:10 +0800)]
WIP: rounded corner of frameless window.

11 years agomac: Import chromium's CustomFrameView code.
Cheng Zhao [Wed, 11 Sep 2013 05:46:36 +0000 (13:46 +0800)]
mac: Import chromium's CustomFrameView code.

11 years agoHide the fullscreen button when leaving fullscreen mode. Fixes #88.
Cheng Zhao [Wed, 11 Sep 2013 05:05:08 +0000 (13:05 +0800)]
Hide the fullscreen button when leaving fullscreen mode. Fixes #88.

11 years agodoc: Metion the frameless-window-demo.
Cheng Zhao [Mon, 9 Sep 2013 12:17:47 +0000 (20:17 +0800)]
doc: Metion the frameless-window-demo.

11 years agoDump v0.4.5.
Cheng Zhao [Mon, 9 Sep 2013 08:13:01 +0000 (16:13 +0800)]
Dump v0.4.5.

11 years agodoc: Separate pages into sub directories.
Cheng Zhao [Mon, 9 Sep 2013 07:49:13 +0000 (15:49 +0800)]
doc: Separate pages into sub directories.

11 years agodoc: Add titles for all pages.
Cheng Zhao [Mon, 9 Sep 2013 07:35:57 +0000 (15:35 +0800)]
doc: Add titles for all pages.

11 years ago:lipstick: Remove a mistyped character.
Cheng Zhao [Mon, 9 Sep 2013 07:27:19 +0000 (15:27 +0800)]
:lipstick: Remove a mistyped character.

11 years agoMerge pull request #85 from atom/frameless-window
Cheng Zhao [Mon, 9 Sep 2013 07:24:20 +0000 (00:24 -0700)]
Merge pull request #85 from atom/frameless-window

Add frameless window support, fixes #72.

11 years agodoc: Add titles for browser-window and frameless-window.
Cheng Zhao [Mon, 9 Sep 2013 07:18:53 +0000 (15:18 +0800)]
doc: Add titles for browser-window and frameless-window.

11 years agodoc: Document frameless window.
Cheng Zhao [Mon, 9 Sep 2013 06:52:46 +0000 (14:52 +0800)]
doc: Document frameless window.

11 years agowin: Add NativeWindowFramelessView as non-client view.
Cheng Zhao [Mon, 9 Sep 2013 06:30:07 +0000 (14:30 +0800)]
win: Add NativeWindowFramelessView as non-client view.

11 years agowin: Save draggable region.
Cheng Zhao [Mon, 9 Sep 2013 04:12:17 +0000 (12:12 +0800)]
win: Save draggable region.

11 years agoQuit when all windows are closed if running an app by passing it in command line.
Cheng Zhao [Mon, 9 Sep 2013 02:54:08 +0000 (10:54 +0800)]
Quit when all windows are closed if running an app by passing it in command line.

11 years agoPrint stack when got error on startup.
Cheng Zhao [Mon, 9 Sep 2013 02:49:28 +0000 (10:49 +0800)]
Print stack when got error on startup.

11 years agoMake sure child scripts are quit after specs are done.
Cheng Zhao [Mon, 9 Sep 2013 01:53:08 +0000 (09:53 +0800)]
Make sure child scripts are quit after specs are done.

11 years agoUpdate apm: set both HOME and USERPROFILE in environment under Windows.
Cheng Zhao [Mon, 9 Sep 2013 01:09:58 +0000 (09:09 +0800)]
Update apm: set both HOME and USERPROFILE in environment under Windows.

11 years agoMake sure the cursor doesn't drift away when dragging window.
Cheng Zhao [Fri, 6 Sep 2013 04:12:17 +0000 (12:12 +0800)]
Make sure the cursor doesn't drift away when dragging window.

11 years agoDon't use setMouseDownCanMoveWindow to implement draggable area.
Cheng Zhao [Fri, 6 Sep 2013 03:54:52 +0000 (11:54 +0800)]
Don't use setMouseDownCanMoveWindow to implement draggable area.

It would not work when we have the in-window devtools.

11 years agoImplement frameless window on OS X.
Cheng Zhao [Thu, 5 Sep 2013 15:52:29 +0000 (23:52 +0800)]
Implement frameless window on OS X.

Most of the code came from Chromium's packaged app window.

11 years agoAdd has_frame_ attribute for NativeWindow.
Cheng Zhao [Thu, 5 Sep 2013 13:43:47 +0000 (21:43 +0800)]
Add has_frame_ attribute for NativeWindow.

11 years agoSend and receive the AtomViewHostMsg_UpdateDraggableRegions message.
Cheng Zhao [Thu, 5 Sep 2013 12:06:54 +0000 (20:06 +0800)]
Send and receive the AtomViewHostMsg_UpdateDraggableRegions message.

11 years agoAdd IPC messages and structs for passing draggable regions.
Cheng Zhao [Thu, 5 Sep 2013 11:46:12 +0000 (19:46 +0800)]
Add IPC messages and structs for passing draggable regions.

11 years ago:lipstick: fix the protocol module spec on OS X.
Cheng Zhao [Thu, 5 Sep 2013 10:28:48 +0000 (18:28 +0800)]
:lipstick: fix the protocol module spec on OS X.

11 years agoUpdate apm for node v0.10.18.
Cheng Zhao [Thu, 5 Sep 2013 07:41:44 +0000 (15:41 +0800)]
Update apm for node v0.10.18.

11 years agoDump version to v0.4.4.
Cheng Zhao [Thu, 5 Sep 2013 07:17:05 +0000 (15:17 +0800)]
Dump version to v0.4.4.

11 years agoUpdate node to v0.10.18.
Cheng Zhao [Thu, 5 Sep 2013 07:15:13 +0000 (15:15 +0800)]
Update node to v0.10.18.

11 years agoPass PATH environment in the child_process.fork spec.
Cheng Zhao [Thu, 5 Sep 2013 06:55:22 +0000 (14:55 +0800)]
Pass PATH environment in the child_process.fork spec.

The uv_spawn under Windows requires the PATH environment variable to be
there, otherwise it would throw a 203 system error, it should be a bug
of node.

11 years ago:lipstick: fix spec failure caused by win32 path delimiter.
Cheng Zhao [Thu, 5 Sep 2013 04:24:08 +0000 (12:24 +0800)]
:lipstick: fix spec failure caused by win32 path delimiter.

11 years agoUse base::Environment to replace getenv.
Cheng Zhao [Thu, 5 Sep 2013 04:18:19 +0000 (12:18 +0800)]
Use base::Environment to replace getenv.

11 years agoMerge pull request #84 from atom/nested-fork
Cheng Zhao [Thu, 5 Sep 2013 01:55:20 +0000 (18:55 -0700)]
Merge pull request #84 from atom/nested-fork

Use environment variable to detect whether to run as node.

Fixed # 83.

11 years agoAlso fix nested child_process.fork on Windows.
Cheng Zhao [Thu, 5 Sep 2013 01:49:22 +0000 (09:49 +0800)]
Also fix nested child_process.fork on Windows.

11 years agoMake child_process.fork work when options.env is set.
Cheng Zhao [Thu, 5 Sep 2013 01:47:32 +0000 (09:47 +0800)]
Make child_process.fork work when options.env is set.

11 years agoUse environment variable to detect whether to run as node.
Cheng Zhao [Thu, 5 Sep 2013 01:22:24 +0000 (09:22 +0800)]
Use environment variable to detect whether to run as node.

11 years agoAdd test case for #83.
Cheng Zhao [Thu, 5 Sep 2013 01:21:39 +0000 (09:21 +0800)]
Add test case for #83.

11 years agoMerge pull request #65 from atom/custom-protocol
Cheng Zhao [Wed, 4 Sep 2013 10:33:09 +0000 (03:33 -0700)]
Merge pull request #65 from atom/custom-protocol

Support custom protocols

11 years agoAdd documentation for protocol module.
Cheng Zhao [Tue, 3 Sep 2013 10:22:40 +0000 (18:22 +0800)]
Add documentation for protocol module.

11 years agoEmit erros when getting errors in IO thread.
Cheng Zhao [Tue, 3 Sep 2013 09:21:10 +0000 (17:21 +0800)]
Emit erros when getting errors in IO thread.

11 years agoAdd protocol interceptor API.
Cheng Zhao [Tue, 3 Sep 2013 08:50:10 +0000 (16:50 +0800)]
Add protocol interceptor API.

11 years ago:lipstick: fix reversed flag for updating latest version.
Cheng Zhao [Mon, 2 Sep 2013 10:17:06 +0000 (18:17 +0800)]
:lipstick: fix reversed flag for updating latest version.

11 years agoDump v0.4.3.
Cheng Zhao [Mon, 2 Sep 2013 09:59:17 +0000 (17:59 +0800)]
Dump v0.4.3.

11 years agoUpdate specs to match the documents.
Cheng Zhao [Mon, 2 Sep 2013 08:54:54 +0000 (16:54 +0800)]
Update specs to match the documents.

11 years ago:lipstick: fix the window specs.
Cheng Zhao [Mon, 2 Sep 2013 08:47:53 +0000 (16:47 +0800)]
:lipstick: fix the window specs.

11 years agoUse setTimeout instead of setImmediate in fixtures.
Cheng Zhao [Mon, 2 Sep 2013 08:46:08 +0000 (16:46 +0800)]
Use setTimeout instead of setImmediate in fixtures.

The setImmediate is implemented in node and may have unexpected affects.

11 years agoRevert ":lipstick: for the beforeunload handler."
Cheng Zhao [Mon, 2 Sep 2013 08:39:00 +0000 (16:39 +0800)]
Revert ":lipstick: for the beforeunload handler."

Restore the previous behavior of beforeunload handler.

This reverts commit b1f30c1eb609c8abab2db791cbbf0b01373564b1.

11 years agoAdd specs for the beforeunload handler.
Cheng Zhao [Mon, 2 Sep 2013 08:28:36 +0000 (16:28 +0800)]
Add specs for the beforeunload handler.

11 years agoDump v0.4.2.
Cheng Zhao [Mon, 2 Sep 2013 05:34:58 +0000 (13:34 +0800)]
Dump v0.4.2.

11 years agoMerge pull request #81 from atom/window-native-modules
Cheng Zhao [Mon, 2 Sep 2013 05:31:31 +0000 (22:31 -0700)]
Merge pull request #81 from atom/window-native-modules

Fix node native modules support on Windows

11 years agoUpload a fake empty x64 node.lib.
Cheng Zhao [Mon, 2 Sep 2013 05:27:26 +0000 (13:27 +0800)]
Upload a fake empty x64 node.lib.

We only allow building ia32 build of atom-shell, so the x64 node.lib is
not in use, but it's required by node-gyp.

11 years agoOnly generate node.lib when we need to upload node headers.
Cheng Zhao [Sat, 31 Aug 2013 09:00:13 +0000 (17:00 +0800)]
Only generate node.lib when we need to upload node headers.

11 years agoGenerate node.lib from atom.lib and chromiumcontent.dll.lib.
Cheng Zhao [Sat, 31 Aug 2013 08:37:01 +0000 (16:37 +0800)]
Generate node.lib from atom.lib and chromiumcontent.dll.lib.

11 years agoDon't use the cmd paramter passed by WinMain.
Cheng Zhao [Sat, 31 Aug 2013 07:42:41 +0000 (15:42 +0800)]
Don't use the cmd paramter passed by WinMain.

It doesn't include the argv[0], :shit:.

11 years ago:lipstick: for node version and upload node.lib.
Cheng Zhao [Sat, 31 Aug 2013 07:20:59 +0000 (15:20 +0800)]
:lipstick: for node version and upload node.lib.

11 years agoUse dummy stdin stream on Windows.
Cheng Zhao [Sat, 31 Aug 2013 04:13:08 +0000 (12:13 +0800)]
Use dummy stdin stream on Windows.

11 years agoAlso ship ffmpegsumo.dll in the distribution.
Cheng Zhao [Sat, 31 Aug 2013 03:13:11 +0000 (11:13 +0800)]
Also ship ffmpegsumo.dll in the distribution.

11 years agoUse node's version for the node headers tarball.
Cheng Zhao [Sat, 31 Aug 2013 02:51:53 +0000 (10:51 +0800)]
Use node's version for the node headers tarball.

11 years agoAdd flag for upload script to skip updating version.
Cheng Zhao [Sat, 31 Aug 2013 02:48:47 +0000 (10:48 +0800)]
Add flag for upload script to skip updating version.

When uploading multiple distributions in future, we need to make sure
all distributions have to ben uploaded before triggering the
update-atom-shell script of Atom.

11 years agoDon't require multipart for uploading to S3.
Cheng Zhao [Sat, 31 Aug 2013 02:36:13 +0000 (10:36 +0800)]
Don't require multipart for uploading to S3.

The file we are uploading is not large, and multipart works really bad
on bad networking.