platform/framework/web/crosswalk-tizen.git
6 years agoRevert "Implemented getting of start url from resource manager" 30/182130/2
Prathmesh Manurkar [Wed, 20 Jun 2018 14:58:40 +0000 (14:58 +0000)]
Revert "Implemented getting of start url from resource manager"

This reverts commit 992f0affc8602d20f2901b18724c88c5a5df663e.

Change-Id: Ia1d6019843a934f54ce340c3db8ec742e5b4d841

6 years agomove activateAll API up 99/182099/1
jaekuk, lee [Wed, 20 Jun 2018 08:45:03 +0000 (17:45 +0900)]
move activateAll API up

Change-Id: Id3787e59ff3c77f2c6dfa3772fde9cd7b269ca0c
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
6 years agoBlock loading of extension in render 90/181790/1
Prathmesh [Mon, 18 Jun 2018 09:22:27 +0000 (14:52 +0530)]
Block loading of extension in render

- Plugins are already loaded in browser
- There is no use of loading in renderer as the plugins
  loaded in browser will be used.

Change-Id: I8175667d01f30be7242ff9eb24f7db597533a7c3
Signed-off-by: Prathmesh <prathmesh.m@samsung.com>
6 years agoImplemented getting of start url from resource manager 27/181627/2
Prathmesh [Fri, 15 Jun 2018 07:04:53 +0000 (12:34 +0530)]
Implemented getting of start url from resource manager

- Change the url load logic from window create to on appcontrol
- Pass the AppControl event to Window(On top)
- Make start url ready when getpath() is called
- Refactor code to move under OS_TIZEN macro

Change-Id: I6b739950d16b8391a9af05b0ba63f306b339fcfc
Signed-off-by: Prathmesh <prathmesh.m@samsung.com>
6 years agoInitial service app implementation 54/181354/1
SangYong Park [Mon, 9 Apr 2018 10:57:11 +0000 (19:57 +0900)]
Initial service app implementation

. add wrt-service executable
. change PWRT mate type to EventEmitter
 (TrackableObject cannot be instantiated without chromium.)

Change-Id: I2464fc12da1dcb7b85e70fcda950dd894222653f
Signed-off-by: SangYong Park <sy302.park@samsung.com>
6 years agoAdd splash screen object to electron interface 05/181105/1
Prathmesh [Fri, 8 Jun 2018 06:40:04 +0000 (12:10 +0530)]
Add splash screen object to electron interface

- Build and generate idl's
- Make splash screen object avaliable

Change-Id: I01785552dad600a38b5e13485bfbdabfc6ba68a1
Signed-off-by: Prathmesh <prathmesh.m@samsung.com>
6 years agoFix build error in widget object module 22/181022/1
Prathmesh [Thu, 7 Jun 2018 11:01:50 +0000 (16:31 +0530)]
Fix build error in widget object module

- Ideally widget module needs to be built separately and
  not included in "wrt". Same is there in xwalk.
- But in electron currently, the build system is tightly
  coupled with wrt executable, so no module can be build
  as static_lib separately.
- Currently coping widget_object in lib directory so that
  "wrt" exe will not give linking error.

- Need to find way to build widget object as static lib
  without directly linking to "wrt" exe

Change-Id: Ia5a5584f5b2165c1be5b5bd9eafc49a3d45ef195
Signed-off-by: Prathmesh <prathmesh.m@samsung.com>
6 years agoAdd widget object to electron interface 00/181000/2
Prathmesh [Thu, 7 Jun 2018 07:13:41 +0000 (12:43 +0530)]
Add widget object to electron interface

- Generate the idls
- Build extension independently and add to extension
  libs

Change-Id: Ida4361a75267341ffca46c4d96369a973311e839
Signed-off-by: Prathmesh <prathmesh.m@samsung.com>
6 years agoMerge "Implement Runtime Add-on" into tizen.devel
Hye Kyoung Hwang [Thu, 7 Jun 2018 02:16:51 +0000 (02:16 +0000)]
Merge "Implement Runtime Add-on" into tizen.devel

6 years agoFix for supporting TCT 68/176568/6
k2.nagaraju [Fri, 20 Apr 2018 04:26:52 +0000 (09:56 +0530)]
Fix for supporting TCT

- As node and jquery are having issues, disable node integration for Tizen apps
- Handle Tizen Exit event
- Allow loading of device API's in both main frame and iframe

Change-Id: I3e69b28462761c270862eb47bb37defe37923ea0
Signed-off-by: Prathmesh <prathmesh.m@samsung.com>
6 years agoImplement Runtime Add-on 46/180846/1
jaekuk, lee [Tue, 5 Jun 2018 01:28:38 +0000 (10:28 +0900)]
Implement Runtime Add-on

Change-Id: I3d5017a68ba43af8f4efff05069667a35d236e97
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
6 years agofixup! Expose the visibility of classes of chromium for web device api. 03/180803/1
k2.nagaraju [Mon, 4 Jun 2018 09:38:54 +0000 (15:08 +0530)]
fixup! Expose the visibility of classes of chromium for web device api.

Change-Id: Iba81e14e308e17fbfa29aad2c1515b2e4a8c2496
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
6 years agoExpose the visibility of classes of chromium for web device api. 98/178698/6
k2.nagaraju [Fri, 11 May 2018 09:59:28 +0000 (15:29 +0530)]
Expose the visibility of classes of chromium for web device api.

removed duplicate code from WRT

Change-Id: I41ddadd07ef4cdf961a4a470ae311351235b9028
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
6 years agofixup! Refactored code by removing extra check for vector size in SendAppControlEvent... 88/180788/1
deepti [Mon, 4 Jun 2018 07:26:11 +0000 (12:56 +0530)]
fixup! Refactored code by removing extra check for vector size in SendAppControlEvent function. Removed extra header files and made proper indent.

The original patch has build error and this fixes the same.

Change-Id: I912029c37dd5085a2dd2792c3ac22485ab58bc19
Signed-off-by: deepti <d.saraswat@samsung.com>
6 years agoRefactored code by removing extra check for vector size in SendAppControlEvent function. 64/179864/3
deepti [Wed, 23 May 2018 05:24:04 +0000 (10:54 +0530)]
Refactored code by removing extra check for vector size in SendAppControlEvent function.
Removed extra header files and made proper indent.

Change-Id: I21281e5009e9c5c3ed7d404f9a0ced7a4c273a7b
Signed-off-by: deepti <d.saraswat@samsung.com>
6 years agoAdd preload manager and invoke preloadable objects in prelaunch phase 15/176815/12
surya.kumar7 [Mon, 7 May 2018 11:36:57 +0000 (17:06 +0530)]
Add preload manager and invoke preloadable objects in prelaunch phase

Preloading the below engine independent components is giving ~50ms improvement
in app launch:
xwalk extension server
AtomContentClient
AtomBrowserClient

Change-Id: Iee9bc108aeed0414962b301345c799807dfd043d
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
6 years agoInitial Implementation of AppControl Function 20/178720/4
deepti [Fri, 11 May 2018 11:09:46 +0000 (16:39 +0530)]
Initial Implementation of AppControl Function

Handled condition of resetting app.
Implemented SendAppControlEvent() for execution of AppControlEventscript.

Change-Id: I98b9420a6f5076de598dbdbbdd0968806fc1f34f
Signed-off-by: deepti <d.saraswat@samsung.com>
6 years agoSet default encoding for WebContents as UTF-8 08/179008/1
surya.kumar7 [Tue, 15 May 2018 08:14:21 +0000 (13:44 +0530)]
Set default encoding for WebContents as UTF-8

Currently, the default encoding being used is ISO-8859-1 which is
a single-byte encoding and is capable of only supporting limited symbols.
Change it to UTF-8(multi byte encoding) just like in crosswalk to extend
support for more symbols

Change-Id: I92e70445ca668c8db8c258e4ad1a6d41816dd2fb
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
6 years agoImplement splash screen 65/176465/7
min7.choi [Thu, 19 Apr 2018 10:30:05 +0000 (19:30 +0900)]
Implement splash screen

Implementation of splash screen used in tizen.
now the hide screen is only implemented in complete.
first-paint and costom will be implemented later.
Also, the window state of the splash screen will be implemented later

Change-Id: I444f1be7dd04be46d5cd8edca5e022616d9020ff
Signed-off-by: min7.choi <min7.choi@samsung.com>
6 years agoElectron App launching implement 37/176137/8
ws29.jung [Tue, 17 Apr 2018 02:13:23 +0000 (11:13 +0900)]
Electron App launching implement

Ironically, Electron JS Runtime was not able to execute Electron Web App,
but only able to run Tizen Web app.
From this patch, if Electron App is packaged as wgt, JS Runtime will parse xml
then will launch Electron App from its own entry point.

Change-Id: Iec5df77495063e129d99a8e1dd21bc8f489b8ffe
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
6 years agoIPC bring up and removing ewk dependency to support webdevice API. 86/174986/14
k2.nagaraju [Thu, 5 Apr 2018 14:44:03 +0000 (20:14 +0530)]
IPC bring up and removing ewk dependency to support webdevice API.

- Modified the exising xwalk extension server and client to
  work in multiprocess

- related patch
  https://review.tizen.org/gerrit/#/c/173694/

Change-Id: I5675b9fc3f2aad7d477b8a7dd60a3639e3d9b757
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
6 years agoAdded Injected Bundle and extension server and client 94/173694/12
prathmeshm [Fri, 23 Mar 2018 06:46:03 +0000 (12:16 +0530)]
Added Injected Bundle and extension server and client

- Added injected bundle in electron
- Added extension server and client
- Set injected bundle path to chromium for init

- related patch
  https://review.tizen.org/gerrit/#/c/174986/

Change-Id: Iee1717b760cb68576ad02c7cab657b099e54b913
Signed-off-by: prathmeshm <prathmesh.m@samsung.com>
6 years agoImplement window rotation 66/175266/4
ws29.jung [Tue, 10 Apr 2018 02:13:36 +0000 (11:13 +0900)]
Implement window rotation

When mobile device is rotated, webapp did not follow the rotation.
Now window will properly rotate as mobile device rotates.

Change-Id: I27f45277188d119dc87e5e912607ffec26607373
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
6 years agoAdd CRX type to Addon manager 72/175872/1
jaekuk, lee [Fri, 13 Apr 2018 05:07:21 +0000 (14:07 +0900)]
Add CRX type to Addon manager

Change-Id: I883ac2de7230f9801758728ccad6e024f2f079e0
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
6 years agoInitial Implementation of Node prelaunch 62/173962/9
ws29.jung [Tue, 27 Mar 2018 07:41:37 +0000 (16:41 +0900)]
Initial Implementation of Node prelaunch

This patch is created to reduce WebApp launching time by using
method of Node environment prelaunching.
Prelaunch will load and run electron.asar and app.asar
then it will wait until onCreate event emit.
onCreate event will be triggered when actual WebApp is launched.

Change-Id: I42f198e9755dd8e017691c22edf96eef15cb3eb5
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
6 years agoHandling app Control Data 04/174104/8
deepti [Wed, 28 Mar 2018 06:16:09 +0000 (11:46 +0530)]
Handling app Control Data

1)Take decision whether to launch or send app control data.
2)Parsing of config file to check whether to reload or not.

Change-Id: I51f0d48aba58ca62d185b994beca12abb9344578
Signed-off-by: deepti <d.saraswat@samsung.com>
6 years agoImplement Hardware Backkey action 87/174687/2
ws29.jung [Tue, 3 Apr 2018 11:05:00 +0000 (20:05 +0900)]
Implement Hardware Backkey action

Hardware Backkey callback was already registered and called but
inside of it, there was nothing implemented related with WebApp.
Now hardware backkey work as it should be, like going back history
and App quit when there is no history to go back.

Change-Id: Ib95be89c8dc4da0628b7c69c531f36ff921c1b04
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
6 years agoCleanup build script and gyp files 61/174061/1
SangYong Park [Tue, 27 Mar 2018 12:52:19 +0000 (21:52 +0900)]
Cleanup build script and gyp files

Minimize change of electron's code
(Later patch will be fixed brightray's gyp files.)

Change-Id: I2cae341abeddd812c0997d91b90e94ff36aab46e
Signed-off-by: SangYong Park <sy302.park@samsung.com>
6 years agoRevert "Handling App Control Data" 44/173944/1
jaekuk lee [Tue, 27 Mar 2018 05:15:14 +0000 (05:15 +0000)]
Revert "Handling App Control Data"

This reverts commit fd80b9a284b4e8fcbf0787ce457a0e1c93498bc0.

Change-Id: Ifdbad4f988f46c92ea5ffbde5a61ac4c69006c03

6 years agoHandling App Control Data 43/173243/1
deepti [Tue, 20 Mar 2018 06:38:50 +0000 (12:08 +0530)]
Handling App Control Data

Change-Id: I42374c5f69b6ed749889dfc14f04240924309639
Signed-off-by: deepti <d.saraswat@samsung.com>
6 years agoAdd missing node modules 28/172828/1
SangYong Park [Fri, 16 Mar 2018 07:42:13 +0000 (16:42 +0900)]
Add missing node modules

Previous patch remove necessary files.
(aff6b29276dda4fba6cd1cd62d5e38c479f8223a)
so, Add files again.

Change-Id: Ib52b9310e152dfaa4d0736744ceeaa9a44f10c51
Signed-off-by: SangYong Park <sy302.park@samsung.com>
6 years agoRemove unnecessary node modules 16/172716/1
SangYong Park [Thu, 15 Mar 2018 10:34:09 +0000 (19:34 +0900)]
Remove unnecessary node modules

Cleanup wrt javascript code and remove unnecessary node modules.

Change-Id: I70a09e77bc974916315372c83652e035742609d2
Signed-off-by: SangYong Park <sy302.park@samsung.com>
6 years agoCall bootstrap when needed 54/172654/1
SangYong Park [Thu, 15 Mar 2018 05:15:52 +0000 (14:15 +0900)]
Call bootstrap when needed

bootstrap and build take a lot of times.
bootstrap is not necessary without change build configuration.
so do not call after bootstrap is called once.

Change-Id: If17c5e2de9a8a6bb85de2bb9bd811b31a185a553
Signed-off-by: SangYong Park <sy302.park@samsung.com>
6 years agoDisallow multiple process creations 99/172399/6
surya.kumar7 [Tue, 13 Mar 2018 13:05:13 +0000 (18:35 +0530)]
Disallow multiple process creations

When a request to a new window(in electron's context) comes, if the
rule CHILD_PROCESS_SPAWN is true, electron forks the current process
and creates the new window on another process. Disabling it will mean
the new window will be created from and appended to the existing
process.

Change-Id: I907a2fb8a0cb6585e033737164a066379fadc5c5
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
6 years agoFix DEBUG environment variable issue 29/172529/1
SangYong Park [Wed, 14 Mar 2018 08:56:05 +0000 (17:56 +0900)]
Fix DEBUG environment variable issue

After enable debug module's log, web inspector is created.
Because, debug module is set DEBUG environment variable
when enable() api is called. so reset environment variable after
log enabling.

Change-Id: Iac559ef57da9625dbcda4af3157f7fc0212721f5
Signed-off-by: SangYong Park <sy302.park@samsung.com>
6 years agoSaving App Control Data 72/172072/5
deepti [Fri, 9 Mar 2018 10:22:27 +0000 (15:52 +0530)]
Saving App Control Data

Change-Id: Icd2555eb5451de82bb5223f8ac7d493f53defbe0
Signed-off-by: deepti <d.saraswat@samsung.com>
6 years agoRemove unnecessary WAS contents 92/172492/2
SangYong Park [Wed, 14 Mar 2018 07:24:05 +0000 (16:24 +0900)]
Remove unnecessary WAS contents

. WAS contents contains unnecessry contents for current scenario,
  so remove it.
. add workaround fix for npm debug module's log

Change-Id: I540f8be24f634f0df2e01614070548529965d3f1
Signed-off-by: SangYong Park <sy302.park@samsung.com>
6 years agoRevert "Revert "Print console messages to dlog"" 96/172496/1
jaekuk lee [Wed, 14 Mar 2018 07:41:07 +0000 (07:41 +0000)]
Revert "Revert "Print console messages to dlog""

This reverts commit 1e66211336d2c6b42b525a3ddbffdddafac77ac5.

Change-Id: I5255a6b28e70da7d84bf8716d4c468b7daac6b18

6 years agoRevert "Print console messages to dlog" 57/172357/2
jaekuk lee [Tue, 13 Mar 2018 10:43:22 +0000 (10:43 +0000)]
Revert "Print console messages to dlog"

This reverts commit 5b05d606f8ebfa38cb35175a8d585e6e38632c39.

Change-Id: Iaba35a5b7b43771acf378a743995f6e25a25ca12

6 years agoInstall rpm file after gbs building 25/172325/1
SangYong Park [Tue, 13 Mar 2018 07:53:34 +0000 (16:53 +0900)]
Install rpm file after gbs building

If target device/emulator is connected,
then, install rpm file after gbs building.

Change-Id: I32f9d2de9acf71a4865b1a7022a199925aa97979
Signed-off-by: SangYong Park <sy302.park@samsung.com>
6 years agoPrint console messages to dlog 30/172130/1
SangYong Park [Mon, 12 Mar 2018 05:39:57 +0000 (14:39 +0900)]
Print console messages to dlog

Change-Id: I0826b601c629969ca710d298f64e0716b4ad5f88
Signed-off-by: SangYong Park <sy302.park@samsung.com>
6 years agoImplement Tizen application loop. 76/171976/3
prathmeshm [Fri, 23 Feb 2018 11:09:44 +0000 (16:39 +0530)]
Implement Tizen application loop.

Change-Id: I4c9487ca7bf3125d7614bb1de0d84c60acb2dd36
Signed-off-by: prathmeshm <prathmesh.m@samsung.com>
6 years agoRefactor the logic to retrieve the source url from config.xml 38/171538/1
surya.kumar7 [Mon, 5 Mar 2018 10:47:37 +0000 (16:17 +0530)]
Refactor the logic to retrieve the source url from config.xml

Change-Id: Ie5292bedc917ab53fabef8db7a2a0d2cee9f3fad

6 years agoRevert "Initial implementation of app loop" 34/171534/1
ws29.jung [Mon, 5 Mar 2018 08:52:39 +0000 (17:52 +0900)]
Revert "Initial implementation of app loop"

This commit causes WebApp crash.

This reverts commit c76ede6a4d27ae6dcda26d5f1990072755f5d793.

Change-Id: I2e11d793959c740cbba092910c0aac83443db87a
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
6 years agoExtract start url from config only for Tizen Web Apps 42/171342/3
surya.kumar7 [Thu, 1 Mar 2018 17:17:57 +0000 (22:47 +0530)]
Extract start url from config only for Tizen Web Apps

Extended the pwrt object to identify if the current app
is Tizen web app and retrieve its source file

Change-Id: I48f799942a8ce48ce90f65ac257d8092242987a8
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
6 years agoElectron doesn't have a config file to parse 40/171340/3
surya.kumar7 [Thu, 1 Mar 2018 15:41:39 +0000 (21:11 +0530)]
Electron doesn't have a config file to parse

config.xml is not present for electron-efl which is
unintentionally regarded as a terminal failure and app
exits

Change-Id: I781a854956c2931bf8492b8f4614438262afe802
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
6 years agoInitial implementation of app loop 48/170948/4
prathmeshm [Fri, 23 Feb 2018 11:09:44 +0000 (16:39 +0530)]
Initial implementation of app loop

Change-Id: Id704b08ce2df00648de0e7b1718f5c994894df40
Signed-off-by: prathmeshm <prathmesh.m@samsung.com>
6 years agoAdd a new api - PWRT::GetPath() 97/171197/1
min7.choi [Tue, 27 Feb 2018 10:11:03 +0000 (19:11 +0900)]
Add a new api - PWRT::GetPath()

Get the path of app data from JS through the new api

Change-Id: I99ed00f7d62764ba17e2b0dc85d45a0e3d78d5b2
Signed-off-by: min7.choi <min7.choi@samsung.com>
6 years agoAdd pwrt electron interface object 66/171166/1
surya.kumar7 [Tue, 27 Feb 2018 05:39:19 +0000 (11:09 +0530)]
Add pwrt electron interface object

Any necesssary implementations or functions needed by JS-WRT can be
facilitated through this private pwrt object so that the deviation
from electron model is minimized and isolated

Change-Id: Iebb569dcacb5e6745199c4b0e579dcc256ea3b11
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
6 years agoRevert "Add pwrt electron interface object" 47/171147/1
min7.choi [Tue, 27 Feb 2018 04:10:11 +0000 (13:10 +0900)]
Revert "Add pwrt electron interface object"

"LOG(DEBUG)" produces a build error.
This reverts commit 8f49617801551b4425f6ec092f7f426321cb6939.

Change-Id: I11f50cd3e012ae1719b700409974307379b0fe74
Signed-off-by: min7.choi <min7.choi@samsung.com>
6 years agoFix build errors 88/171088/1
min7.choi [Mon, 26 Feb 2018 10:42:12 +0000 (19:42 +0900)]
Fix build errors

Error message with recompile with -fPIC

Change-Id: Idaeb7adbc5a2eaaf4b160c6c9a81802f9bbb7d12
Signed-off-by: min7.choi <min7.choi@samsung.com>
6 years agoGetting application data using wrt common library. 37/168837/3
jinwoo jeong [Wed, 31 Jan 2018 08:59:22 +0000 (17:59 +0900)]
Getting application data using wrt common library.

To use wrt common library, it should be complied to shared library.
Because it has many dependency with system libraries.

In wrt common, there are CommandLine and ApplicationData modules.
Using those modules, the arguements can be parsed.
And electron can get more information from app db or app control.

Change-Id: Idb7f906b240de01f04ad4ed145266e23615ef4d3
Signed-off-by: jinwoo jeong <jw00.jeong@samsung.com>
6 years agoAdd pwrt electron interface object 40/170240/4
surya.kumar7 [Wed, 14 Feb 2018 14:41:33 +0000 (20:11 +0530)]
Add pwrt electron interface object

Any necesssary implementations or functions needed by JS-WRT can be
facilitated through this private pwrt object so that the deviation
from electron model is minimized and isolated

Change-Id: I5653406dd04c360259ba35656f1e598ce05d1858

6 years agoSeparate initializing for each process. 80/168780/2
jinwoo jeong [Wed, 31 Jan 2018 01:52:01 +0000 (10:52 +0900)]
Separate initializing for each process.

efl::Initialize is needed by only browser process.

Change-Id: I84ae4c7d342d9c743157592bed363157c632ca28
Signed-off-by: jinwoo jeong <jw00.jeong@samsung.com>
6 years agoInitialize application path 52/168352/3
jinwoo jeong [Fri, 26 Jan 2018 04:12:51 +0000 (13:12 +0900)]
Initialize application path

When the main process forks a zygote process, it refer to a file that
executes itself.
Thus if current process is started from wrt-loader, forked process also
will start from wrt-loader. To prevent this situation, we need to
specify a starting point.

Change-Id: Ib67aacd1cfee415c824166a7278f4c673b987622
Signed-off-by: jinwoo jeong <jw00.jeong@samsung.com>
6 years agoAdd build script 20/170320/1
SangYong Park [Mon, 19 Feb 2018 04:16:22 +0000 (13:16 +0900)]
Add build script

Build
./tizen/script/build -p <<profile>>
or
./tizen/script/build -t <<target>>

Print profile/target list
./tizen/script/build -l

Change-Id: I89d8ec12c538040188964270cc6369030d7d9e7e
Signed-off-by: SangYong Park <sy302.park@samsung.com>
6 years agoelectron binary should has '_' smack label. 01/168001/4
jinwoo jeong [Tue, 23 Jan 2018 09:29:24 +0000 (18:29 +0900)]
electron binary should has '_' smack label.

electron is installed under its app path that has app smack label.
thus even if it has '_' smack label, it could not be accessed by
wrt-loader that has '_' smack label.

So, it should be moved under /usr/bin/.

Change-Id: I164a7142b5fbd9e1408e7ee971a82946443a0669
Signed-off-by: jinwoo jeong <jw00.jeong@samsung.com>
6 years ago[hotfix] Add chromium-efl headers 09/168709/4
Youngsoo Choi [Tue, 30 Jan 2018 08:09:52 +0000 (17:09 +0900)]
[hotfix] Add chromium-efl headers

The chromium-efl has been rebased with the latest code.
So, this updates corresponding chromium-efl headers
because the electron-efl has referred to them in its own source tree.

Note that this will be moved to chromium-efl devel package.

Change-Id: Ic23291b04a08c3189917a92decb46d516fe64c66
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years ago[Tizen] Set capability of wrt-loader 04/165404/4
Youngsoo Choi [Fri, 29 Dec 2017 00:38:57 +0000 (00:38 +0000)]
[Tizen] Set capability of wrt-loader

Change-Id: I944f9c23b50bea371fc32a5eb3e20da29700aeea
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years ago[Tizen] Add preloader 90/163190/5
Youngsoo Choi [Wed, 6 Dec 2017 05:17:35 +0000 (05:17 +0000)]
[Tizen] Add preloader

This implements initial preloader, using loader life-cycle of launchpad.
Implementation for preloaded modules will be added later.

Change-Id: I75b9b9efde060988066f49e8c07d709d771dc872
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years ago[Tizen] Add wrt-loader 61/162661/10
Youngsoo Choi [Wed, 29 Nov 2017 01:41:09 +0000 (01:41 +0000)]
[Tizen] Add wrt-loader

The wrt-loader is implemented.

Change-Id: I9d8abd9cd44cfe69857fe8fc363b4a95bd5d928f
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years agofixup! [Tizen] Initial migration of Common component from xwalk 32/166432/3
min7.choi [Wed, 10 Jan 2018 07:45:50 +0000 (16:45 +0900)]
fixup! [Tizen] Initial migration of Common component from xwalk

This builds common component as static library
as the other third party libraries of electron do.
-fPIC is duplicated because it is declared in electron-gyp.

Change-Id: I37a6b1f5623fa3e716cd8304e269cf7575279a53
Signed-off-by: min7.choi <min7.choi@samsung.com>
6 years ago[Tizen] Initial migration of Common component from xwalk 33/163733/8
ss440 [Wed, 13 Dec 2017 06:13:28 +0000 (15:13 +0900)]
[Tizen] Initial migration of Common component from xwalk

This common module is base of Runtime and Extension component.

Change-Id: If0163dc1671ef81bb353ddc496ec92aaaa705352
Signed-off-by: ss440 <ss440.han@samsung.com>
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years ago[WRT][Extension] Update AppManager & app timer 25/161125/11
jaekuk, lee [Tue, 21 Nov 2017 16:58:28 +0000 (01:58 +0900)]
[WRT][Extension] Update AppManager & app timer

Change-Id: Ia52adaafcff85970a14663c36671064a8225038b
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
6 years agoMerge "Revert "fix for electron app"" into tizen.devel
Sungsik Han [Tue, 21 Nov 2017 11:02:19 +0000 (11:02 +0000)]
Merge "Revert "fix for electron app"" into tizen.devel

6 years agoRevert "fix for electron app" 88/161088/1
Youngsoo Choi [Tue, 21 Nov 2017 10:51:21 +0000 (19:51 +0900)]
Revert "fix for electron app"

This reverts the draft patch that was merged.

This reverts commit 5fcc70871dadcf7c5c4246e17ecfc9f1fb76ad3b.

Change-Id: If7885d4f1f029d09edbbce2dfcefea917f82ddc2

6 years agoMerge "[WRT][Extension] Update AppManager & app timer" into tizen.devel
jaekuk, lee [Tue, 21 Nov 2017 10:25:09 +0000 (10:25 +0000)]
Merge "[WRT][Extension] Update AppManager & app timer" into tizen.devel

6 years agofix for electron app 20/161020/3
Youngsoo Choi [Tue, 21 Nov 2017 04:11:43 +0000 (13:11 +0900)]
fix for electron app

Change-Id: I473726f65753790406204f840b0ac580d584e64a
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years ago[WRT][Extension] Add default icons for extensions 19/161019/3
Youngsoo Choi [Tue, 21 Nov 2017 04:09:48 +0000 (13:09 +0900)]
[WRT][Extension] Add default icons for extensions

This adds default icons for ad_plus, app_security, and app_timer.

Change-Id: I21860cfbad4e7c74912bb37926791fef26626d31
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years ago[WRT][Extension] Improve app securiy extension 15/160415/10
Sanghyup Lee [Thu, 16 Nov 2017 05:32:57 +0000 (14:32 +0900)]
[WRT][Extension] Improve app securiy extension

This patch includes below changes.

- User can set current application's pin with page action.
- Register popup doesn't displayed by default.
- Application will close with 'X' button only when verificaton
  failed.

Change-Id: I3587ae685d4def98bfa7fbcb4f2ce01e00b22f94
Signed-off-by: Sanghyup Lee <sh53.lee@samsung.com>
6 years ago[Extension] Add a point to ad plus extension 55/160755/14
min7.choi [Mon, 20 Nov 2017 03:41:20 +0000 (12:41 +0900)]
[Extension] Add a point to ad plus extension

Change-Id: I0bab196d21c43df6abb338219225fd16fd279a9f
Signed-off-by: min7.choi <min7.choi@samsung.com>
6 years ago[WRT][Extension] Update AppManager & app timer 18/161018/2
jaekuk, lee [Tue, 21 Nov 2017 05:48:08 +0000 (14:48 +0900)]
[WRT][Extension] Update AppManager & app timer

Change-Id: If671cdf20190a0f96484519fecac5773379877d6
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
6 years ago[WRT][Extension] Add page action for ad_plus extension 87/160687/8
Youngsoo Choi [Fri, 17 Nov 2017 12:05:55 +0000 (21:05 +0900)]
[WRT][Extension] Add page action for ad_plus extension

The page action is implemented for ad_plus.

Change-Id: I6477ceaad95c0eb0ba884b3b94aa49605a432ea0
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years ago[WRT][Extension] Add system extension for page action 86/160686/6
Youngsoo Choi [Fri, 17 Nov 2017 11:38:53 +0000 (20:38 +0900)]
[WRT][Extension] Add system extension for page action

This system extension provides UX and UI for page action.
The each activated extensions can run it's own page action
by hotkey 'F1' for desktop or 'menu' for tizen targets.

Change-Id: I9c2166b4cc91d92b971c2068ae4455fa2a7a56cb
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years ago[WRT] Remove log 85/160685/1
Youngsoo Choi [Fri, 17 Nov 2017 12:28:29 +0000 (21:28 +0900)]
[WRT] Remove log

This removes the log causing error like below.

>> Uncaught Exception:
>> TypeError: Converting circular structure to JSON

Change-Id: I5d47eab5d5f226010e42f2ff1ed499ca0c6647b3
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years agoUpdate AppManager.wgt 66/160566/3
jaekuk, lee [Fri, 17 Nov 2017 02:23:20 +0000 (11:23 +0900)]
Update AppManager.wgt

Change-Id: Id3b20e65bea022a66a72bf259721edab6920563f
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
6 years agoUpdate AppManager & app timer 91/160391/3
jaekuk, lee [Thu, 16 Nov 2017 04:01:43 +0000 (13:01 +0900)]
Update AppManager & app timer

Change-Id: Id3d9ab73a4a9851024db9e95936bf826f08762c2
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
6 years agoAdd jsonfile npm to node_modules 27/160227/1
jaekuk, lee [Wed, 15 Nov 2017 02:22:30 +0000 (11:22 +0900)]
Add jsonfile npm to node_modules

Change-Id: Ia2554a06c1222c5d48593515526b14fbbba394cf
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
6 years agoRun wrt launcher by opensource electron 99/159899/4
Youngsoo Choi [Mon, 13 Nov 2017 12:57:26 +0000 (21:57 +0900)]
Run wrt launcher by opensource electron

The wrt launcher can be run by following command.

$ ./out/D/resources/run_was_ubuntu.sh -e /PATH/TO/OPENSOURCE_ELECTRON_BINARY

Change-Id: I3b8ff13e33f9d0bb20239b8289ce5e8eb3694007
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years agofixup! [Tizen][TV] Support mouse cursor on product tv 80/159880/10
Youngsoo Choi [Mon, 13 Nov 2017 10:46:18 +0000 (19:46 +0900)]
fixup! [Tizen][TV] Support mouse cursor on product tv

The flag tizen_product_tv is set to 0 as default.

>> name 'tizen_product_tv' is not defined
>> while evaluating condition 'tizen_product_tv==1' in electron.gyp

Change-Id: I9e5a7a6ef4f86c543aa49e4dfa80c9d692e4c9a1
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years agofixup! [Tizen] Support HW key event 75/159875/11
Youngsoo Choi [Mon, 13 Nov 2017 10:44:32 +0000 (19:44 +0900)]
fixup! [Tizen] Support HW key event

The efl-extension is not supportive on desktop.

1. no package found
>> Package efl-extension was not found in the pkg-config search path.
>> Perhaps you should add the directory containing `efl-extension.pc'
>> to the PKG_CONFIG_PATH environment variable
>> No package 'efl-extension' found

2. not declared function
>> error: ‘HWBackKeyCallback’ was not declared in this scope

Change-Id: I252aa5368723c82d13ee567a60b83b8f41241d3c
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years agoUpdate AppManager.wgt 55/159855/1
jaekuk, lee [Mon, 13 Nov 2017 08:31:42 +0000 (17:31 +0900)]
Update AppManager.wgt

Change-Id: Ie728daebc8fb284ad2f52b772f73a2473e199874
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
6 years agoUpdate AppManager.wgt 35/159835/1
jaekuk, lee [Mon, 13 Nov 2017 07:20:05 +0000 (16:20 +0900)]
Update AppManager.wgt

Change-Id: I6215dff4c9114d50ee784b20f45fe5f8bc1b46ee
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
6 years agoMerge "[Extension] Add App Timer extension & sample app" into tizen.devel
jaekuk, lee [Fri, 10 Nov 2017 01:22:25 +0000 (01:22 +0000)]
Merge "[Extension] Add App Timer extension & sample app" into tizen.devel

6 years ago[Tizen][TV] Support mouse cursor on product tv 17/159417/1
Youngsoo Choi [Thu, 9 Nov 2017 00:46:22 +0000 (09:46 +0900)]
[Tizen][TV] Support mouse cursor on product tv

This supports mouse cursor on product tv.

Change-Id: I5daa456e3ee27a430dfd0c3a7a2806faa07e12e8
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years ago[Tizen] Support HW key event 01/159001/5
Sanghyup Lee [Mon, 6 Nov 2017 08:51:00 +0000 (17:51 +0900)]
[Tizen] Support HW key event

Send tizenhwkey custom event from HW back/More keys.
And close default apps with HW back key.

Change-Id: I625372d11f35fd48ff847320082ca8bdc3c0637f
Signed-off-by: Sanghyup Lee <sh53.lee@samsung.com>
6 years ago[Tizen] Fix file permission error 82/159282/4
Sanghyup Lee [Wed, 8 Nov 2017 02:38:16 +0000 (11:38 +0900)]
[Tizen] Fix file permission error

Owner account can't write in current resource path.
This patch fixes resource path.

- From: /usr/apps/org.tizen.electron-efl/bin/resources/wrt_release
- To: /opt/usr/home/owner/data/electron

Change-Id: Ia0a8795033545489981c0663349aea4b64d49591
Signed-off-by: Sanghyup Lee <sh53.lee@samsung.com>
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years ago[Tizen][TV][Bringup] Fix build error related to DevToolsManagerDelegate 25/159325/1
Youngsoo Choi [Wed, 8 Nov 2017 07:17:45 +0000 (16:17 +0900)]
[Tizen][TV][Bringup] Fix build error related to DevToolsManagerDelegate

The pure virtual function ReleasePort of class DevToolsManagerDelegate
has been defined for product tv on chromium-efl.
So, the inherited class from DevToolsManagerDelegate
needs to implement the function ReleasePort.

Mock-up function ReleasePort is added.

Change-Id: I7dc13ba51a3617f17b40bca43736dad88cc620bf
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years ago[Tizen][TV] Add supplementary repository of chromium-efl 24/159324/1
Youngsoo Choi [Wed, 8 Nov 2017 07:16:24 +0000 (16:16 +0900)]
[Tizen][TV] Add supplementary repository of chromium-efl

Currently, chromium-efl enabling electron is not released to public repository.
So, supplementary repository is needed until it is released in public.

Change-Id: If8ece2a007a16ca9989df59b4d0c833b1322fe78
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years ago[Tizen][TV] Support product tv build 23/159323/1
Youngsoo Choi [Tue, 7 Nov 2017 08:00:38 +0000 (17:00 +0900)]
[Tizen][TV] Support product tv build

This adds build configurations and script for product tv target.

* build command:
$ ./efl/build/build_tv.sh

Change-Id: I5940894bc217007da457491e2eaf8022c8ae4f05
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years ago[Extension] Add App Timer extension & sample app 95/159195/4
jaekuk, lee [Tue, 7 Nov 2017 10:20:21 +0000 (19:20 +0900)]
[Extension] Add App Timer extension & sample app

This extension sets the timer for App.
version 2.0.0

Change-Id: I5065b67b94ca1a2bbdc75108aa7d9bd9311567fb
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
6 years agofixup! [Tizen] Add script to set environment variables 34/159034/3
Youngsoo Choi [Mon, 6 Nov 2017 12:55:45 +0000 (21:55 +0900)]
fixup! [Tizen] Add script to set environment variables

Tizen app framework sends magic value of parameter, like 'zaybxcwdveuftgsh'
when launching app on homescreen.

This ignores the magic value.

Change-Id: I0c4ce984ecdc592489885aa4a14c9b6e427109f4
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years ago[Tizen] Remove dependency of elocation 93/158793/3
Youngsoo Choi [Fri, 3 Nov 2017 05:36:12 +0000 (14:36 +0900)]
[Tizen] Remove dependency of elocation

It's only needed for desktop build.

Change-Id: Ia9396819cb92575c6c9d714ce7998e515fc7fdd7
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years agoUpgrade version of efl, elementary 15/158915/4
min7.choi [Mon, 6 Nov 2017 02:42:19 +0000 (11:42 +0900)]
Upgrade version of efl, elementary

This supports upgraded efl and elementary.
Also, ftp protocol of source repository is changed to http protocol.

Change-Id: Idd2f71dcb207dc42455e08f6854710f3d191df4d
Signed-off-by: min7.choi <min7.choi@samsung.com>
6 years ago[Tizen] Add script to set environment variables 77/158777/3
Youngsoo Choi [Fri, 3 Nov 2017 04:19:05 +0000 (13:19 +0900)]
[Tizen] Add script to set environment variables

Change-Id: I03df4c02bd7c78d57f8a4915790e3d759c9ec71d
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years agoProvide harfbuzz via jhbuild 55/158655/5
Youngsoo Choi [Thu, 2 Nov 2017 09:23:05 +0000 (18:23 +0900)]
Provide harfbuzz via jhbuild

This adds library harfbuzz to fix build break on Ubuntu 14.04.

Change-Id: I3047b4c1f9163595376dfb2e2354f6d5e527d6c3
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years ago[Tizen][WRT] Generate app.asar running web runtime 61/158561/6
Youngsoo Choi [Thu, 2 Nov 2017 00:47:40 +0000 (09:47 +0900)]
[Tizen][WRT] Generate app.asar running web runtime

In gbs build, grunt is not working when handling too many files.
So, this tries to generate app.asar using asar module without grunt.

Change-Id: I4273873024f76c11f4a9dfee18ec9844b97fc116
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years ago[Tizen] Disable desktop_capturer 72/157272/11
Youngsoo Choi [Thu, 19 Oct 2017 02:26:52 +0000 (11:26 +0900)]
[Tizen] Disable desktop_capturer

The desktop_capturer depends on webrtc.
Btw, chromium-efl depends on webrtc using CAPI.
So, the desktop_capturer is not supported on chromium-efl.

Change-Id: I53b7bdf2077fb9e8c888f6c2d990bc9069a189ab
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years ago[Tizen] Disable printing 71/157271/11
Youngsoo Choi [Thu, 19 Oct 2017 04:12:20 +0000 (13:12 +0900)]
[Tizen] Disable printing

The chromium-efl does not support printing feature on tizen.

Change-Id: I8b6561968b85f295f115141475c5386a071fa359
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years ago[Tizen] Add chromium-efl headers 38/157438/7
Youngsoo Choi [Tue, 24 Oct 2017 06:34:55 +0000 (15:34 +0900)]
[Tizen] Add chromium-efl headers

It's not possible to provide chromium-efl headers from chromium-efl rpm
because tons of header files make chromium-efl rpm size too big.
So, they are added in electron-efl.

Change-Id: I839c2829c035ce5b9a14f56b99015014d640547d
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>