根据 2012 google I/O talk (摘录如下),android webView 从 4.1 版开始将基于 chromium。下载的源代码已经是这种情况了吗?
另外,“WebView和Chrome浏览器会一样”这个说法应该怎么理解呢?这是否意味着 chrome 浏览器将像最初的 android 浏览器一样构建在 webView 之上。
Q: With Chrome on Android what happens to the original Android browser and WebView?
A: ICS->JB upgrade will not pre-install Chrome. WebView will be converted to Chromium based code. Android and Chrome engineers are working together.
Q: Will WebView get updated?
A: WebView and Chrome browser will be the same when the OS is upgraded. Every 6 weeks Chrome will be updated but WebView will not. Just to be careful not to break anything.
http://www.zdnet.com/blog/burnette/google-io-2012-android-fireside-chat/2637
最佳答案
PIL , 根据我在 chromium 源代码中看到的内容,Chrome 看起来不像是构建在 WebView 之上的。我可以看到 Chrome 使用了一个名为 ContentView 的新类来充当“WebView”的 Chrome 等价物。
我对您提到的陈述的解释是,Chrome 和 Android 的 WebView 将共享相同的底层 WebKit 代码,并可能共享将 Java 层功能连接到 C++ 代码的接口(interface)。至少就目前而言,Chrome 可能会出于其目的使用自己的类似 webview 类的实现。
关于android - 自 android 4.1 以来,android webView 是否会基于 Chrome 引擎?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12192674/