You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Hu, Ningxin" <ni...@intel.com> on 2013/12/03 14:40:49 UTC

Cordova and Crosswalk

Hi Cordova Developers,

Crosswalk [1] is a web application runtime based on Blink and Chromium. It supports Android 4.0+. By integrating Cordova with Crosswalk, it brings remote debugging capability, better HTML5 support and higher performance to Cordova apps.

In Crosswalk projects, there is a crosswalk-cordova-android project [2] to prove the idea. It is derived from Cordova Android [3] and embeds Crosswalk as the HTML5 runtime instead of WebView. Currently It is based on Cordova 3.0.0 and supports 16 Cordova APIs. Please check the wiki [4] for more details.

Your thoughts about the integration?
Is it possible to support Crosswalk runtime as a platform in Cordova upstream?

Thanks,
-ningxin

[1]: https://crosswalk-project.org/
[2]: https://github.com/crosswalk-project/crosswalk-cordova-android
[3]: https://github.com/apache/cordova-android
[4]: https://crosswalk-project.org/#wiki/crosswalk-cordova-android

RE: Cordova and Crosswalk

Posted by "Hu, Ningxin" <ni...@intel.com>.
> -----Original Message-----
> From: Ally Ogilvie [mailto:aogilvie@wizcorp.jp]
> Sent: Wednesday, December 04, 2013 4:35 PM
> To: dev@cordova.apache.org
> Subject: Re: Cordova and Crosswalk
> 
> Ningxin,
> 
> Fantastic work! Couple of quick questions;
> 
> - Crosswalk has support for some Cordova plugins, is that the same for ANY
> plugman & Cordova 3.0 compatible plugin?

The major difference is Crosswalk doesn't provide all APIs that WebView has. It just provides the essential ones (as we understand, we may add new if they are essential). So if the plugin calls some APIs Crosswalk doesn't have, it may fail. However, AFAIK, most plugins doesn't need to call WebView APIs.

A good example is Cordova contacts API @ 3.0.0. Contacts API refers to WebView although it doesn't use it. We worked with Crodova developers to fix that, see details at: https://github.com/apache/cordova-plugin-contacts/pull/8 

As current crosswalk-cordova-android is based 3.0.0, some new versions of plugin requires higher version. So we maintain a list of Cordova core plugins @ 3.0.0 verified with Crosswalk at: https://crosswalk-project.org/#wiki/Plugins-List-@-3.0.0-Supported-by-Crosswalk-Cordova-Android for your reference.

At meanwhile, we are working to rebase to latest Cordova Android, we believe we will get better plugins support.

> - I see Canvas 2D context is supported, how about canvas.getContext("webgl")
> || canvas.getContext("experimental-webgl")
> ? :p

WebGL is supported by default. And Canvas 2D is hardware accelerated.

Thanks,
-ningxin

> Or perhaps, that is a limitation of Blink?
> 
> Exciting stuff!
> Thanks,
> Ally.
> 
> 
> On Wed, Dec 4, 2013 at 3:17 PM, Hu, Ningxin <ni...@intel.com> wrote:
> 
> > > -----Original Message-----
> > > From: agrieve@google.com [mailto:agrieve@google.com] On Behalf Of
> > > Andrew Grieve
> > > Sent: Wednesday, December 04, 2013 10:39 AM
> > > To: Andrew Grieve
> > > Cc: dev
> > > Subject: Re: Cordova and Crosswalk
> > >
> > > On Tue, Dec 3, 2013 at 9:08 PM, Andrew Grieve <ag...@chromium.org>
> > wrote:
> > >
> > > > Wow, super impressive stuff!
> > > >
> > > > A couple things that weren't clear to me from your website:
> > > > - Is the idea that users will need to install XWalkRuntimeLib.apk
> > > > in addition to their app's .apk?
> > > > - Is it x86-only at the moment?
> > > >
> > > Also - What version of Android is required to use it? 4.0?
> >
> > Android 4.0+.
> >
> > Thanks,
> > -ningxin
> >
> > >
> > >
> > > >
> > > > It seems as though Xwalk is made to match the Android Webview API
> > > > quite closely. I'm hesitant to make a separate repo for
> > > > cordova-crosswalk for this reason. I think we'd benefit a lot more
> > > > by having a single code base that could work with either webview. E.g.
> > > > add a level of abstraction so that cordova-android and Android
> > > > plugins
> > could
> > > use either webview impl.
> > > >
> > > > Does that make sense? WDYT?
> > > >
> > > > Andrew
> > > >
> > > >
> > > >
> > > > On Tue, Dec 3, 2013 at 5:02 PM, Brian LeRoux <b...@brian.io> wrote:
> > > >
> > > >> Crosswalk is cool. Very aligned with the Cordova approach and our
> > > >> desktop (and even mobile runtime) story right now is somewhat
> > > >> scattered. A unified cross platform approach would be a welcome
> > > >> option for our community to be sure.
> > > >>
> > > >> So, are you guys saying you guys want to donate the source to
> > > >> Apache as a subproject of Cordova (Eg. as cordova-crosswalk)?
> > > >>
> > > >>
> > > >> On Wed, Dec 4, 2013 at 12:40 AM, Hu, Ningxin
> > > >> <ni...@intel.com>
> > > >> wrote:
> > > >>
> > > >> > Hi Cordova Developers,
> > > >> >
> > > >> > Crosswalk [1] is a web application runtime based on Blink and
> > Chromium.
> > > >> It
> > > >> > supports Android 4.0+. By integrating Cordova with Crosswalk,
> > > >> > it brings remote debugging capability, better HTML5 support and
> > > >> > higher
> > > >> performance to
> > > >> > Cordova apps.
> > > >> >
> > > >> > In Crosswalk projects, there is a crosswalk-cordova-android
> > > >> > project [2]
> > > >> to
> > > >> > prove the idea. It is derived from Cordova Android [3] and
> > > >> > embeds
> > > >> Crosswalk
> > > >> > as the HTML5 runtime instead of WebView. Currently It is based
> > > >> > on
> > > >> Cordova
> > > >> > 3.0.0 and supports 16 Cordova APIs. Please check the wiki [4]
> > > >> > for more details.
> > > >> >
> > > >> > Your thoughts about the integration?
> > > >> > Is it possible to support Crosswalk runtime as a platform in
> > > >> > Cordova upstream?
> > > >> >
> > > >> > Thanks,
> > > >> > -ningxin
> > > >> >
> > > >> > [1]: https://crosswalk-project.org/
> > > >> > [2]:
> > > >> > https://github.com/crosswalk-project/crosswalk-cordova-android
> > > >> > [3]: https://github.com/apache/cordova-android
> > > >> > [4]:
> > > >> > https://crosswalk-project.org/#wiki/crosswalk-cordova-android
> > > >> >
> > > >>
> > > >
> > > >
> >
> 
> 
> 
> --
> <http://www.wizcorp.jp/>Ally Ogilvie
> Lead Developer - MobDev. | Wizcorp Inc. <http://www.wizcorp.jp/>
> ------------------------------
> TECH . GAMING . OPEN-SOURCE WIZARDS+ 81 (0)3-4550-1448 |
> Website<http://www.wizcorp.jp/>  | Twitter <https://twitter.com/Wizcorp> |
> Facebook<http://www.facebook.com/Wizcorp>
>  | LinkedIn <http://www.linkedin.com/company/wizcorp>

Re: Cordova and Crosswalk

Posted by Ally Ogilvie <ao...@wizcorp.jp>.
Ningxin,

Fantastic work! Couple of quick questions;

- Crosswalk has support for some Cordova plugins, is that the same for ANY
plugman & Cordova 3.0 compatible plugin?
- I see Canvas 2D context is supported, how
about canvas.getContext("webgl") || canvas.getContext("experimental-webgl")
? :p
Or perhaps, that is a limitation of Blink?

Exciting stuff!
Thanks,
Ally.


On Wed, Dec 4, 2013 at 3:17 PM, Hu, Ningxin <ni...@intel.com> wrote:

> > -----Original Message-----
> > From: agrieve@google.com [mailto:agrieve@google.com] On Behalf Of Andrew
> > Grieve
> > Sent: Wednesday, December 04, 2013 10:39 AM
> > To: Andrew Grieve
> > Cc: dev
> > Subject: Re: Cordova and Crosswalk
> >
> > On Tue, Dec 3, 2013 at 9:08 PM, Andrew Grieve <ag...@chromium.org>
> wrote:
> >
> > > Wow, super impressive stuff!
> > >
> > > A couple things that weren't clear to me from your website:
> > > - Is the idea that users will need to install XWalkRuntimeLib.apk in
> > > addition to their app's .apk?
> > > - Is it x86-only at the moment?
> > >
> > Also - What version of Android is required to use it? 4.0?
>
> Android 4.0+.
>
> Thanks,
> -ningxin
>
> >
> >
> > >
> > > It seems as though Xwalk is made to match the Android Webview API
> > > quite closely. I'm hesitant to make a separate repo for
> > > cordova-crosswalk for this reason. I think we'd benefit a lot more by
> > > having a single code base that could work with either webview. E.g.
> > > add a level of abstraction so that cordova-android and Android plugins
> could
> > use either webview impl.
> > >
> > > Does that make sense? WDYT?
> > >
> > > Andrew
> > >
> > >
> > >
> > > On Tue, Dec 3, 2013 at 5:02 PM, Brian LeRoux <b...@brian.io> wrote:
> > >
> > >> Crosswalk is cool. Very aligned with the Cordova approach and our
> > >> desktop (and even mobile runtime) story right now is somewhat
> > >> scattered. A unified cross platform approach would be a welcome
> > >> option for our community to be sure.
> > >>
> > >> So, are you guys saying you guys want to donate the source to Apache
> > >> as a subproject of Cordova (Eg. as cordova-crosswalk)?
> > >>
> > >>
> > >> On Wed, Dec 4, 2013 at 12:40 AM, Hu, Ningxin <ni...@intel.com>
> > >> wrote:
> > >>
> > >> > Hi Cordova Developers,
> > >> >
> > >> > Crosswalk [1] is a web application runtime based on Blink and
> Chromium.
> > >> It
> > >> > supports Android 4.0+. By integrating Cordova with Crosswalk, it
> > >> > brings remote debugging capability, better HTML5 support and higher
> > >> performance to
> > >> > Cordova apps.
> > >> >
> > >> > In Crosswalk projects, there is a crosswalk-cordova-android project
> > >> > [2]
> > >> to
> > >> > prove the idea. It is derived from Cordova Android [3] and embeds
> > >> Crosswalk
> > >> > as the HTML5 runtime instead of WebView. Currently It is based on
> > >> Cordova
> > >> > 3.0.0 and supports 16 Cordova APIs. Please check the wiki [4] for
> > >> > more details.
> > >> >
> > >> > Your thoughts about the integration?
> > >> > Is it possible to support Crosswalk runtime as a platform in
> > >> > Cordova upstream?
> > >> >
> > >> > Thanks,
> > >> > -ningxin
> > >> >
> > >> > [1]: https://crosswalk-project.org/
> > >> > [2]: https://github.com/crosswalk-project/crosswalk-cordova-android
> > >> > [3]: https://github.com/apache/cordova-android
> > >> > [4]: https://crosswalk-project.org/#wiki/crosswalk-cordova-android
> > >> >
> > >>
> > >
> > >
>



-- 
<http://www.wizcorp.jp/>Ally Ogilvie
Lead Developer - MobDev. | Wizcorp Inc. <http://www.wizcorp.jp/>
------------------------------
TECH . GAMING . OPEN-SOURCE WIZARDS+ 81 (0)3-4550-1448 |
Website<http://www.wizcorp.jp/>
 | Twitter <https://twitter.com/Wizcorp> |
Facebook<http://www.facebook.com/Wizcorp>
 | LinkedIn <http://www.linkedin.com/company/wizcorp>

RE: Cordova and Crosswalk

Posted by "Hu, Ningxin" <ni...@intel.com>.
> -----Original Message-----
> From: agrieve@google.com [mailto:agrieve@google.com] On Behalf Of Andrew
> Grieve
> Sent: Wednesday, December 04, 2013 10:39 AM
> To: Andrew Grieve
> Cc: dev
> Subject: Re: Cordova and Crosswalk
> 
> On Tue, Dec 3, 2013 at 9:08 PM, Andrew Grieve <ag...@chromium.org> wrote:
> 
> > Wow, super impressive stuff!
> >
> > A couple things that weren't clear to me from your website:
> > - Is the idea that users will need to install XWalkRuntimeLib.apk in
> > addition to their app's .apk?
> > - Is it x86-only at the moment?
> >
> Also - What version of Android is required to use it? 4.0?

Android 4.0+.

Thanks,
-ningxin

> 
> 
> >
> > It seems as though Xwalk is made to match the Android Webview API
> > quite closely. I'm hesitant to make a separate repo for
> > cordova-crosswalk for this reason. I think we'd benefit a lot more by
> > having a single code base that could work with either webview. E.g.
> > add a level of abstraction so that cordova-android and Android plugins could
> use either webview impl.
> >
> > Does that make sense? WDYT?
> >
> > Andrew
> >
> >
> >
> > On Tue, Dec 3, 2013 at 5:02 PM, Brian LeRoux <b...@brian.io> wrote:
> >
> >> Crosswalk is cool. Very aligned with the Cordova approach and our
> >> desktop (and even mobile runtime) story right now is somewhat
> >> scattered. A unified cross platform approach would be a welcome
> >> option for our community to be sure.
> >>
> >> So, are you guys saying you guys want to donate the source to Apache
> >> as a subproject of Cordova (Eg. as cordova-crosswalk)?
> >>
> >>
> >> On Wed, Dec 4, 2013 at 12:40 AM, Hu, Ningxin <ni...@intel.com>
> >> wrote:
> >>
> >> > Hi Cordova Developers,
> >> >
> >> > Crosswalk [1] is a web application runtime based on Blink and Chromium.
> >> It
> >> > supports Android 4.0+. By integrating Cordova with Crosswalk, it
> >> > brings remote debugging capability, better HTML5 support and higher
> >> performance to
> >> > Cordova apps.
> >> >
> >> > In Crosswalk projects, there is a crosswalk-cordova-android project
> >> > [2]
> >> to
> >> > prove the idea. It is derived from Cordova Android [3] and embeds
> >> Crosswalk
> >> > as the HTML5 runtime instead of WebView. Currently It is based on
> >> Cordova
> >> > 3.0.0 and supports 16 Cordova APIs. Please check the wiki [4] for
> >> > more details.
> >> >
> >> > Your thoughts about the integration?
> >> > Is it possible to support Crosswalk runtime as a platform in
> >> > Cordova upstream?
> >> >
> >> > Thanks,
> >> > -ningxin
> >> >
> >> > [1]: https://crosswalk-project.org/
> >> > [2]: https://github.com/crosswalk-project/crosswalk-cordova-android
> >> > [3]: https://github.com/apache/cordova-android
> >> > [4]: https://crosswalk-project.org/#wiki/crosswalk-cordova-android
> >> >
> >>
> >
> >

Re: Cordova and Crosswalk

Posted by Andrew Grieve <ag...@chromium.org>.
On Tue, Dec 3, 2013 at 9:08 PM, Andrew Grieve <ag...@chromium.org> wrote:

> Wow, super impressive stuff!
>
> A couple things that weren't clear to me from your website:
> - Is the idea that users will need to install XWalkRuntimeLib.apk in
> addition to their app's .apk?
> - Is it x86-only at the moment?
>
Also - What version of Android is required to use it? 4.0?


>
> It seems as though Xwalk is made to match the Android Webview API quite
> closely. I'm hesitant to make a separate repo for cordova-crosswalk for
> this reason. I think we'd benefit a lot more by having a single code base
> that could work with either webview. E.g. add a level of abstraction so
> that cordova-android and Android plugins could use either webview impl.
>
> Does that make sense? WDYT?
>
> Andrew
>
>
>
> On Tue, Dec 3, 2013 at 5:02 PM, Brian LeRoux <b...@brian.io> wrote:
>
>> Crosswalk is cool. Very aligned with the Cordova approach and our desktop
>> (and even mobile runtime) story right now is somewhat scattered. A unified
>> cross platform approach would be a welcome option for our community to be
>> sure.
>>
>> So, are you guys saying you guys want to donate the source to Apache as a
>> subproject of Cordova (Eg. as cordova-crosswalk)?
>>
>>
>> On Wed, Dec 4, 2013 at 12:40 AM, Hu, Ningxin <ni...@intel.com>
>> wrote:
>>
>> > Hi Cordova Developers,
>> >
>> > Crosswalk [1] is a web application runtime based on Blink and Chromium.
>> It
>> > supports Android 4.0+. By integrating Cordova with Crosswalk, it brings
>> > remote debugging capability, better HTML5 support and higher
>> performance to
>> > Cordova apps.
>> >
>> > In Crosswalk projects, there is a crosswalk-cordova-android project [2]
>> to
>> > prove the idea. It is derived from Cordova Android [3] and embeds
>> Crosswalk
>> > as the HTML5 runtime instead of WebView. Currently It is based on
>> Cordova
>> > 3.0.0 and supports 16 Cordova APIs. Please check the wiki [4] for more
>> > details.
>> >
>> > Your thoughts about the integration?
>> > Is it possible to support Crosswalk runtime as a platform in Cordova
>> > upstream?
>> >
>> > Thanks,
>> > -ningxin
>> >
>> > [1]: https://crosswalk-project.org/
>> > [2]: https://github.com/crosswalk-project/crosswalk-cordova-android
>> > [3]: https://github.com/apache/cordova-android
>> > [4]: https://crosswalk-project.org/#wiki/crosswalk-cordova-android
>> >
>>
>
>

RE: Cordova and Crosswalk

Posted by "Hu, Ningxin" <ni...@intel.com>.
> -----Original Message-----
> From: agrieve@google.com [mailto:agrieve@google.com] On Behalf Of Andrew
> Grieve
> Sent: Wednesday, December 04, 2013 10:08 AM
> To: dev
> Subject: Re: Cordova and Crosswalk
> 
> Wow, super impressive stuff!
> 
> A couple things that weren't clear to me from your website:
> - Is the idea that users will need to install XWalkRuntimeLib.apk in addition to
> their app's .apk?
No. Crosswalk is embedded into your Cordova app.apk. No dependent APK will be needed to install your app with Crosswalk.

Please refer to our wiki https://crosswalk-project.org/#wiki/crosswalk-cordova-android for details.

> - Is it x86-only at the moment?
No. it supports both ARM and x86.

> It seems as though Xwalk is made to match the Android Webview API quite
> closely. I'm hesitant to make a separate repo for cordova-crosswalk for this
> reason. I think we'd benefit a lot more by having a single code base that could
> work with either webview. E.g. add a level of abstraction so that cordova-android
> and Android plugins could use either webview impl.
> 
> Does that make sense? WDYT?
> 
It is a good idea. We track this feature as https://crosswalk-project.org/jira/browse/XWALK-515. If people vote for this, we would like to implement it.

Thanks,
-ningxin

> Andrew
> 
> 
> 
> On Tue, Dec 3, 2013 at 5:02 PM, Brian LeRoux <b...@brian.io> wrote:
> 
> > Crosswalk is cool. Very aligned with the Cordova approach and our
> > desktop (and even mobile runtime) story right now is somewhat
> > scattered. A unified cross platform approach would be a welcome option
> > for our community to be sure.
> >
> > So, are you guys saying you guys want to donate the source to Apache
> > as a subproject of Cordova (Eg. as cordova-crosswalk)?
> >
> >
> > On Wed, Dec 4, 2013 at 12:40 AM, Hu, Ningxin <ni...@intel.com> wrote:
> >
> > > Hi Cordova Developers,
> > >
> > > Crosswalk [1] is a web application runtime based on Blink and Chromium.
> > It
> > > supports Android 4.0+. By integrating Cordova with Crosswalk, it
> > > brings remote debugging capability, better HTML5 support and higher
> > > performance
> > to
> > > Cordova apps.
> > >
> > > In Crosswalk projects, there is a crosswalk-cordova-android project
> > > [2]
> > to
> > > prove the idea. It is derived from Cordova Android [3] and embeds
> > Crosswalk
> > > as the HTML5 runtime instead of WebView. Currently It is based on
> > > Cordova
> > > 3.0.0 and supports 16 Cordova APIs. Please check the wiki [4] for
> > > more details.
> > >
> > > Your thoughts about the integration?
> > > Is it possible to support Crosswalk runtime as a platform in Cordova
> > > upstream?
> > >
> > > Thanks,
> > > -ningxin
> > >
> > > [1]: https://crosswalk-project.org/
> > > [2]: https://github.com/crosswalk-project/crosswalk-cordova-android
> > > [3]: https://github.com/apache/cordova-android
> > > [4]: https://crosswalk-project.org/#wiki/crosswalk-cordova-android
> > >
> >

Re: Cordova and Crosswalk

Posted by Andrew Grieve <ag...@chromium.org>.
Wow, super impressive stuff!

A couple things that weren't clear to me from your website:
- Is the idea that users will need to install XWalkRuntimeLib.apk in
addition to their app's .apk?
- Is it x86-only at the moment?

It seems as though Xwalk is made to match the Android Webview API quite
closely. I'm hesitant to make a separate repo for cordova-crosswalk for
this reason. I think we'd benefit a lot more by having a single code base
that could work with either webview. E.g. add a level of abstraction so
that cordova-android and Android plugins could use either webview impl.

Does that make sense? WDYT?

Andrew



On Tue, Dec 3, 2013 at 5:02 PM, Brian LeRoux <b...@brian.io> wrote:

> Crosswalk is cool. Very aligned with the Cordova approach and our desktop
> (and even mobile runtime) story right now is somewhat scattered. A unified
> cross platform approach would be a welcome option for our community to be
> sure.
>
> So, are you guys saying you guys want to donate the source to Apache as a
> subproject of Cordova (Eg. as cordova-crosswalk)?
>
>
> On Wed, Dec 4, 2013 at 12:40 AM, Hu, Ningxin <ni...@intel.com> wrote:
>
> > Hi Cordova Developers,
> >
> > Crosswalk [1] is a web application runtime based on Blink and Chromium.
> It
> > supports Android 4.0+. By integrating Cordova with Crosswalk, it brings
> > remote debugging capability, better HTML5 support and higher performance
> to
> > Cordova apps.
> >
> > In Crosswalk projects, there is a crosswalk-cordova-android project [2]
> to
> > prove the idea. It is derived from Cordova Android [3] and embeds
> Crosswalk
> > as the HTML5 runtime instead of WebView. Currently It is based on Cordova
> > 3.0.0 and supports 16 Cordova APIs. Please check the wiki [4] for more
> > details.
> >
> > Your thoughts about the integration?
> > Is it possible to support Crosswalk runtime as a platform in Cordova
> > upstream?
> >
> > Thanks,
> > -ningxin
> >
> > [1]: https://crosswalk-project.org/
> > [2]: https://github.com/crosswalk-project/crosswalk-cordova-android
> > [3]: https://github.com/apache/cordova-android
> > [4]: https://crosswalk-project.org/#wiki/crosswalk-cordova-android
> >
>

Re: Cordova and Crosswalk

Posted by Brian LeRoux <b...@brian.io>.
Crosswalk is cool. Very aligned with the Cordova approach and our desktop
(and even mobile runtime) story right now is somewhat scattered. A unified
cross platform approach would be a welcome option for our community to be
sure.

So, are you guys saying you guys want to donate the source to Apache as a
subproject of Cordova (Eg. as cordova-crosswalk)?


On Wed, Dec 4, 2013 at 12:40 AM, Hu, Ningxin <ni...@intel.com> wrote:

> Hi Cordova Developers,
>
> Crosswalk [1] is a web application runtime based on Blink and Chromium. It
> supports Android 4.0+. By integrating Cordova with Crosswalk, it brings
> remote debugging capability, better HTML5 support and higher performance to
> Cordova apps.
>
> In Crosswalk projects, there is a crosswalk-cordova-android project [2] to
> prove the idea. It is derived from Cordova Android [3] and embeds Crosswalk
> as the HTML5 runtime instead of WebView. Currently It is based on Cordova
> 3.0.0 and supports 16 Cordova APIs. Please check the wiki [4] for more
> details.
>
> Your thoughts about the integration?
> Is it possible to support Crosswalk runtime as a platform in Cordova
> upstream?
>
> Thanks,
> -ningxin
>
> [1]: https://crosswalk-project.org/
> [2]: https://github.com/crosswalk-project/crosswalk-cordova-android
> [3]: https://github.com/apache/cordova-android
> [4]: https://crosswalk-project.org/#wiki/crosswalk-cordova-android
>

Re: Cordova and Crosswalk

Posted by Andrew Grieve <ag...@chromium.org>.
I think so. One way I can see this going is to create a Java Interface for
the webview and associated classes that Cordova uses, and add to that
interface every method that Cordova uses. Then, have implementations of
those interfaces by each engine.


On Wed, Dec 4, 2013 at 11:55 PM, Hu, Ningxin <ni...@intel.com> wrote:

> > -----Original Message-----
> > From: Jonathan Bond-Caron [mailto:jbondc@gdesolutions.com]
> > Sent: Wednesday, December 04, 2013 11:47 PM
> > To: dev@cordova.apache.org
> > Subject: RE: Cordova and Crosswalk
> >
> > On Tue Dec 3 08:40 AM, Hu, Ningxin wrote:
> > > Your thoughts about the integration?
> > > Is it possible to support Crosswalk runtime as a platform in Cordova
> > > upstream?
> > >
> > > [2]: https://github.com/crosswalk-project/crosswalk-cordova-android
> >
> > It looks really awesome, can't wait to try it out.
> >
> > I have some concerns about more platforms and the terminology.
>
> Sorry for the confusion due to the terminology.
>
> > Android should be considered as the platform,  maybe Cordova needs a new
> > flag, -engine?
> >
>
> I agree with your idea. Treating Crosswalk on android as an engine option
> for android platform makes sense to me.
>
> > e.g. cli perspective
> > > cordova prepare android
> > #uses WebView of OS
> > > cordova prepare android -engine crosswalk           #uses Crosswalk
> > > cordova prepare android -engine ChromeView     #uses ChromeView
> > bundled jar
> >
> > That could solve some issues with windows 8:
> > e.g.
> > > cordova prepare windows8
> > > cordova prepare windows8 -engine v8.1              #uses/injects 8.1
> > code
> > > cordova prepare windows8 -engine crosswalk    #uses Crosswalk?
> >
> > Putting this idea out there, might make the maintenance easier.
> > Problem for me is terminology of crosswalk as a platform, it's more like
> an engine
> > that sits on top of the OS.
>
> So do you agree that the first step is to make Cordova Android engine
> exchangeable?
>
> Thanks,
> -ningxin
>

RE: Cordova and Crosswalk

Posted by "Hu, Ningxin" <ni...@intel.com>.
+1. Renderer makes more sense. :)

> -----Original Message-----
> From: mmocny@google.com [mailto:mmocny@google.com] On Behalf Of Michal
> Mocny
> Sent: Monday, December 09, 2013 11:10 AM
> To: dev
> Subject: Re: Cordova and Crosswalk
> 
> +1 to Renderer.  I think that term is more applicable here anyway.
> 
> 
> On Sun, Dec 8, 2013 at 6:13 PM, Brian LeRoux <b...@brian.io> wrote:
> 
> > I like it but one small nit: we already use the term 'engine' to
> > describe a downstream in plugins. Propose we call it 'renderer'.
> >
> >
> > On Sat, Dec 7, 2013 at 12:38 AM, Jonathan Bond-Caron <
> > jbondc@gdesolutions.com> wrote:
> >
> > > On Wed Dec 4 11:55 PM, Hu, Ningxin wrote:
> > > > > -----Original Message-----
> > > > > From: Jonathan Bond-Caron [mailto:jbondc@gdesolutions.com]
> > > > > Sent: Wednesday, December 04, 2013 11:47 PM
> > > > > To: dev@cordova.apache.org
> > > > > Subject: RE: Cordova and Crosswalk
> > > > >
> > > > > On Tue Dec 3 08:40 AM, Hu, Ningxin wrote:
> > > > > > Your thoughts about the integration?
> > > > > > Is it possible to support Crosswalk runtime as a platform in
> > Cordova
> > > > > > upstream?
> > > > > >
> > > > > > [2]:
> > https://github.com/crosswalk-project/crosswalk-cordova-android
> > > > >
> > > >
> > > > So do you agree that the first step is to make Cordova Android
> > > > engine exchangeable?
> > > >
> > >
> > > That's what would make sense to me, might be other ways to do it.
> > >
> > > I put up the thoughts here:
> > > https://wiki.apache.org/cordova/Platform%20Engine
> > >
> > >
> > >
> >

Re: Cordova and Crosswalk

Posted by Michal Mocny <mm...@chromium.org>.
+1 to Renderer.  I think that term is more applicable here anyway.


On Sun, Dec 8, 2013 at 6:13 PM, Brian LeRoux <b...@brian.io> wrote:

> I like it but one small nit: we already use the term 'engine' to describe a
> downstream in plugins. Propose we call it 'renderer'.
>
>
> On Sat, Dec 7, 2013 at 12:38 AM, Jonathan Bond-Caron <
> jbondc@gdesolutions.com> wrote:
>
> > On Wed Dec 4 11:55 PM, Hu, Ningxin wrote:
> > > > -----Original Message-----
> > > > From: Jonathan Bond-Caron [mailto:jbondc@gdesolutions.com]
> > > > Sent: Wednesday, December 04, 2013 11:47 PM
> > > > To: dev@cordova.apache.org
> > > > Subject: RE: Cordova and Crosswalk
> > > >
> > > > On Tue Dec 3 08:40 AM, Hu, Ningxin wrote:
> > > > > Your thoughts about the integration?
> > > > > Is it possible to support Crosswalk runtime as a platform in
> Cordova
> > > > > upstream?
> > > > >
> > > > > [2]:
> https://github.com/crosswalk-project/crosswalk-cordova-android
> > > >
> > >
> > > So do you agree that the first step is to make Cordova Android engine
> > > exchangeable?
> > >
> >
> > That's what would make sense to me, might be other ways to do it.
> >
> > I put up the thoughts here:
> > https://wiki.apache.org/cordova/Platform%20Engine
> >
> >
> >
>

RE: Cordova and Crosswalk

Posted by Jonathan Bond-Caron <jb...@gdesolutions.com>.
On Sun Dec 8 06:13 PM, Brian LeRoux wrote:
> I like it but one small nit: we already use the term 'engine' to
> describe a
> downstream in plugins. Propose we call it 'renderer'.
> 
> 

Would 'runtime' be better?  Renderer might be too specific. A different 'runtime' could mean same HTML5 rendering layer but different storage mechanism or hardware drivers. 

I went through another iteration:
https://wiki.apache.org/cordova/Platform%20Engine#preview

After some thinking about the 'browser' platform, I'd propose a 'dev' platform.
It would auto-detect the OS and just launch the browser 'runtime'.
In that sense, both the browser & ripple would be runtimes of the 'dev' platform.

For plugin authors, it would be easy to write JavaScript-only plugins by targeting the 'browser' runtime:
<plugin id="org.javascript.dialog " version="1.0.2">
   <runtime name="browser">
       <!-- javascript only plugin files -->
   </ runtime>

Each platform would have a default runtime of 'default' or 'native', all compatible with the 'browser' runtime.

Implementation wise, I'm not sure what his means for the plugin repository. 
Dependency management would need to resolve which runtimes are compatible for a platform and allow fetching those plugins.


Re: Cordova and Crosswalk

Posted by Brian LeRoux <b...@brian.io>.
I like it but one small nit: we already use the term 'engine' to describe a
downstream in plugins. Propose we call it 'renderer'.


On Sat, Dec 7, 2013 at 12:38 AM, Jonathan Bond-Caron <
jbondc@gdesolutions.com> wrote:

> On Wed Dec 4 11:55 PM, Hu, Ningxin wrote:
> > > -----Original Message-----
> > > From: Jonathan Bond-Caron [mailto:jbondc@gdesolutions.com]
> > > Sent: Wednesday, December 04, 2013 11:47 PM
> > > To: dev@cordova.apache.org
> > > Subject: RE: Cordova and Crosswalk
> > >
> > > On Tue Dec 3 08:40 AM, Hu, Ningxin wrote:
> > > > Your thoughts about the integration?
> > > > Is it possible to support Crosswalk runtime as a platform in Cordova
> > > > upstream?
> > > >
> > > > [2]: https://github.com/crosswalk-project/crosswalk-cordova-android
> > >
> >
> > So do you agree that the first step is to make Cordova Android engine
> > exchangeable?
> >
>
> That's what would make sense to me, might be other ways to do it.
>
> I put up the thoughts here:
> https://wiki.apache.org/cordova/Platform%20Engine
>
>
>

RE: Cordova and Crosswalk

Posted by Jonathan Bond-Caron <jb...@gdesolutions.com>.
On Wed Dec 4 11:55 PM, Hu, Ningxin wrote:
> > -----Original Message-----
> > From: Jonathan Bond-Caron [mailto:jbondc@gdesolutions.com]
> > Sent: Wednesday, December 04, 2013 11:47 PM
> > To: dev@cordova.apache.org
> > Subject: RE: Cordova and Crosswalk
> >
> > On Tue Dec 3 08:40 AM, Hu, Ningxin wrote:
> > > Your thoughts about the integration?
> > > Is it possible to support Crosswalk runtime as a platform in Cordova
> > > upstream?
> > >
> > > [2]: https://github.com/crosswalk-project/crosswalk-cordova-android
> >
> 
> So do you agree that the first step is to make Cordova Android engine
> exchangeable?
> 

That's what would make sense to me, might be other ways to do it.

I put up the thoughts here:
https://wiki.apache.org/cordova/Platform%20Engine



RE: Cordova and Crosswalk

Posted by "Hu, Ningxin" <ni...@intel.com>.
> -----Original Message-----
> From: Jonathan Bond-Caron [mailto:jbondc@gdesolutions.com]
> Sent: Wednesday, December 04, 2013 11:47 PM
> To: dev@cordova.apache.org
> Subject: RE: Cordova and Crosswalk
> 
> On Tue Dec 3 08:40 AM, Hu, Ningxin wrote:
> > Your thoughts about the integration?
> > Is it possible to support Crosswalk runtime as a platform in Cordova
> > upstream?
> >
> > [2]: https://github.com/crosswalk-project/crosswalk-cordova-android
> 
> It looks really awesome, can't wait to try it out.
> 
> I have some concerns about more platforms and the terminology.

Sorry for the confusion due to the terminology.

> Android should be considered as the platform,  maybe Cordova needs a new
> flag, -engine?
> 

I agree with your idea. Treating Crosswalk on android as an engine option for android platform makes sense to me.

> e.g. cli perspective
> > cordova prepare android
> #uses WebView of OS
> > cordova prepare android -engine crosswalk           #uses Crosswalk
> > cordova prepare android -engine ChromeView     #uses ChromeView
> bundled jar
> 
> That could solve some issues with windows 8:
> e.g.
> > cordova prepare windows8
> > cordova prepare windows8 -engine v8.1              #uses/injects 8.1
> code
> > cordova prepare windows8 -engine crosswalk    #uses Crosswalk?
> 
> Putting this idea out there, might make the maintenance easier.
> Problem for me is terminology of crosswalk as a platform, it's more like an engine
> that sits on top of the OS.

So do you agree that the first step is to make Cordova Android engine exchangeable?

Thanks,
-ningxin

RE: Cordova and Crosswalk

Posted by "Hu, Ningxin" <ni...@intel.com>.
> -----Original Message-----
> From: brian.leroux@gmail.com [mailto:brian.leroux@gmail.com] On Behalf Of
> Brian LeRoux
> Sent: Thursday, December 05, 2013 6:45 AM
> To: dev@cordova.apache.org
> Subject: Re: Cordova and Crosswalk
> 
> We've been discussing allowing alternate rendering engines in Android for some
> time. FireOS is basically this. GeckoView is around the corner from Mozilla. It is a
> likely future.
> 

I think the alternate rendering engine idea is great. So there will be an rendering engine adaption layer in Cordova Android with several concrete implementations (rendering engine plugin?), say WebView, Crosswalk and GeckoView etc., for users to choose at build time (via cli). Is my understanding correct?

> I'm still curious if Crosswalk wants to donate to Apache?
> 

Crosswalk Cordova Android (https://github.com/crosswalk-project/crosswalk-cordova-android) is forked from Crodova Android. It is to showcase the possibility and values that running Cordova on Crosswalk. If the value are acknowledged by upstream Cordova, it is straight forward to merge it back in an appropriate way, say alternate rendering engine design.

Does it align with what you mean by 'donation'?

Thanks,
-ningxin

> 
> On Thu, Dec 5, 2013 at 2:46 AM, Jonathan Bond-Caron
> <jbondc@gdesolutions.com
> > wrote:
> 
> > On Tue Dec 3 08:40 AM, Hu, Ningxin wrote:
> > > Your thoughts about the integration?
> > > Is it possible to support Crosswalk runtime as a platform in Cordova
> > > upstream?
> > >
> > > [2]: https://github.com/crosswalk-project/crosswalk-cordova-android
> >
> > It looks really awesome, can't wait to try it out.
> >
> > I have some concerns about more platforms and the terminology.
> > Android should be considered as the platform,  maybe Cordova needs a
> > new flag, -engine?
> >
> > e.g. cli perspective
> > > cordova prepare android
> >  #uses WebView of OS
> > > cordova prepare android -engine crosswalk           #uses Crosswalk
> > > cordova prepare android -engine ChromeView     #uses ChromeView
> bundled
> > jar
> >
> > That could solve some issues with windows 8:
> > e.g.
> > > cordova prepare windows8
> > > cordova prepare windows8 -engine v8.1              #uses/injects 8.1
> >  code
> > > cordova prepare windows8 -engine crosswalk    #uses Crosswalk?
> >
> > Putting this idea out there, might make the maintenance easier.
> > Problem for me is terminology of crosswalk as a platform, it's more
> > like an engine that sits on top of the OS.
> >
> >

Re: Cordova and Crosswalk

Posted by Brian LeRoux <b...@brian.io>.
We've been discussing allowing alternate rendering engines in Android for
some time. FireOS is basically this. GeckoView is around the corner from
Mozilla. It is a likely future.

I'm still curious if Crosswalk wants to donate to Apache?


On Thu, Dec 5, 2013 at 2:46 AM, Jonathan Bond-Caron <jbondc@gdesolutions.com
> wrote:

> On Tue Dec 3 08:40 AM, Hu, Ningxin wrote:
> > Your thoughts about the integration?
> > Is it possible to support Crosswalk runtime as a platform in Cordova
> > upstream?
> >
> > [2]: https://github.com/crosswalk-project/crosswalk-cordova-android
>
> It looks really awesome, can't wait to try it out.
>
> I have some concerns about more platforms and the terminology.
> Android should be considered as the platform,  maybe Cordova needs a new
> flag, -engine?
>
> e.g. cli perspective
> > cordova prepare android
>  #uses WebView of OS
> > cordova prepare android -engine crosswalk           #uses Crosswalk
> > cordova prepare android -engine ChromeView     #uses ChromeView bundled
> jar
>
> That could solve some issues with windows 8:
> e.g.
> > cordova prepare windows8
> > cordova prepare windows8 -engine v8.1              #uses/injects 8.1
>  code
> > cordova prepare windows8 -engine crosswalk    #uses Crosswalk?
>
> Putting this idea out there, might make the maintenance easier.
> Problem for me is terminology of crosswalk as a platform, it's more like
> an engine that sits on top of the OS.
>
>

RE: Cordova and Crosswalk

Posted by Jonathan Bond-Caron <jb...@gdesolutions.com>.
On Tue Dec 3 08:40 AM, Hu, Ningxin wrote:
> Your thoughts about the integration?
> Is it possible to support Crosswalk runtime as a platform in Cordova
> upstream?
> 
> [2]: https://github.com/crosswalk-project/crosswalk-cordova-android

It looks really awesome, can't wait to try it out.

I have some concerns about more platforms and the terminology. 
Android should be considered as the platform,  maybe Cordova needs a new flag, -engine?

e.g. cli perspective
> cordova prepare android                                              #uses WebView of OS
> cordova prepare android -engine crosswalk           #uses Crosswalk
> cordova prepare android -engine ChromeView     #uses ChromeView bundled jar

That could solve some issues with windows 8:
e.g.
> cordova prepare windows8
> cordova prepare windows8 -engine v8.1              #uses/injects 8.1  code
> cordova prepare windows8 -engine crosswalk    #uses Crosswalk?

Putting this idea out there, might make the maintenance easier.
Problem for me is terminology of crosswalk as a platform, it's more like an engine that sits on top of the OS.