WebViewChromium new instance

168 views
Skip to first unread message

LionisIAm

unread,
Jan 26, 2018, 9:48:20 AM1/26/18
to android-webview-dev
For example I`ve built chroimium webview into sources and want to make a new Instance of WebViewChromium inside Activity, not like the system WebView. What steps should I check?

Torne (Richard Coles)

unread,
Jan 26, 2018, 10:42:05 AM1/26/18
to LionisIAm, android-webview-dev
You can't do this. WebViewChromium can only function as part of a system WebView instance. Everything in src/android_webview/glue exists just to implement the system WebView, and if you are trying to embed the implementation directly into your app you need to use only the lower level interfaces like AwContents, the way the instrumentation shell does - you don't even want to compile the glue layer into your app at all.

On Fri, 26 Jan 2018 at 09:48 LionisIAm <hvosti...@gmail.com> wrote:
For example I`ve built chroimium webview into sources and want to make a new Instance of WebViewChromium inside Activity, not like the system WebView. What steps should I check?

--
You received this message because you are subscribed to the Google Groups "android-webview-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-webview...@chromium.org.
To post to this group, send email to android-w...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/android-webview-dev/55e19de6-3ff3-4b72-a84e-51fd8b319ac0%40chromium.org.

LionisIAm

unread,
Jan 26, 2018, 2:30:15 PM1/26/18
to android-webview-dev
Ok but AwContents doesnt extend any View. How to implement basic view with AwContents?

Torne (Richard Coles)

unread,
Jan 26, 2018, 3:50:10 PM1/26/18
to LionisIAm, android-webview-dev
You need to do what the instrumentation shell does: see AwTestContainerView

On Fri, 26 Jan 2018 at 14:30 LionisIAm <hvosti...@gmail.com> wrote:
Ok but AwContents doesnt extend any View. How to implement basic view with AwContents?

--
You received this message because you are subscribed to the Google Groups "android-webview-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-webview...@chromium.org.
To post to this group, send email to android-w...@chromium.org.

LionisIAm

unread,
Jan 29, 2018, 5:00:49 AM1/29/18
to android-webview-dev, hvosti...@gmail.com
Yes, currently I`m trying to use AwTestContainerView. But have some problem: I can not control background color of the page. I want to see View under the  AwTestContainerView if webpage has some css opacity or transparent css background. But I can not see what is going under the WebView. Seems like GL (native?) draws default background color. I`m tried to search in sources where GL filling background but can not. Can you help me please?

пятница, 26 января 2018 г., 22:50:10 UTC+2 пользователь Richard Coles написал:
You need to do what the instrumentation shell does: see AwTestContainerView

On Fri, 26 Jan 2018 at 14:30 LionisIAm <hvosti...@gmail.com> wrote:
Ok but AwContents doesnt extend any View. How to implement basic view with AwContents?

--
You received this message because you are subscribed to the Google Groups "android-webview-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-webview-dev+unsub...@chromium.org.

Torne (Richard Coles)

unread,
Jan 29, 2018, 11:46:16 AM1/29/18
to LionisIAm, android-webview-dev
I don't know much about rendering in general, and especially not in the nonstandard rendering path used by AwTestContainerView. You'll have to see if someone can answer your existing separate thread about this issue.

On Mon, 29 Jan 2018 at 05:00 LionisIAm <hvosti...@gmail.com> wrote:
Yes, currently I`m trying to use AwTestContainerView. But have some problem: I can not control background color of the page. I want to see View under the  AwTestContainerView if webpage has some css opacity or transparent css background. But I can not see what is going under the WebView. Seems like GL (native?) draws default background color. I`m tried to search in sources where GL filling background but can not. Can you help me please?

пятница, 26 января 2018 г., 22:50:10 UTC+2 пользователь Richard Coles написал:
You need to do what the instrumentation shell does: see AwTestContainerView

On Fri, 26 Jan 2018 at 14:30 LionisIAm <hvosti...@gmail.com> wrote:
Ok but AwContents doesnt extend any View. How to implement basic view with AwContents?

--
You received this message because you are subscribed to the Google Groups "android-webview-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-webview...@chromium.org.
--
You received this message because you are subscribed to the Google Groups "android-webview-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-webview...@chromium.org.

To post to this group, send email to android-w...@chromium.org.
Reply all
Reply to author
Forward
0 new messages