]> khamidou — GitHub mirrors - electron.git/log
electron.git
13 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.

13 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.

13 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.

13 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.

13 years agoAdd _mac suffix for obj-c files.
Cheng Zhao [Thu, 2 May 2013 15:03:14 +0000 (23:03 +0800)]
Add _mac suffix for obj-c files.

13 years agoAdd WindowList class to manage all windows.
Cheng Zhao [Thu, 2 May 2013 14:54:09 +0000 (22:54 +0800)]
Add WindowList class to manage all windows.

13 years agoQuiting the application is now equivalent to close all windows.
Cheng Zhao [Thu, 2 May 2013 12:09:19 +0000 (20:09 +0800)]
Quiting the application is now equivalent to close all windows.

13 years agoMake sure WindowClosed message is sent when window is destroyed.
Cheng Zhao [Thu, 2 May 2013 12:08:23 +0000 (20:08 +0800)]
Make sure WindowClosed message is sent when window is destroyed.

13 years agoAdd 'closed' and 'destroyed' event for Window.
Cheng Zhao [Thu, 2 May 2013 10:19:07 +0000 (18:19 +0800)]
Add 'closed' and 'destroyed' event for Window.

13 years agoCorrectly handle window's lifetime when it's closed.
Cheng Zhao [Wed, 1 May 2013 15:28:01 +0000 (23:28 +0800)]
Correctly handle window's lifetime when it's closed.

13 years agoAdd window closing related methods for window observer.
Cheng Zhao [Wed, 1 May 2013 08:33:19 +0000 (16:33 +0800)]
Add window closing related methods for window observer.

13 years agoSimply the closing model.
Cheng Zhao [Wed, 1 May 2013 08:12:00 +0000 (16:12 +0800)]
Simply the closing model.

13 years agoClosing a window requires closing web contents now.
Cheng Zhao [Wed, 1 May 2013 07:42:30 +0000 (15:42 +0800)]
Closing a window requires closing web contents now.

In this way, we can prevent the close of window by using beforeunload
handler.

13 years agoRelease resources in browser when renderer view is gonna unloaded.
Cheng Zhao [Wed, 1 May 2013 02:59:29 +0000 (10:59 +0800)]
Release resources in browser when renderer view is gonna unloaded.

13 years agoImplement beforeunload event.
Cheng Zhao [Tue, 30 Apr 2013 15:56:50 +0000 (23:56 +0800)]
Implement beforeunload event.

Unlike normal browser which would show a dialog to choose whether to
continue, you can just return a empty string in the handler to prevent
unloading.

13 years agoDrop support for cross-process callbacks.
Cheng Zhao [Tue, 30 Apr 2013 14:37:54 +0000 (22:37 +0800)]
Drop support for cross-process callbacks.

Now it's forbidden for browser to store reference to objects (including
functions) in renderer, because when the renderer is destroyed, it's
extremely hard to clean all of corresponding objects in browser
correctly, which would cause very bad resources leak.

13 years agoEnable getting window from routing id and process id.
Cheng Zhao [Tue, 30 Apr 2013 12:32:23 +0000 (20:32 +0800)]
Enable getting window from routing id and process id.

13 years agoUpdate to newest brightray.
Cheng Zhao [Tue, 30 Apr 2013 10:59:07 +0000 (18:59 +0800)]
Update to newest brightray.

13 years agoAdd API to get any global variable from browser.
Cheng Zhao [Tue, 30 Apr 2013 08:27:14 +0000 (16:27 +0800)]
Add API to get any global variable from browser.

13 years agoAdd Clipboard API.
Cheng Zhao [Tue, 30 Apr 2013 08:10:25 +0000 (16:10 +0800)]
Add Clipboard API.

13 years agoAdd shell.beep() API.
Cheng Zhao [Mon, 29 Apr 2013 14:10:03 +0000 (22:10 +0800)]
Add shell.beep() API.

13 years agoAdd Shell API.
Cheng Zhao [Mon, 29 Apr 2013 13:57:05 +0000 (21:57 +0800)]
Add Shell API.

Include APIs:
shell.showItemInFolder
shell.openItem
shell.openExternal
shell.moveItemToTrash

13 years agoAdd platform_util from Chrome.
Cheng Zhao [Mon, 29 Apr 2013 12:41:11 +0000 (20:41 +0800)]
Add platform_util from Chrome.

The platform_util files just come from chrome/browser/ with slight
modifications so it doesn't depend on grit/generate_resources.h, which
is not availabe in libchromiumcontent because it's generated by chrome's
chrome/app/generated_resources.grd.

13 years agoFix header guard.
Cheng Zhao [Mon, 29 Apr 2013 12:40:59 +0000 (20:40 +0800)]
Fix header guard.

13 years ago:lipstick:
Cheng Zhao [Mon, 29 Apr 2013 11:56:12 +0000 (19:56 +0800)]
:lipstick:

13 years agoAdd vendor/ to .gitignore, so ag won't search it.
Cheng Zhao [Mon, 29 Apr 2013 11:39:05 +0000 (19:39 +0800)]
Add vendor/ to .gitignore, so ag won't search it.

13 years agoAvoid using destoryed native objects in js API.
Cheng Zhao [Mon, 29 Apr 2013 11:38:18 +0000 (19:38 +0800)]
Avoid using destoryed native objects in js API.

13 years agoUniform message names.
Cheng Zhao [Mon, 29 Apr 2013 10:59:34 +0000 (18:59 +0800)]
Uniform message names.

Messages sent to browser should be prefixed with ATOM_BROWSER_, and
messages sent to renderer should be prefixed with ATOM_RENDERER_.

13 years agoSupport passing callbacks from renderer to browser.
Cheng Zhao [Mon, 29 Apr 2013 10:24:37 +0000 (18:24 +0800)]
Support passing callbacks from renderer to browser.

13 years agoUse camelCase not under_score, I forgot it's coffee script.
Cheng Zhao [Sat, 27 Apr 2013 11:13:24 +0000 (19:13 +0800)]
Use camelCase not under_score, I forgot it's coffee script.

13 years agoAdd remote.getCurrentWindow() API in renderer.
Cheng Zhao [Sat, 27 Apr 2013 11:06:41 +0000 (19:06 +0800)]
Add remote.getCurrentWindow() API in renderer.

13 years agoAdd API to return all keys of weak map.
Cheng Zhao [Sat, 27 Apr 2013 08:54:17 +0000 (16:54 +0800)]
Add API to return all keys of weak map.

13 years agoMake the RPC stuff code more understandable.
Cheng Zhao [Fri, 26 Apr 2013 15:58:49 +0000 (23:58 +0800)]
Make the RPC stuff code more understandable.

13 years agoAllow renderer to get object in browser for arbitrary times.
Cheng Zhao [Fri, 26 Apr 2013 15:26:41 +0000 (23:26 +0800)]
Allow renderer to get object in browser for arbitrary times.

Now, when creating a remote object in renderer, the browser will
reference the corresponding object by storing it in a strong map. And
when the remote object in renderer is GCed, the corresponding object
will be dereferenced in browser.

13 years agoKeep an id for each object added to global weak map.
Cheng Zhao [Fri, 26 Apr 2013 14:33:31 +0000 (22:33 +0800)]
Keep an id for each object added to global weak map.

13 years agoAdd remote.getObject API to get object in browser by it's ID.
Cheng Zhao [Fri, 26 Apr 2013 14:25:30 +0000 (22:25 +0800)]
Add remote.getObject API to get object in browser by it's ID.

13 years agoShould wrap WeakCallback with handle scope.
Cheng Zhao [Fri, 26 Apr 2013 13:28:41 +0000 (21:28 +0800)]
Should wrap WeakCallback with handle scope.

13 years agoSeparate stored objects by the render view.
Cheng Zhao [Fri, 26 Apr 2013 13:14:29 +0000 (21:14 +0800)]
Separate stored objects by the render view.

When a render view is closed, it's not guarrenteed that all objects'
weak callback would be called. So we must clean up all objects manually
after the render view gets closed.

13 years agoAdd WeakMap built-in module.
Cheng Zhao [Thu, 25 Apr 2013 13:46:04 +0000 (21:46 +0800)]
Add WeakMap built-in module.

13 years agoNotify creation and destruction of native objects.
Cheng Zhao [Thu, 25 Apr 2013 12:23:00 +0000 (20:23 +0800)]
Notify creation and destruction of native objects.

13 years agoEnable idle GC in browser.
Cheng Zhao [Thu, 25 Apr 2013 11:41:23 +0000 (19:41 +0800)]
Enable idle GC in browser.

13 years agoTell browser to release remote object when the object is GCed.
Cheng Zhao [Thu, 25 Apr 2013 11:26:31 +0000 (19:26 +0800)]
Tell browser to release remote object when the object is GCed.

13 years agoAdd v8_util.setDestructor.
Cheng Zhao [Thu, 25 Apr 2013 10:25:18 +0000 (18:25 +0800)]
Add v8_util.setDestructor.

This API can monitor when the object is GCed by V8, this is required by
the RPC API since we want to make sure the remote object got destroied
when object in renderer is GCed.

13 years agoCheat on the remote object's constructor name.
Cheng Zhao [Thu, 25 Apr 2013 08:36:28 +0000 (16:36 +0800)]
Cheat on the remote object's constructor name.

13 years agoAdd built-in v8_util module for internal use.
Cheng Zhao [Thu, 25 Apr 2013 08:30:31 +0000 (16:30 +0800)]
Add built-in v8_util module for internal use.

13 years agoBetter support of array type in RPC.
Cheng Zhao [Thu, 25 Apr 2013 08:03:29 +0000 (16:03 +0800)]
Better support of array type in RPC.

13 years agoModule names starting with atom_common_ can be loaded by both sides.
Cheng Zhao [Thu, 25 Apr 2013 07:36:01 +0000 (15:36 +0800)]
Module names starting with atom_common_ can be loaded by both sides.

13 years agoReturn object instead of function for remote object type.
Cheng Zhao [Thu, 25 Apr 2013 07:28:37 +0000 (15:28 +0800)]
Return object instead of function for remote object type.

13 years agoAdd renference links.
Cheng Zhao [Thu, 25 Apr 2013 07:12:56 +0000 (15:12 +0800)]
Add renference links.

13 years agoNo more C++ RecordedObject and ObjectsRegistry code.
Cheng Zhao [Thu, 25 Apr 2013 07:02:58 +0000 (15:02 +0800)]
No more C++ RecordedObject and ObjectsRegistry code.

All RPC API will be implemented in pure javascript.

13 years agoInitial RPC API implementation.
Cheng Zhao [Wed, 24 Apr 2013 08:43:01 +0000 (16:43 +0800)]
Initial RPC API implementation.

Basic usage is:
remote = require 'remote'
Window = remote.require 'window'
w = new Window { width: 800, height: 600 }

Still need to do:
* Beter support for Array type.
* Remote objects should cheat devtools.
* Support cross-process callbacks.

13 years agoNo more plan for ipc.sendSync in browser.
Cheng Zhao [Tue, 23 Apr 2013 14:21:49 +0000 (22:21 +0800)]
No more plan for ipc.sendSync in browser.

I want the browser to be fully asynchronous, so sending synchronous
messages from browser to renderer will be unacceptable.

13 years agoAdd ipc.sendSync in renderer.
Cheng Zhao [Tue, 23 Apr 2013 13:52:19 +0000 (21:52 +0800)]
Add ipc.sendSync in renderer.

13 years agosmall tune of IPC interface.
Cheng Zhao [Tue, 23 Apr 2013 12:57:14 +0000 (20:57 +0800)]
small tune of IPC interface.

13 years agoAdd getRoutingID and getProcessID for window API.
Cheng Zhao [Tue, 23 Apr 2013 09:21:34 +0000 (17:21 +0800)]
Add getRoutingID and getProcessID for window API.

13 years agoUse require('ipc').send to communicate between browser and renderer.
Cheng Zhao [Tue, 23 Apr 2013 04:18:07 +0000 (12:18 +0800)]
Use require('ipc').send to communicate between browser and renderer.

13 years agoMessages from renderer will be emitted to the process object in browser.
Cheng Zhao [Mon, 22 Apr 2013 14:24:02 +0000 (22:24 +0800)]
Messages from renderer will be emitted to the process object in browser.

13 years agoRenderer can now use process.send to send messages to browser.
Cheng Zhao [Mon, 22 Apr 2013 13:32:48 +0000 (21:32 +0800)]
Renderer can now use process.send to send messages to browser.

13 years agoSeparate AtomBindings for renderer.
Cheng Zhao [Mon, 22 Apr 2013 08:27:34 +0000 (16:27 +0800)]
Separate AtomBindings for renderer.

13 years agoRemove RemoteObject, C++ layer should only have basic bridges.
Cheng Zhao [Mon, 22 Apr 2013 08:16:55 +0000 (16:16 +0800)]
Remove RemoteObject, C++ layer should only have basic bridges.

13 years agoSimpler way of inheriting EventEmitter.
Cheng Zhao [Mon, 22 Apr 2013 08:11:56 +0000 (16:11 +0800)]
Simpler way of inheriting EventEmitter.

13 years agoAdd the RemoteObject API in renderer. (not implemented yet)
Cheng Zhao [Mon, 22 Apr 2013 01:13:25 +0000 (09:13 +0800)]
Add the RemoteObject API in renderer. (not implemented yet)

13 years agoRemove recorded object from registry in desturctor.
Cheng Zhao [Sun, 21 Apr 2013 08:27:30 +0000 (16:27 +0800)]
Remove recorded object from registry in desturctor.

13 years agoIgnore api_messages.{cc,h} for cpplint.
Cheng Zhao [Sun, 21 Apr 2013 07:36:48 +0000 (15:36 +0800)]
Ignore api_messages.{cc,h} for cpplint.

13 years agoShare same native bindings code on both renderer and browser.
Cheng Zhao [Sun, 21 Apr 2013 06:53:26 +0000 (14:53 +0800)]
Share same native bindings code on both renderer and browser.

13 years agoAdd API messages for IPC.
Cheng Zhao [Sun, 21 Apr 2013 03:01:04 +0000 (11:01 +0800)]
Add API messages for IPC.

13 years agoRecord all objects created by API in browser.
Cheng Zhao [Sat, 20 Apr 2013 13:52:46 +0000 (21:52 +0800)]
Record all objects created by API in browser.

13 years ago:lipstick: for cpplint.
Cheng Zhao [Sat, 20 Apr 2013 06:03:55 +0000 (14:03 +0800)]
:lipstick: for cpplint.

13 years agoImplement window.open.
Cheng Zhao [Sat, 20 Apr 2013 05:56:01 +0000 (13:56 +0800)]
Implement window.open.

13 years agoEnable creating window with existing web contents.
Cheng Zhao [Sat, 20 Apr 2013 05:42:39 +0000 (13:42 +0800)]
Enable creating window with existing web contents.

13 years agoRemembers all opened web frames.
Cheng Zhao [Sat, 20 Apr 2013 05:05:23 +0000 (13:05 +0800)]
Remembers all opened web frames.

There is a hack in WebKit to switch to the creation context of exception
when under node context, so we need to remember all window contexts.

Remove this when we have multi-context node.

13 years agoDisable renderer sandbox.
Cheng Zhao [Sat, 20 Apr 2013 03:19:25 +0000 (11:19 +0800)]
Disable renderer sandbox.

13 years agoInject node bindings to renderer's DOM.
Cheng Zhao [Sat, 20 Apr 2013 03:13:06 +0000 (11:13 +0800)]
Inject node bindings to renderer's DOM.

13 years agoImprove the way to integrate libuv.
Cheng Zhao [Fri, 19 Apr 2013 13:21:04 +0000 (21:21 +0800)]
Improve the way to integrate libuv.

Now we poll libuv's events in embed thread by adding main loop's backend
fd to a new kqueue fd, instead of directly polling on main loop's
backend fd. In this way we can avoid dealing with one shot events
overselves.

13 years agoUpdate to latest brightray.
Cheng Zhao [Fri, 19 Apr 2013 10:28:13 +0000 (18:28 +0800)]
Update to latest brightray.

13 years agoAdd Window.url API.
Cheng Zhao [Thu, 18 Apr 2013 16:06:10 +0000 (00:06 +0800)]
Add Window.url API.

13 years agoEmit 'page-title-updated' as javascript event for window.
Cheng Zhao [Thu, 18 Apr 2013 15:50:47 +0000 (23:50 +0800)]
Emit 'page-title-updated' as javascript event for window.

13 years agoEmulate DOM's Event class.
Cheng Zhao [Thu, 18 Apr 2013 13:42:20 +0000 (21:42 +0800)]
Emulate DOM's Event class.

13 years agoAdd observers list for NativeWindow.
Cheng Zhao [Thu, 18 Apr 2013 12:50:58 +0000 (20:50 +0800)]
Add observers list for NativeWindow.

13 years agoAdd convenient accessors for Window API.
Cheng Zhao [Thu, 18 Apr 2013 07:57:53 +0000 (15:57 +0800)]
Add convenient accessors for Window API.

13 years agoComplete a few APIs for getters.
Cheng Zhao [Thu, 18 Apr 2013 07:38:04 +0000 (15:38 +0800)]
Complete a few APIs for getters.

13 years agoAdd partial APIs for WebContents and NavigationController.
Cheng Zhao [Thu, 18 Apr 2013 07:09:53 +0000 (15:09 +0800)]
Add partial APIs for WebContents and NavigationController.

13 years agoAdd GetTitle for window API.
Cheng Zhao [Thu, 18 Apr 2013 06:30:05 +0000 (14:30 +0800)]
Add GetTitle for window API.

13 years agoExpose interface of NativeWindow in javascript.
Cheng Zhao [Wed, 17 Apr 2013 14:49:49 +0000 (22:49 +0800)]
Expose interface of NativeWindow in javascript.

13 years agoUse JavaScript to open the main window.
Cheng Zhao [Wed, 17 Apr 2013 12:05:43 +0000 (20:05 +0800)]
Use JavaScript to open the main window.

13 years agoFix README.
Cheng Zhao [Mon, 15 Apr 2013 16:26:43 +0000 (00:26 +0800)]
Fix README.

13 years agoInitial empty window javascript binding.
Cheng Zhao [Mon, 15 Apr 2013 16:25:08 +0000 (00:25 +0800)]
Initial empty window javascript binding.

13 years agoInternal built-in module code should be wrapped under api namespace.
Cheng Zhao [Mon, 15 Apr 2013 15:01:12 +0000 (23:01 +0800)]
Internal built-in module code should be wrapped under api namespace.

13 years agoInitial javascript startup code.
Cheng Zhao [Mon, 15 Apr 2013 07:39:54 +0000 (15:39 +0800)]
Initial javascript startup code.

13 years agoCopy the default_app to bundle.
Cheng Zhao [Sun, 14 Apr 2013 15:24:46 +0000 (23:24 +0800)]
Copy the default_app to bundle.

13 years agoWrite js codes in coffee script.
Cheng Zhao [Sun, 14 Apr 2013 14:48:35 +0000 (22:48 +0800)]
Write js codes in coffee script.

13 years agoAdd script to check coding styles.
Cheng Zhao [Sun, 14 Apr 2013 09:34:51 +0000 (17:34 +0800)]
Add script to check coding styles.

13 years ago:lipstick: for cpplint.
Cheng Zhao [Sun, 14 Apr 2013 09:33:44 +0000 (17:33 +0800)]
:lipstick: for cpplint.

13 years agoAdd our own built-in native module system.
Cheng Zhao [Sun, 14 Apr 2013 07:36:48 +0000 (15:36 +0800)]
Add our own built-in native module system.

13 years agoDon't quit browser when get fatal js error.
Cheng Zhao [Sat, 13 Apr 2013 15:38:29 +0000 (23:38 +0800)]
Don't quit browser when get fatal js error.

13 years agoUse node's error reporting system in browser.
Cheng Zhao [Sat, 13 Apr 2013 15:38:13 +0000 (23:38 +0800)]
Use node's error reporting system in browser.

13 years agoIntegrate libuv with browser's message loop.
Cheng Zhao [Sat, 13 Apr 2013 15:05:13 +0000 (23:05 +0800)]
Integrate libuv with browser's message loop.

13 years agoLoad atom.js on startup.
Cheng Zhao [Sat, 13 Apr 2013 13:10:41 +0000 (21:10 +0800)]
Load atom.js on startup.

13 years agoInitialize node in browser process.
Cheng Zhao [Sat, 13 Apr 2013 10:39:09 +0000 (18:39 +0800)]
Initialize node in browser process.

13 years ago:lipstick:
Cheng Zhao [Fri, 12 Apr 2013 15:16:16 +0000 (23:16 +0800)]
:lipstick: