[webui][ntp] Add barebones doodle support
Supports showing the (preview) image of static and animated doodles as well as iframing interactive doodles on the WebUI NTP. Support for playing animated doodles, resizing interactive doodles, etc. will be added later. To support iframing the interactive doodle, this CL adds chrome-untrusted://new-tab-page/iframe?<src> which lets us iframe arbitrary pages into the WebUI NTP. The iframing works by embedding an iframe pointing to <src> into an chrome-untrusted page, which in turn is embedded into the WebUI NTP. This is necessary since we cannot directly embed external pages into the WebUI NTP. + Adds support for a fresh-doodle query parameter to wait for the fetched doodle instead of displaying the cached one. Useful for testing. + Fixes vertical arrangement of elements on the WebUI NTP. Bug: 1039910 Change-Id: I3791a20d392f3f8e8a6d36cec4c1e90f302fc04e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2109172 Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org> Reviewed-by:Alex Gough <ajgo@chromium.org> Reviewed-by:
Esmael Elmoslimany <aee@chromium.org> Cr-Commit-Position: refs/heads/master@{#752607}
Showing
Please register or sign in to comment