Local NTP: implement Doodle resize API
A postMessage call from the doodle resizes the iframe. The event data
supports these parameters.
cmd (required): must be "resizeDoodle".
width (optional): a CSS width (with units) or null. Because the doodle
cannot know the size of the outer page, only "100%" (full page
width) and null (default width) are recommended.
height (optional): a CSS height (with units) or null for the default
(200px). Must not be a percentage, but otherwise any units are OK.
duration (optional): a CSS duration, such as 130ms or 1s. If null or
absent, 0s (no transition) is assumed.
If a second resize is requested while a first resize is in in
transition, the doodle will eventually reach the size from the second
call, but the interpretation of the duration is not defined.
Bug: 761994
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I9f6afe956e710001a45a9b327748a74eab36ea01
Reviewed-on: https://chromium-review.googlesource.com/804034
Commit-Queue: Chris Pickel <sfiera@chromium.org>
Reviewed-by:
Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#521700}
Showing
Please register or sign in to comment