DescriptionMove wm_flow off of views and onto Sky
This is a proof of concept for replacing ui/views
code with Sky instead. erg says this will allow him
to delete 10s of thousands of LOC from mojo.
Mojo does not yet expose the current binary's URL:
https://docs.google.com/a/chromium.org/document/d/1AQ2y6ekzvbdaMF5WrUQmneyXJnke-MnYYL4Gz1AKDos
So I've worked around that by passing the url
of the binary via the helper script.
I discovered several bugs in the wm_flow code
including that it doesn't handle view resizes
(during embiggen). Related, I discovered that
every time a new window is made it drops the
connections to the embedded.cc app from the
previous window, since the ViewManagerDelegate
is incorrectly implemented as part of the
ApplicationDelegate on both app.cc and embedded.cc.
We'd need to split out a separate per-view object
in both of those apps to handle the
ViewManagerDelegate calls.
There are some changes to logging during loading
as well as the CopyToFile helper to have better
error reporting. I hit several issues early on trying
to get mojo to load the http: urls correctly, including
eventually running out of disk space on my /tmp
and mojo then silently failing to launch the app
(due to mojo never clearing its caches crbug.com/446302).
I had to re-write the mojo_demo.sh script in python
as well as split the sky_server handling code out of
skydb into a separate python module in order to cleanly
launch sky_server. We could use a separate server
if we wanted to but the primary benefit of sky_server
is that it sets up the proper url->disk mappings into
the generated file directories, etc.
BUG=443439
R=abarth@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/72d6a21732cdc95202ef9a333d9f063bf93cc534
Patch Set 1 #Patch Set 2 : Add missing files #Patch Set 3 : Fix to pass presubmit #Patch Set 4 : Remove views dependency #Patch Set 5 : Actually sorta works! #Patch Set 6 : Use new on-* syntax #Patch Set 7 : Mostly works #Patch Set 8 : Nearly ready for review #Patch Set 9 : Ready for review #Patch Set 10 : Fix comments #
Total comments: 5
Patch Set 11 : #
Messages
Total messages: 23 (6 generated)
|