platform/framework/web/crosswalk-tizen.git
11 years agoShow uncaught exception in message dialog.
Cheng Zhao [Sun, 2 Jun 2013 06:55:47 +0000 (14:55 +0800)]
Show uncaught exception in message dialog.

11 years agoUpdate node binary to v0.10.9.
Cheng Zhao [Sun, 2 Jun 2013 04:25:16 +0000 (12:25 +0800)]
Update node binary to v0.10.9.

11 years agoUpdate to latest chromium and brightray.
Cheng Zhao [Sat, 1 Jun 2013 14:33:40 +0000 (22:33 +0800)]
Update to latest chromium and brightray.

11 years agoAdd process.crash() for both browser and renderer.
Cheng Zhao [Sat, 1 Jun 2013 08:06:29 +0000 (16:06 +0800)]
Add process.crash() for both browser and renderer.

11 years agoAdd crash reporter module (based on Quincy).
Cheng Zhao [Sat, 1 Jun 2013 07:57:37 +0000 (15:57 +0800)]
Add crash reporter module (based on Quincy).

11 years agoBuild with Quincy.
Cheng Zhao [Sat, 1 Jun 2013 06:29:35 +0000 (14:29 +0800)]
Build with Quincy.

11 years agoRollback node to v0.10.5, there is ABI changes in V8.
Cheng Zhao [Fri, 31 May 2013 17:47:58 +0000 (01:47 +0800)]
Rollback node to v0.10.5, there is ABI changes in V8.

11 years agoUpdate node to v0.10.9.
Cheng Zhao [Fri, 31 May 2013 17:10:39 +0000 (01:10 +0800)]
Update node to v0.10.9.

11 years agoDon't emit 'open-file' event for files passed in command line.
Cheng Zhao [Fri, 31 May 2013 02:17:40 +0000 (10:17 +0800)]
Don't emit 'open-file' event for files passed in command line.

Fixes #16.

11 years agoUse - as filename seperator for coffee script files. Fixes #15.
Cheng Zhao [Thu, 30 May 2013 12:16:54 +0000 (20:16 +0800)]
Use - as filename seperator for coffee script files. Fixes #15.

Also clean unused files and wrong file names.

11 years agoAdd app.focus API.
Cheng Zhao [Thu, 30 May 2013 11:24:47 +0000 (19:24 +0800)]
Add app.focus API.

11 years agoEmit 'finish-launching' event when the application has finished launching.
Cheng Zhao [Thu, 30 May 2013 11:12:14 +0000 (19:12 +0800)]
Emit 'finish-launching' event when the application has finished launching.

11 years agoEmit 'open-file' event when OS X is trying to open file with the app.
Cheng Zhao [Thu, 30 May 2013 08:03:10 +0000 (16:03 +0800)]
Emit 'open-file' event when OS X is trying to open file with the app.

11 years agoImprove default page.
Cheng Zhao [Thu, 30 May 2013 07:40:44 +0000 (15:40 +0800)]
Improve default page.

11 years agoAdd BrowserWindow.restart() to restart renderer process.
Cheng Zhao [Tue, 28 May 2013 08:01:44 +0000 (16:01 +0800)]
Add BrowserWindow.restart() to restart renderer process.

11 years agoFocusing on window should also focus on application.
Cheng Zhao [Sat, 25 May 2013 07:08:58 +0000 (15:08 +0800)]
Focusing on window should also focus on application.

11 years agoEnable '+', ',', '-', '.' in accelerators.
Cheng Zhao [Fri, 24 May 2013 12:05:51 +0000 (20:05 +0800)]
Enable '+', ',', '-', '.' in accelerators.

11 years agoEmit 'blur' event at right time.
Cheng Zhao [Fri, 24 May 2013 10:15:27 +0000 (18:15 +0800)]
Emit 'blur' event at right time.

11 years agoAdd app.exit() API to exit with specified exit status.
Cheng Zhao [Fri, 24 May 2013 09:59:11 +0000 (17:59 +0800)]
Add app.exit() API to exit with specified exit status.

11 years agoAdd 'blur' window event.
Cheng Zhao [Fri, 24 May 2013 09:58:39 +0000 (17:58 +0800)]
Add 'blur' window event.

11 years agoAdd BrowserWindow.focusOnWebView and blurWebView.
Cheng Zhao [Fri, 24 May 2013 09:51:15 +0000 (17:51 +0800)]
Add BrowserWindow.focusOnWebView and blurWebView.

11 years agoUse the new way of reporting exception in node context.
Cheng Zhao [Thu, 23 May 2013 05:49:13 +0000 (13:49 +0800)]
Use the new way of reporting exception in node context.

More on this can be found at:
https://github.com/atom/cefode/commit/3c0fc7ad9fa27c7a7c42d3fec4c9f413c88b1835

11 years agoSupport key combinations of over 4 keys. Fixes #12.
Cheng Zhao [Wed, 22 May 2013 06:20:16 +0000 (14:20 +0800)]
Support key combinations of over 4 keys. Fixes #12.

11 years agoForce running uv loop under a handle scope. Fixed #13.
Cheng Zhao [Wed, 22 May 2013 01:13:32 +0000 (09:13 +0800)]
Force running uv loop under a handle scope. Fixed #13.

11 years agoRewrite dialog API with our simpler blocking dialog implementations.
Cheng Zhao [Mon, 20 May 2013 13:46:43 +0000 (21:46 +0800)]
Rewrite dialog API with our simpler blocking dialog implementations.

Fixed #9, fixed #10.

11 years agoErase window from weak map immediately after it's destroyed.
Cheng Zhao [Mon, 20 May 2013 06:55:46 +0000 (14:55 +0800)]
Erase window from weak map immediately after it's destroyed.

Otherwise it could happend that developers accessed the window after
it's destroyed but before it's GCed.

11 years agodialog.showMessageBox doesn't require window as parameter any more.
Cheng Zhao [Sat, 18 May 2013 02:47:06 +0000 (10:47 +0800)]
dialog.showMessageBox doesn't require window as parameter any more.

11 years agoUse string instead of integer to represent dialog's types.
Cheng Zhao [Sat, 18 May 2013 02:41:43 +0000 (10:41 +0800)]
Use string instead of integer to represent dialog's types.

11 years agoAdd Edit menu.
Cheng Zhao [Sat, 18 May 2013 02:38:56 +0000 (10:38 +0800)]
Add Edit menu.

11 years agoSend message to window directly when passing BrowserWindow for ipc.send.
Cheng Zhao [Fri, 17 May 2013 15:40:37 +0000 (23:40 +0800)]
Send message to window directly when passing BrowserWindow for ipc.send.

11 years agoAdd BrowserWindow.fromProcessIdAndRoutingId API.
Cheng Zhao [Fri, 17 May 2013 13:53:37 +0000 (21:53 +0800)]
Add BrowserWindow.fromProcessIdAndRoutingId API.

11 years agoUpdate node: remove Atom.app/Contents/Resources/app from node paths.
Cheng Zhao [Fri, 17 May 2013 10:30:45 +0000 (18:30 +0800)]
Update node: remove Atom.app/Contents/Resources/app from node paths.

Fixed #6.

11 years agoSimulate the toggleDevTools API.
Cheng Zhao [Fri, 17 May 2013 08:09:12 +0000 (16:09 +0800)]
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.

11 years agoAdd the App.commandLine API to control Chromium's command line.
Cheng Zhao [Fri, 17 May 2013 07:39:44 +0000 (15:39 +0800)]
Add the App.commandLine API to control Chromium's command line.

11 years agoAdd BrowserWindow.getFocusedWindow() API.
Cheng Zhao [Thu, 16 May 2013 15:00:43 +0000 (23:00 +0800)]
Add BrowserWindow.getFocusedWindow() API.

11 years agoAdd BrowserWindow.isFocused() API.
Cheng Zhao [Thu, 16 May 2013 14:56:52 +0000 (22:56 +0800)]
Add BrowserWindow.isFocused() API.

11 years agoAdd Menu.buildFromTemplate API to greatly simplify building menu.
Cheng Zhao [Thu, 16 May 2013 14:43:58 +0000 (22:43 +0800)]
Add Menu.buildFromTemplate API to greatly simplify building menu.

11 years agoMake MenuItem's type default to 'submenu' if it has submenu property.
Cheng Zhao [Thu, 16 May 2013 14:22:33 +0000 (22:22 +0800)]
Make MenuItem's type default to 'submenu' if it has submenu property.

11 years agoAdd 'selector' property for MenuItem, which automatically calls first reponder's...
Cheng Zhao [Thu, 16 May 2013 12:53:10 +0000 (20:53 +0800)]
Add 'selector' property for MenuItem, which automatically calls first reponder's selector.

11 years agoAutomatically convert menu with tile of 'Window' to Window menu in application menu.
Cheng Zhao [Thu, 16 May 2013 12:48:09 +0000 (20:48 +0800)]
Automatically convert menu with tile of 'Window' to Window menu in application menu.

11 years agosetApplicationMenu and sendActionToFirstResponder are Mac only.
Cheng Zhao [Thu, 16 May 2013 12:31:58 +0000 (20:31 +0800)]
setApplicationMenu and sendActionToFirstResponder are Mac only.

11 years agoBuild application menu with the new menu API in default app.
Cheng Zhao [Thu, 16 May 2013 12:29:13 +0000 (20:29 +0800)]
Build application menu with the new menu API in default app.

11 years agoRead menu item's properties in menu's delegate.
Cheng Zhao [Thu, 16 May 2013 12:06:25 +0000 (20:06 +0800)]
Read menu item's properties in menu's delegate.

11 years agoBuild node-webkit style Menu API arounding the delegate-style Menu API.
Cheng Zhao [Thu, 16 May 2013 11:34:23 +0000 (19:34 +0800)]
Build node-webkit style Menu API arounding the delegate-style Menu API.

11 years agoAdd API to SendActionToFirstResponder.
Cheng Zhao [Thu, 16 May 2013 09:25:02 +0000 (17:25 +0800)]
Add API to SendActionToFirstResponder.

It's important to bind application menu items to curtain actions of
first responder, like 'quit', 'minimize', 'copy' etc. This API gives
developers ability to do most of them in javascript.

11 years agoCalling delegate methods should pass command id of menu item.
Cheng Zhao [Thu, 16 May 2013 07:32:37 +0000 (15:32 +0800)]
Calling delegate methods should pass command id of menu item.

11 years agoConvert generic accelerator to platform accelerator.
Cheng Zhao [Thu, 16 May 2013 07:24:18 +0000 (15:24 +0800)]
Convert generic accelerator to platform accelerator.

When creating menus, the accelerators must be converted to platform
accelerators before they can be used.

11 years agoFix titles of submenus in application menu.
Cheng Zhao [Thu, 16 May 2013 06:39:12 +0000 (14:39 +0800)]
Fix titles of submenus in application menu.

11 years agoAdd Menu.setApplicationMenu API to set main menu of NSApp.
Cheng Zhao [Thu, 16 May 2013 02:54:37 +0000 (10:54 +0800)]
Add Menu.setApplicationMenu API to set main menu of NSApp.

11 years agoFix places where Window should be BrowserWindow.
Cheng Zhao [Wed, 15 May 2013 14:17:27 +0000 (22:17 +0800)]
Fix places where Window should be BrowserWindow.

11 years agoAdd 'Reload' in application menu. Fixes atom/atom-shell#4.
Cheng Zhao [Wed, 15 May 2013 12:24:51 +0000 (20:24 +0800)]
Add 'Reload' in application menu. Fixes atom/atom-shell#4.

11 years agoRename 'window' module to 'browser_window' module. Fix #3.
Cheng Zhao [Wed, 15 May 2013 11:19:35 +0000 (19:19 +0800)]
Rename 'window' module to 'browser_window' module. Fix #3.

11 years agoImplement some common web contents overrides.
Cheng Zhao [Wed, 15 May 2013 11:11:30 +0000 (19:11 +0800)]
Implement some common web contents overrides.

11 years agoImplement window.moveTo and window.ResizeTo. Fix #2.
Cheng Zhao [Wed, 15 May 2013 05:56:25 +0000 (13:56 +0800)]
Implement window.moveTo and window.ResizeTo. Fix #2.

11 years agoFix typo in the comment.
Cheng Zhao [Wed, 15 May 2013 05:47:15 +0000 (13:47 +0800)]
Fix typo in the comment.

11 years agoPrevent submenu from getting destroyed bebore the container menu.
Cheng Zhao [Tue, 14 May 2013 14:17:25 +0000 (22:17 +0800)]
Prevent submenu from getting destroyed bebore the container menu.

11 years agoAdd a context menu for the initial default app.
Cheng Zhao [Tue, 14 May 2013 13:39:00 +0000 (21:39 +0800)]
Add a context menu for the initial default app.

11 years agoSet accelerator for menu item by string in delegate.
Cheng Zhao [Tue, 14 May 2013 13:37:59 +0000 (21:37 +0800)]
Set accelerator for menu item by string in delegate.

11 years agoAdd StringToAccelerator to parse a string as an accelerator.
Cheng Zhao [Tue, 14 May 2013 13:12:27 +0000 (21:12 +0800)]
Add StringToAccelerator to parse a string as an accelerator.

11 years agoEmit 'execute' event when menu item is clicked.
Cheng Zhao [Tue, 14 May 2013 12:24:53 +0000 (20:24 +0800)]
Emit 'execute' event when menu item is clicked.

11 years agoImprove error reporting in RPC by printing stack trace.
Cheng Zhao [Tue, 14 May 2013 12:00:44 +0000 (20:00 +0800)]
Improve error reporting in RPC by printing stack trace.

11 years agoExpose Menu's delegate methods in javascript.
Cheng Zhao [Tue, 14 May 2013 11:26:16 +0000 (19:26 +0800)]
Expose Menu's delegate methods in javascript.

11 years agoFix the menu popup on OS X.
Cheng Zhao [Tue, 14 May 2013 11:25:14 +0000 (19:25 +0800)]
Fix the menu popup on OS X.

11 years agoExpose Menu API in javascript.
Cheng Zhao [Tue, 14 May 2013 11:24:52 +0000 (19:24 +0800)]
Expose Menu API in javascript.

11 years agoAdd popup method for Menu.
Cheng Zhao [Tue, 14 May 2013 08:50:56 +0000 (16:50 +0800)]
Add popup method for Menu.

11 years agoUse Atom's icon.
Cheng Zhao [Tue, 14 May 2013 07:50:33 +0000 (15:50 +0800)]
Use Atom's icon.

11 years agoUpdate node: add Atom.app/Contents/Resources/app to module paths.
Cheng Zhao [Mon, 13 May 2013 10:45:17 +0000 (18:45 +0800)]
Update node: add Atom.app/Contents/Resources/app to module paths.

11 years agoIt seems that shutil.make_archive doesn't support symbol links, invoke the zip comman...
Cheng Zhao [Mon, 13 May 2013 08:22:21 +0000 (16:22 +0800)]
It seems that shutil.make_archive doesn't support symbol links, invoke the zip command instead.

11 years agoWhen copying bundle the symbol links should be kept.
Cheng Zhao [Mon, 13 May 2013 07:27:49 +0000 (15:27 +0800)]
When copying bundle the symbol links should be kept.

11 years agoSave the latest version when uploading distribution.
Cheng Zhao [Sun, 12 May 2013 08:52:43 +0000 (16:52 +0800)]
Save the latest version when uploading distribution.

11 years agoUpdate node: cleanup unused hacks.
Cheng Zhao [Sun, 12 May 2013 08:18:12 +0000 (16:18 +0800)]
Update node: cleanup unused hacks.

11 years agoAdd script to download atom-shell.
Cheng Zhao [Sun, 12 May 2013 08:16:52 +0000 (16:16 +0800)]
Add script to download atom-shell.

The scripts are stolen from aroben/libchromiumcontent.

11 years agoAdd script to make distribution and upload.
Cheng Zhao [Sun, 12 May 2013 08:16:02 +0000 (16:16 +0800)]
Add script to make distribution and upload.

The scripts are stolen from aroben/libchromiumcontent.

11 years agoShip the custom node binary build with atom-shell.
Cheng Zhao [Sat, 11 May 2013 13:07:03 +0000 (21:07 +0800)]
Ship the custom node binary build with atom-shell.

This is required by the child_process.fork, which is indeed executing
the node binary to start a script.

The node fork can be found at:
https://github.com/atom/cefode-node/tree/chromium-v8

11 years agoExpose dialog.showMessageBox API.
Cheng Zhao [Fri, 10 May 2013 13:19:13 +0000 (21:19 +0800)]
Expose dialog.showMessageBox API.

11 years ago:lipstick:
Cheng Zhao [Fri, 10 May 2013 12:54:55 +0000 (20:54 +0800)]
:lipstick:

11 years agoModify Window API to be more consistent.
Cheng Zhao [Fri, 10 May 2013 12:34:05 +0000 (20:34 +0800)]
Modify Window API to be more consistent.

* '_' becomes '-'
* removes 'position' field
* adds 'center' method.

11 years agoRename atom module to atom_delegate to avoid conflicts with Atom.
Cheng Zhao [Tue, 7 May 2013 12:33:50 +0000 (20:33 +0800)]
Rename atom module to atom_delegate to avoid conflicts with Atom.

11 years agoMake sure the 'closed' event is emitted before 'window-all-closed'.
Cheng Zhao [Tue, 7 May 2013 08:20:52 +0000 (16:20 +0800)]
Make sure the 'closed' event is emitted before 'window-all-closed'.

11 years agoUpdate to lastest brightray.
Cheng Zhao [Tue, 7 May 2013 04:06:54 +0000 (12:06 +0800)]
Update to lastest brightray.

11 years agoFix whitespace/line_length warnings of cpplint.
Cheng Zhao [Tue, 7 May 2013 03:43:21 +0000 (11:43 +0800)]
Fix whitespace/line_length warnings of cpplint.

11 years agoExpose MenuModel's methods in js.
Cheng Zhao [Mon, 6 May 2013 16:03:34 +0000 (00:03 +0800)]
Expose MenuModel's methods in js.

11 years agoAdd Menu API. (WIP)
Cheng Zhao [Mon, 6 May 2013 12:27:09 +0000 (20:27 +0800)]
Add Menu API. (WIP)

11 years agoPass the native window object directly in native dialog API.
Cheng Zhao [Sun, 5 May 2013 12:36:46 +0000 (20:36 +0800)]
Pass the native window object directly in native dialog API.

11 years agoMake the CallbacksRegistry a separate module, though rather small.
Cheng Zhao [Sun, 5 May 2013 12:30:38 +0000 (20:30 +0800)]
Make the CallbacksRegistry a separate module, though rather small.

11 years agoUse cross-platform callbacks in the dialog API.
Cheng Zhao [Sun, 5 May 2013 12:24:20 +0000 (20:24 +0800)]
Use cross-platform callbacks in the dialog API.

11 years agoDon't send ATOM_BROWSER_DEREFERENCE message if context is already gone.
Cheng Zhao [Sat, 4 May 2013 15:00:57 +0000 (23:00 +0800)]
Don't send ATOM_BROWSER_DEREFERENCE message if context is already gone.

It's possible that the object gets destructed after reloading, however
since we already released all objects in browser when unloading, it
would cause troubles when sending message in an unexist context. We just
rely on the closure to mark whether the context is gone.

A more suitable solution, however, is to restart renderer process when
doing reloading.

11 years agoThe unwrapArgs relies on the valueToMeta function.
Cheng Zhao [Sat, 4 May 2013 14:59:32 +0000 (22:59 +0800)]
The unwrapArgs relies on the valueToMeta function.

11 years agoCheck whether id is valid when adding to weak map.
Cheng Zhao [Sat, 4 May 2013 14:57:17 +0000 (22:57 +0800)]
Check whether id is valid when adding to weak map.

It's possible that the object has been added to weak map before and then
erased, so having an id property doesn't mean it's added in the weak map.

11 years agoClear listeners on process object when unloading.
Cheng Zhao [Sat, 4 May 2013 13:52:14 +0000 (21:52 +0800)]
Clear listeners on process object when unloading.

The process object is created under node context, and it will live
through the reloading, so we are responsible for clearing the listeners
to make sure resources are not leaked.

11 years agoModify funtion's names to make RPC code more easy to understand.
Cheng Zhao [Sat, 4 May 2013 13:38:25 +0000 (21:38 +0800)]
Modify funtion's names to make RPC code more easy to understand.

11 years agoResupport cross-process callback.
Cheng Zhao [Sat, 4 May 2013 09:01:28 +0000 (17:01 +0800)]
Resupport cross-process callback.

It seems that it's avoidable to make callback cross-process when we
start to emitting events for GUI elements, without this feature our
implementation will be much more complicated. I will find a way to warn
about resources leak in browser.

11 years agoPass remote objects from renderer to browser by ID.
Cheng Zhao [Fri, 3 May 2013 13:50:36 +0000 (21:50 +0800)]
Pass remote objects from renderer to browser by ID.

11 years agoCache remote.getCurrentWindow.
Cheng Zhao [Fri, 3 May 2013 13:14:28 +0000 (21:14 +0800)]
Cache remote.getCurrentWindow.

11 years agoAdd the generialized showMessageBox API.
Cheng Zhao [Fri, 3 May 2013 13:03:26 +0000 (21:03 +0800)]
Add the generialized showMessageBox API.

11 years agoAdd dialog API.
Cheng Zhao [Fri, 3 May 2013 11:31:24 +0000 (19:31 +0800)]
Add dialog API.

Supported APIs:
* openFile
* openMultiFiles
* openFolder
* saveAs

Each API is asynchronous and accepts a callback.

11 years agoURL => Url, ID => Id in coffee script.
Cheng Zhao [Fri, 3 May 2013 07:21:41 +0000 (15:21 +0800)]
URL => Url, ID => Id in coffee script.

11 years agoAdd 'quit' and 'window-all-closed' events for app module.
Cheng Zhao [Fri, 3 May 2013 02:53:54 +0000 (10:53 +0800)]
Add 'quit' and 'window-all-closed' events for app module.

11 years agoAdd the 'app' built-in module.
Cheng Zhao [Thu, 2 May 2013 16:05:09 +0000 (00:05 +0800)]
Add the 'app' built-in module.

11 years agoAdd Browser class to controll when the application should quit.
Cheng Zhao [Thu, 2 May 2013 15:43:23 +0000 (23:43 +0800)]
Add Browser class to controll when the application should quit.