cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Grieve <agri...@chromium.org>
Subject Re: Cordova and Crosswalk
Date Thu, 05 Dec 2013 14:36:20 GMT
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 <ningxin.hu@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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message