You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Daniel Toplak <da...@gmx.de> on 2013/11/26 23:49:09 UTC

Re: Node-Webkit

Hi,

I am interesting in these too. As a proof of concept I have started a 
cordova-cef (cef = Chromium Embeded Framwork) implementation which is 
planed to run on Windows, OSX and Linux.
The repo: https://github.com/hsimpson/cordova-cef
And it's cordova-js fork: https://github.com/hsimpson/cordova-js
It is not very far but some basics on windows are working.

I plan to implement OpenGL offscreen rendering of the web content on all 
platforms. Because I want to run an opengl engine implemented in c++ as 
a cordova plugin. I know CEF will support WebGL, but the OpenGL Render 
Engine Plugin should also work on the mobile platforms iOS, Android and 
probably Windows Phone 8 via Angle (I will open source this plugin later).

<https://github.com/hsimpson/cordova-cef>

Mit freundlichen Grüßen / Best regards

*Daniel Toplak*

Am 16.10.2013 20:04, schrieb James Jong:
> +1 Would love to see this as a new platform.
>
> -James Jong
>
> On Oct 15, 2013, at 2:11 PM, Shazron <sh...@gmail.com> wrote:
>
>> This is interesting (I like the 3 platforms support) - if this gets in, I
>> propose retiring the cordova-osx repo.
>>
>>
>> On Tue, Oct 15, 2013 at 11:00 AM, Maxime LUCE <Ma...@somatic.fr> wrote:
>>
>>> Yes Jesse,
>>>
>>> It's about supporting node-webkit as a new, different platform.
>>> I see some great value added to a desktop platform :
>>>
>>> - Really easy to debug (chromium dev tools integrated)
>>> - Allow kiosk mode and other desktop integration which can be usefull in
>>> touch aware application.
>>> - Allow packaging and distribution on 3 main desktop OS.
>>>
>>> I think Cordova is mostly a bridge between HTML and Native APIs.
>>> Node-webkit enable a bridged communication between Webkit and Node.JS so
>>> can be used as a command proxy for Cordova.
>>>
>>> You also have the new packaged Chrome Apps which can be great to support
>>> too, I think.
>>>
>>> I think a cordova-desktop repository could be a great place to try out
>>> theses platforms.
>>>
>>>
>>> Cordialement.
>>>
>>>
>>> Maxime LUCE
>>>
>>>
>>> maxime@touchit.fr
>>> 06 28 60 72 34
>>> http://touchit.fr
>>>
>>>
>>> -----Original Message-----
>>> From: Jesse [mailto:purplecabbage@gmail.com]
>>> Sent: mardi 15 octobre 2013 19:45
>>> To: dev@cordova.apache.org
>>> Subject: Re: Node-Webkit
>>>
>>> No, we are talking about node-webkit OR appjs as another target platform
>>> to support, which would mean we could build for apps for Windows, Linux,
>>> OSX desktop applications.
>>> I think node-webkit is the more mature platform, but I have only glanced
>>> at both. Definitely interesting.
>>>
>>>
>>> @purplecabbage
>>> risingj.com
>>>
>>>
>>> On Tue, Oct 15, 2013 at 10:38 AM, Brian LeRoux <b...@brian.io> wrote:
>>>
>>>> Cordova is mostly about phones (except when its OS X and Windows).
>>>> Node support is not a project goal though I would encourage you to
>>>> look at authoring plugins for iOS, Android, Windows Phone that mimic
>>>> Node APIs if that is something you're looking for.
>>>>
>>>>
>>>> On Tue, Oct 15, 2013 at 1:27 PM, Maxime LUCE <Ma...@somatic.fr> wrote:
>>>>
>>>>> What about a node-webkit or appjs platform integration ?
>>>>>
>>>>> It could help debugging with Cordova related projects and permit to
>>>>> add three platform with one platform : "Windows", "Linux", "OSX".
>>>>> I'm thinking about a platform proxy for node-webkit and/or
>>>> appjs-deskshell.
>>>>> What do you think of this improvement ?
>>>>> Is there some node-webkit specialists which can helps in this project ?
>>>>>
>>>>> Cordialement.
>>>>>
>>>>> [Touch it]
>>>>>
>>>>> Maxime LUCE
>>>>>
>>>>> [Facebook]<http://www.facebook.com/pages/Touch-it/326622874049375>
>>>>>
>>>>> [Twitter]<https://twitter.com/#%21/Touchit_App>
>>>>>
>>>>> maxime@touchit.fr
>>>>> 06 28 60 72 34
>>>>> http://touchit.fr
>>>>>
>>>>>
>>>>>
>>>>>


Re: Node-Webkit

Posted by Michal Mocny <mm...@chromium.org>.
Great point about nacl (or pnacl).  But that is within a sandbox, so you
cannot access the system in ways that weren't deemed safe & exposed by
Chrome.

If we (the Chrome Apps team) have done our job right, there should be
nothing you cannot build inside a Chrome Packaged App, but I wanted to be
honest about the constraints of the environment.


On Thu, Nov 28, 2013 at 10:22 AM, Andrew Grieve <ag...@chromium.org>wrote:

> You can actually use C++ & OpenGL ES2 via a nacl plugin within chrome
> packaged apps.
>
>
> On Tue, Nov 26, 2013 at 8:59 PM, Michal Mocny <mm...@chromium.org> wrote:
>
> > Instead of going with CEF, have you evaluated using just regular Chrome
> > Packaged Apps as the target platform?  It would mean a certain limit to
> > flexibility (you cannot extend the browser with arbitrary C++ code), but
> > you would leverage a tremendous amount of effort already put forth by
> > Chrome team if you went that route, and I suspect that much of the native
> > support you want is already implemented by the platform.  Let us know of
> > any concerns you have, and we can try to help address/resolve them.
> >
> > Google already has a team working on cordova, but we absolutely do not
> have
> > the spare cycles to work on this full time right now.  That doesn't mean
> we
> > won't find the passion to help occasionally!
> >
> > -Michal
> >
> >
> > On Tue, Nov 26, 2013 at 2:49 PM, Daniel Toplak <da...@gmx.de>
> > wrote:
> >
> > > Hi,
> > >
> > > I am interesting in these too. As a proof of concept I have started a
> > > cordova-cef (cef = Chromium Embeded Framwork) implementation which is
> > > planed to run on Windows, OSX and Linux.
> > > The repo: https://github.com/hsimpson/cordova-cef
> > > And it's cordova-js fork: https://github.com/hsimpson/cordova-js
> > > It is not very far but some basics on windows are working.
> > >
> > > I plan to implement OpenGL offscreen rendering of the web content on
> all
> > > platforms. Because I want to run an opengl engine implemented in c++
> as a
> > > cordova plugin. I know CEF will support WebGL, but the OpenGL Render
> > Engine
> > > Plugin should also work on the mobile platforms iOS, Android and
> probably
> > > Windows Phone 8 via Angle (I will open source this plugin later).
> > >
> > > <https://github.com/hsimpson/cordova-cef>
> > >
> > > Mit freundlichen Grüßen / Best regards
> > >
> > > *Daniel Toplak*
> > >
> > > Am 16.10.2013 20:04, schrieb James Jong:
> > >
> > >  +1 Would love to see this as a new platform.
> > >>
> > >> -James Jong
> > >>
> > >> On Oct 15, 2013, at 2:11 PM, Shazron <sh...@gmail.com> wrote:
> > >>
> > >>  This is interesting (I like the 3 platforms support) - if this gets
> > in, I
> > >>> propose retiring the cordova-osx repo.
> > >>>
> > >>>
> > >>> On Tue, Oct 15, 2013 at 11:00 AM, Maxime LUCE <Ma...@somatic.fr>
> > wrote:
> > >>>
> > >>>  Yes Jesse,
> > >>>>
> > >>>> It's about supporting node-webkit as a new, different platform.
> > >>>> I see some great value added to a desktop platform :
> > >>>>
> > >>>> - Really easy to debug (chromium dev tools integrated)
> > >>>> - Allow kiosk mode and other desktop integration which can be
> usefull
> > in
> > >>>> touch aware application.
> > >>>> - Allow packaging and distribution on 3 main desktop OS.
> > >>>>
> > >>>> I think Cordova is mostly a bridge between HTML and Native APIs.
> > >>>> Node-webkit enable a bridged communication between Webkit and
> Node.JS
> > so
> > >>>> can be used as a command proxy for Cordova.
> > >>>>
> > >>>> You also have the new packaged Chrome Apps which can be great to
> > support
> > >>>> too, I think.
> > >>>>
> > >>>> I think a cordova-desktop repository could be a great place to try
> out
> > >>>> theses platforms.
> > >>>>
> > >>>>
> > >>>> Cordialement.
> > >>>>
> > >>>>
> > >>>> Maxime LUCE
> > >>>>
> > >>>>
> > >>>> maxime@touchit.fr
> > >>>> 06 28 60 72 34
> > >>>> http://touchit.fr
> > >>>>
> > >>>>
> > >>>> -----Original Message-----
> > >>>> From: Jesse [mailto:purplecabbage@gmail.com]
> > >>>> Sent: mardi 15 octobre 2013 19:45
> > >>>> To: dev@cordova.apache.org
> > >>>> Subject: Re: Node-Webkit
> > >>>>
> > >>>> No, we are talking about node-webkit OR appjs as another target
> > platform
> > >>>> to support, which would mean we could build for apps for Windows,
> > Linux,
> > >>>> OSX desktop applications.
> > >>>> I think node-webkit is the more mature platform, but I have only
> > glanced
> > >>>> at both. Definitely interesting.
> > >>>>
> > >>>>
> > >>>> @purplecabbage
> > >>>> risingj.com
> > >>>>
> > >>>>
> > >>>> On Tue, Oct 15, 2013 at 10:38 AM, Brian LeRoux <b...@brian.io> wrote:
> > >>>>
> > >>>>  Cordova is mostly about phones (except when its OS X and Windows).
> > >>>>> Node support is not a project goal though I would encourage you to
> > >>>>> look at authoring plugins for iOS, Android, Windows Phone that
> mimic
> > >>>>> Node APIs if that is something you're looking for.
> > >>>>>
> > >>>>>
> > >>>>> On Tue, Oct 15, 2013 at 1:27 PM, Maxime LUCE <Ma...@somatic.fr>
> > >>>>> wrote:
> > >>>>>
> > >>>>>  What about a node-webkit or appjs platform integration ?
> > >>>>>>
> > >>>>>> It could help debugging with Cordova related projects and permit
> to
> > >>>>>> add three platform with one platform : "Windows", "Linux", "OSX".
> > >>>>>> I'm thinking about a platform proxy for node-webkit and/or
> > >>>>>>
> > >>>>> appjs-deskshell.
> > >>>>>
> > >>>>>> What do you think of this improvement ?
> > >>>>>> Is there some node-webkit specialists which can helps in this
> > project
> > >>>>>> ?
> > >>>>>>
> > >>>>>> Cordialement.
> > >>>>>>
> > >>>>>> [Touch it]
> > >>>>>>
> > >>>>>> Maxime LUCE
> > >>>>>>
> > >>>>>> [Facebook]<http://www.facebook.com/pages/Touch-it/326622874049375
> >
> > >>>>>>
> > >>>>>> [Twitter]<https://twitter.com/#%21/Touchit_App>
> > >>>>>>
> > >>>>>> maxime@touchit.fr
> > >>>>>> 06 28 60 72 34
> > >>>>>> http://touchit.fr
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >
> >
>

Re: Node-Webkit

Posted by Andrew Grieve <ag...@chromium.org>.
You can actually use C++ & OpenGL ES2 via a nacl plugin within chrome
packaged apps.


On Tue, Nov 26, 2013 at 8:59 PM, Michal Mocny <mm...@chromium.org> wrote:

> Instead of going with CEF, have you evaluated using just regular Chrome
> Packaged Apps as the target platform?  It would mean a certain limit to
> flexibility (you cannot extend the browser with arbitrary C++ code), but
> you would leverage a tremendous amount of effort already put forth by
> Chrome team if you went that route, and I suspect that much of the native
> support you want is already implemented by the platform.  Let us know of
> any concerns you have, and we can try to help address/resolve them.
>
> Google already has a team working on cordova, but we absolutely do not have
> the spare cycles to work on this full time right now.  That doesn't mean we
> won't find the passion to help occasionally!
>
> -Michal
>
>
> On Tue, Nov 26, 2013 at 2:49 PM, Daniel Toplak <da...@gmx.de>
> wrote:
>
> > Hi,
> >
> > I am interesting in these too. As a proof of concept I have started a
> > cordova-cef (cef = Chromium Embeded Framwork) implementation which is
> > planed to run on Windows, OSX and Linux.
> > The repo: https://github.com/hsimpson/cordova-cef
> > And it's cordova-js fork: https://github.com/hsimpson/cordova-js
> > It is not very far but some basics on windows are working.
> >
> > I plan to implement OpenGL offscreen rendering of the web content on all
> > platforms. Because I want to run an opengl engine implemented in c++ as a
> > cordova plugin. I know CEF will support WebGL, but the OpenGL Render
> Engine
> > Plugin should also work on the mobile platforms iOS, Android and probably
> > Windows Phone 8 via Angle (I will open source this plugin later).
> >
> > <https://github.com/hsimpson/cordova-cef>
> >
> > Mit freundlichen Grüßen / Best regards
> >
> > *Daniel Toplak*
> >
> > Am 16.10.2013 20:04, schrieb James Jong:
> >
> >  +1 Would love to see this as a new platform.
> >>
> >> -James Jong
> >>
> >> On Oct 15, 2013, at 2:11 PM, Shazron <sh...@gmail.com> wrote:
> >>
> >>  This is interesting (I like the 3 platforms support) - if this gets
> in, I
> >>> propose retiring the cordova-osx repo.
> >>>
> >>>
> >>> On Tue, Oct 15, 2013 at 11:00 AM, Maxime LUCE <Ma...@somatic.fr>
> wrote:
> >>>
> >>>  Yes Jesse,
> >>>>
> >>>> It's about supporting node-webkit as a new, different platform.
> >>>> I see some great value added to a desktop platform :
> >>>>
> >>>> - Really easy to debug (chromium dev tools integrated)
> >>>> - Allow kiosk mode and other desktop integration which can be usefull
> in
> >>>> touch aware application.
> >>>> - Allow packaging and distribution on 3 main desktop OS.
> >>>>
> >>>> I think Cordova is mostly a bridge between HTML and Native APIs.
> >>>> Node-webkit enable a bridged communication between Webkit and Node.JS
> so
> >>>> can be used as a command proxy for Cordova.
> >>>>
> >>>> You also have the new packaged Chrome Apps which can be great to
> support
> >>>> too, I think.
> >>>>
> >>>> I think a cordova-desktop repository could be a great place to try out
> >>>> theses platforms.
> >>>>
> >>>>
> >>>> Cordialement.
> >>>>
> >>>>
> >>>> Maxime LUCE
> >>>>
> >>>>
> >>>> maxime@touchit.fr
> >>>> 06 28 60 72 34
> >>>> http://touchit.fr
> >>>>
> >>>>
> >>>> -----Original Message-----
> >>>> From: Jesse [mailto:purplecabbage@gmail.com]
> >>>> Sent: mardi 15 octobre 2013 19:45
> >>>> To: dev@cordova.apache.org
> >>>> Subject: Re: Node-Webkit
> >>>>
> >>>> No, we are talking about node-webkit OR appjs as another target
> platform
> >>>> to support, which would mean we could build for apps for Windows,
> Linux,
> >>>> OSX desktop applications.
> >>>> I think node-webkit is the more mature platform, but I have only
> glanced
> >>>> at both. Definitely interesting.
> >>>>
> >>>>
> >>>> @purplecabbage
> >>>> risingj.com
> >>>>
> >>>>
> >>>> On Tue, Oct 15, 2013 at 10:38 AM, Brian LeRoux <b...@brian.io> wrote:
> >>>>
> >>>>  Cordova is mostly about phones (except when its OS X and Windows).
> >>>>> Node support is not a project goal though I would encourage you to
> >>>>> look at authoring plugins for iOS, Android, Windows Phone that mimic
> >>>>> Node APIs if that is something you're looking for.
> >>>>>
> >>>>>
> >>>>> On Tue, Oct 15, 2013 at 1:27 PM, Maxime LUCE <Ma...@somatic.fr>
> >>>>> wrote:
> >>>>>
> >>>>>  What about a node-webkit or appjs platform integration ?
> >>>>>>
> >>>>>> It could help debugging with Cordova related projects and permit to
> >>>>>> add three platform with one platform : "Windows", "Linux", "OSX".
> >>>>>> I'm thinking about a platform proxy for node-webkit and/or
> >>>>>>
> >>>>> appjs-deskshell.
> >>>>>
> >>>>>> What do you think of this improvement ?
> >>>>>> Is there some node-webkit specialists which can helps in this
> project
> >>>>>> ?
> >>>>>>
> >>>>>> Cordialement.
> >>>>>>
> >>>>>> [Touch it]
> >>>>>>
> >>>>>> Maxime LUCE
> >>>>>>
> >>>>>> [Facebook]<http://www.facebook.com/pages/Touch-it/326622874049375>
> >>>>>>
> >>>>>> [Twitter]<https://twitter.com/#%21/Touchit_App>
> >>>>>>
> >>>>>> maxime@touchit.fr
> >>>>>> 06 28 60 72 34
> >>>>>> http://touchit.fr
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >
>

Re: Node-Webkit

Posted by Michal Mocny <mm...@chromium.org>.
Instead of going with CEF, have you evaluated using just regular Chrome
Packaged Apps as the target platform?  It would mean a certain limit to
flexibility (you cannot extend the browser with arbitrary C++ code), but
you would leverage a tremendous amount of effort already put forth by
Chrome team if you went that route, and I suspect that much of the native
support you want is already implemented by the platform.  Let us know of
any concerns you have, and we can try to help address/resolve them.

Google already has a team working on cordova, but we absolutely do not have
the spare cycles to work on this full time right now.  That doesn't mean we
won't find the passion to help occasionally!

-Michal


On Tue, Nov 26, 2013 at 2:49 PM, Daniel Toplak <da...@gmx.de> wrote:

> Hi,
>
> I am interesting in these too. As a proof of concept I have started a
> cordova-cef (cef = Chromium Embeded Framwork) implementation which is
> planed to run on Windows, OSX and Linux.
> The repo: https://github.com/hsimpson/cordova-cef
> And it's cordova-js fork: https://github.com/hsimpson/cordova-js
> It is not very far but some basics on windows are working.
>
> I plan to implement OpenGL offscreen rendering of the web content on all
> platforms. Because I want to run an opengl engine implemented in c++ as a
> cordova plugin. I know CEF will support WebGL, but the OpenGL Render Engine
> Plugin should also work on the mobile platforms iOS, Android and probably
> Windows Phone 8 via Angle (I will open source this plugin later).
>
> <https://github.com/hsimpson/cordova-cef>
>
> Mit freundlichen Grüßen / Best regards
>
> *Daniel Toplak*
>
> Am 16.10.2013 20:04, schrieb James Jong:
>
>  +1 Would love to see this as a new platform.
>>
>> -James Jong
>>
>> On Oct 15, 2013, at 2:11 PM, Shazron <sh...@gmail.com> wrote:
>>
>>  This is interesting (I like the 3 platforms support) - if this gets in, I
>>> propose retiring the cordova-osx repo.
>>>
>>>
>>> On Tue, Oct 15, 2013 at 11:00 AM, Maxime LUCE <Ma...@somatic.fr> wrote:
>>>
>>>  Yes Jesse,
>>>>
>>>> It's about supporting node-webkit as a new, different platform.
>>>> I see some great value added to a desktop platform :
>>>>
>>>> - Really easy to debug (chromium dev tools integrated)
>>>> - Allow kiosk mode and other desktop integration which can be usefull in
>>>> touch aware application.
>>>> - Allow packaging and distribution on 3 main desktop OS.
>>>>
>>>> I think Cordova is mostly a bridge between HTML and Native APIs.
>>>> Node-webkit enable a bridged communication between Webkit and Node.JS so
>>>> can be used as a command proxy for Cordova.
>>>>
>>>> You also have the new packaged Chrome Apps which can be great to support
>>>> too, I think.
>>>>
>>>> I think a cordova-desktop repository could be a great place to try out
>>>> theses platforms.
>>>>
>>>>
>>>> Cordialement.
>>>>
>>>>
>>>> Maxime LUCE
>>>>
>>>>
>>>> maxime@touchit.fr
>>>> 06 28 60 72 34
>>>> http://touchit.fr
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Jesse [mailto:purplecabbage@gmail.com]
>>>> Sent: mardi 15 octobre 2013 19:45
>>>> To: dev@cordova.apache.org
>>>> Subject: Re: Node-Webkit
>>>>
>>>> No, we are talking about node-webkit OR appjs as another target platform
>>>> to support, which would mean we could build for apps for Windows, Linux,
>>>> OSX desktop applications.
>>>> I think node-webkit is the more mature platform, but I have only glanced
>>>> at both. Definitely interesting.
>>>>
>>>>
>>>> @purplecabbage
>>>> risingj.com
>>>>
>>>>
>>>> On Tue, Oct 15, 2013 at 10:38 AM, Brian LeRoux <b...@brian.io> wrote:
>>>>
>>>>  Cordova is mostly about phones (except when its OS X and Windows).
>>>>> Node support is not a project goal though I would encourage you to
>>>>> look at authoring plugins for iOS, Android, Windows Phone that mimic
>>>>> Node APIs if that is something you're looking for.
>>>>>
>>>>>
>>>>> On Tue, Oct 15, 2013 at 1:27 PM, Maxime LUCE <Ma...@somatic.fr>
>>>>> wrote:
>>>>>
>>>>>  What about a node-webkit or appjs platform integration ?
>>>>>>
>>>>>> It could help debugging with Cordova related projects and permit to
>>>>>> add three platform with one platform : "Windows", "Linux", "OSX".
>>>>>> I'm thinking about a platform proxy for node-webkit and/or
>>>>>>
>>>>> appjs-deskshell.
>>>>>
>>>>>> What do you think of this improvement ?
>>>>>> Is there some node-webkit specialists which can helps in this project
>>>>>> ?
>>>>>>
>>>>>> Cordialement.
>>>>>>
>>>>>> [Touch it]
>>>>>>
>>>>>> Maxime LUCE
>>>>>>
>>>>>> [Facebook]<http://www.facebook.com/pages/Touch-it/326622874049375>
>>>>>>
>>>>>> [Twitter]<https://twitter.com/#%21/Touchit_App>
>>>>>>
>>>>>> maxime@touchit.fr
>>>>>> 06 28 60 72 34
>>>>>> http://touchit.fr
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>