platform/framework/native/jsnative.git
8 years ago[node-xwalk] Use node::MakeCallback() in PostMessageToJSCallback() 62/56862/1
WonYoung Choi [Wed, 13 Jan 2016 08:08:57 +0000 (17:08 +0900)]
[node-xwalk] Use node::MakeCallback() in PostMessageToJSCallback()

Change-Id: Ide1f1acf5fc1615c3996635e675e0676dbdc5121
node::MakeCallback() calls KickNextTick() of node::Environment.

8 years ago[node-xwalk] Print error messages during the evaluation jscode of module 60/56860/1
WonYoung Choi [Wed, 13 Jan 2016 08:01:13 +0000 (17:01 +0900)]
[node-xwalk] Print error messages during the evaluation jscode of module

Change-Id: I51d2b83f796dd210b2a6745c438b6900b14026bc

8 years agoCleanup code and apply cpplint and gjslint 12/56712/4
WonYoung Choi [Tue, 12 Jan 2016 08:16:53 +0000 (17:16 +0900)]
Cleanup code and apply cpplint and gjslint

Change-Id: I95493fa34c81be3dfaeba801993818733acc37df

8 years agoUpdate cli template to use new appfw 81/56681/1
Seungkeun Lee [Tue, 12 Jan 2016 03:51:23 +0000 (12:51 +0900)]
Update cli template to use new appfw

 - Use tizen-appliation

Change-Id: Ida641301266e518c1baf5220694fa326aa95fcf1

8 years agoIntroduce ADD_MODULE cmake function 68/56668/3
WonYoung Choi [Tue, 12 Jan 2016 01:24:36 +0000 (10:24 +0900)]
Introduce ADD_MODULE cmake function

This function provides a simple method to build a node-addon and
a xwalk extension in cmake.
ADD_MODULE(target [NODE|XWALK] [JSAPI jsfile]
           SRCS srcs... INCLUDES includes...
           DEPENDS depends...)

Change-Id: I89513376b8b737e588705179212210bbffb02a01

8 years agoNew AppFW Module implements 50/56150/8
Seungkeun Lee [Tue, 5 Jan 2016 02:25:55 +0000 (11:25 +0900)]
New AppFW Module implements

 - initial version
 - xwalk style moudle

Change-Id: I0b40628790f2acf79699595d324b53b9164463d4

8 years agoRemove unnecessary files of node-xwalk module 16/54816/1 accepted/tizen/mobile/20151218.090259 accepted/tizen/tv/20151218.090118 accepted/tizen/wearable/20151218.090230 submit/tizen/20151218.052605 submit/tizen/20151218.055221 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718
WonYoung Choi [Fri, 18 Dec 2015 05:24:22 +0000 (14:24 +0900)]
Remove unnecessary files of node-xwalk module

Change-Id: I220ef020dfffb01bc2e366f1d96df3ca0c1e11ae

8 years agoRemove examples of node-xwalk submit/tizen/20151218.005349
WonYoung Choi [Wed, 16 Dec 2015 03:32:39 +0000 (12:32 +0900)]
Remove examples of node-xwalk

Change-Id: I2a819a3b88616eaec6d2df25712285149dfdd374

8 years agoAdd node-dlog module
WonYoung Choi [Mon, 14 Dec 2015 10:24:10 +0000 (19:24 +0900)]
Add node-dlog module

After require('jsnative') below functions will be added.
console.log(), console.info(), console.error(), console.warn().
User can see log message with 'JSNative' log tag,
eg: # journalctl -fl LOG_TAG=JSNative

Change-Id: Ia981e6bb3bd108e04af17a2f01158d44beead424

8 years agoMerge "gjslint result apply"
Seungkeun Lee [Tue, 8 Dec 2015 00:37:11 +0000 (09:37 +0900)]
Merge "gjslint result apply"

8 years agoMerge "ReThrow exception in appfw event handler execution"
Seungkeun Lee [Tue, 8 Dec 2015 00:02:51 +0000 (09:02 +0900)]
Merge "ReThrow exception in appfw event handler execution"

8 years agogjslint result apply
Seungkeun Lee [Mon, 7 Dec 2015 23:59:51 +0000 (08:59 +0900)]
gjslint result apply

 - apply javascript lint
 - https://developers.google.com/closure/utilities/docs/linter_howto

Change-Id: I220c9dc69c9aba23d54477e1ea723b157c432a60

8 years agoReThrow exception in appfw event handler execution
Seungkeun Lee [Mon, 7 Dec 2015 23:45:17 +0000 (08:45 +0900)]
ReThrow exception in appfw event handler execution

 - Error message and callstack was not printed
 - Because appfw event handler was catched exception
 - So, we rethrow exception

Change-Id: Ic11d1f35059acd4e172e99bff41182b9be7cc753

8 years agoMerge "Add Example for Object-oriented-programming"
Seungkeun Lee [Mon, 7 Dec 2015 05:30:25 +0000 (14:30 +0900)]
Merge "Add Example for Object-oriented-programming"

8 years agoAdd Example for Object-oriented-programming
Seungkeun Lee [Mon, 7 Dec 2015 05:24:33 +0000 (14:24 +0900)]
Add Example for Object-oriented-programming

 - How to make class
 - How to make sub class
 - How to make private property

Change-Id: Ic1a67cf893d733ce950e50b20a34e39d125494f3

8 years agoHide private key when sign help message prints
yons.kim [Mon, 7 Dec 2015 04:51:11 +0000 (13:51 +0900)]
Hide private key when sign help message prints

Change-Id: I389707c12974a951e72a3d6b5e539c5c7fa488fd

8 years agonode-xwalk - Update binary interface implements
Seungkeun Lee [Fri, 4 Dec 2015 07:59:39 +0000 (16:59 +0900)]
node-xwalk - Update binary interface implements

 - Use GetContents instead of Externalize (It didn't copy the internal buffer)
 - Use ArrayBufferCreationMode::kInternalized to create ArrayBuffer (It copied the buffer)

Change-Id: Ida0efa33bac940b8f14a9dd21cf120fb9ac976d1

8 years agoIntroduce How-to example
Seungkeun Lee [Fri, 4 Dec 2015 01:06:19 +0000 (10:06 +0900)]
Introduce How-to example

 - Introduce how to sync js-objet and native-object lifecycle.

Change-Id: I5ffaa3b4281dbfccfd870f7153ace16ede0e68c2

8 years agoIntroduce 'reaper' module for tracking lifecycle of javascript object
Seungkeun Lee [Thu, 3 Dec 2015 02:26:59 +0000 (11:26 +0900)]
Introduce 'reaper' module for tracking lifecycle of javascript object

 - The reaper module was tracking the javascript object deletion
 - User can use this module for tracking lifecycle of javascript object
 - Deleted object was passed the callback parameter

Change-Id: I3140551865ae2a9b3325059fd63ea0e0bd8daf83

8 years agoFix example for echo extension
WonYoung Choi [Wed, 2 Dec 2015 11:47:27 +0000 (20:47 +0900)]
Fix example for echo extension

Change-Id: Iee5246531fd04fc98b4a403254a7c07fdb938db9

8 years agoMove internal modules to 'modules' directory
WonYoung Choi [Tue, 1 Dec 2015 10:52:49 +0000 (19:52 +0900)]
Move internal modules to 'modules' directory

Change-Id: I831f8ef23ac11695afcc9d4536607e291a7ff9e8

8 years agoAdd examples for JSNative modules
WonYoung Choi [Tue, 1 Dec 2015 10:18:42 +0000 (19:18 +0900)]
Add examples for JSNative modules

This examples describe how to create modules for JSNative
with v8 binding and xwalk-extensions-common.

Change-Id: I44bbeaa82d90e9f6cf2b905a4c0f8ff1f090e3b4

8 years agoAdd 'jsnative' module
WonYoung Choi [Tue, 1 Dec 2015 09:59:12 +0000 (18:59 +0900)]
Add 'jsnative' module

JSNative application should require this module first. eg:
require('jsnative');
This module initailizes necessary tasks for JSNative applications.

Change-Id: I0840b5c35f8315e7584ebfd1ab27e1c1ee989605

8 years agoAdd install() function
WonYoung Choi [Tue, 1 Dec 2015 05:04:39 +0000 (14:04 +0900)]
Add install() function

When require('node-xwalk').install() is called '.xwalk' extension
handler will be added to require.extensions of Node.js.
After called this function, crosswalk extensions can be loaded
using require() of Node.js. The extension having '.xwalk' file
extension is searched by the module finding algorithm of Node.js

Change-Id: I733d91ea5ff7f8ad4cf68c92d39fb1e54098b35f

8 years agoIntroduce privileges and arguments-validator module
WonYoung Choi [Wed, 18 Nov 2015 00:42:31 +0000 (09:42 +0900)]
Introduce privileges and arguments-validator module

Change-Id: Id647048c6713ec8cad778412774bfc9b3402fdcc

8 years agoRemove ES6 from jsn-cli
jh5.cho [Mon, 16 Nov 2015 02:51:45 +0000 (11:51 +0900)]
Remove ES6 from jsn-cli

Change-Id: I39a873f800116c75f8afbd38b529f2949ce64470

8 years agoReadjust help and error log
jh5.cho [Fri, 13 Nov 2015 08:47:40 +0000 (17:47 +0900)]
Readjust help and error log

Change-Id: If57e8ccd6791aac52f47e104cc51d1073beebebb

8 years agoApply babel for es6 on nodejs v0.10
yons.kim [Fri, 13 Nov 2015 05:15:49 +0000 (14:15 +0900)]
Apply babel for es6 on nodejs v0.10

Current apm's nodejs version is 0.10. Until now, this program uses
very higher nodejs's version(4.2.1). To lower this and not modify code,
add babel & preset for es6.

Change-Id: I6b51d700e43bcd4a4f5464782141b0870c88d54a

9 years agoRemove module path setting in app-template
WonYoung Choi [Thu, 12 Nov 2015 04:41:20 +0000 (13:41 +0900)]
Remove module path setting in app-template

Change-Id: I53c98873a3b411da9278150995cc1162939e3395

9 years agoIntroduce JSNative project
WonYoung Choi [Thu, 12 Nov 2015 02:04:13 +0000 (11:04 +0900)]
Introduce JSNative project

JSNative consists of set of node.js modules to provide node.js environment
for Tizen platform.
Currently, JSNative has below node.js modules.
- appfw : Using tizen application frameworks
- gcontext: Using glib mainloop
- node-xwalk : Using crosswalk style extension
- jsn-cli : JSNative CLI tools

Change-Id: I8fcd5d8fa43150b06d3db3d53625ddfbaf3e731d

9 years agoInitial empty repository
KyungMi Lee [Wed, 11 Nov 2015 00:03:30 +0000 (09:03 +0900)]
Initial empty repository