Hi Robert and Vasilii, PTAL
Thanks!
class HeadlessWindowTreeHost : public aura::WindowTreeHost {Viktor SemeniukCould we rename this to something not having `Headless`? `DetachedWindowTreeHost` or something like that.
Reason: Headless is already overloaded in Chrome source tree so it would be good to avoid adding another overload.
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
// WindowTreeHost:Optional:
```suggestion
private:
// WindowTreeHost:
```
This encourages folks to use the underlying aura::WindowTreeHost type instead of the concrete type.
class DetachedWindowTreeHost : public aura::WindowTreeHost {Add a quick comment above to indicate this is a special WindowTreeHost that will not actually show the underlying native_view.
CreateCompositor(false, false);These are default arguments to CreateCompositor. Are these values critical for this to work?
| Code-Review | +1 |
like rAF aren't propsagated. This results in APC failures. To resolvenit: typo
class DetachedWindowTreeHost : public aura::WindowTreeHost {Add a quick comment above to indicate this is a special WindowTreeHost that will not actually show the underlying native_view.
+1. Also explains that this is needed to drive `requestAnimationFrame()` in a detached WebContents.
void DetachedWindowTreeHost::ShowImpl() {}nit: add a blank line between each function.
// to which WebContents is attached. This helps to resolve some a problem with
// animations.```suggestion
// to which WebContents is attached. This helps to resolve the problem
// that requestAnimationFrame() is not fired on a detached WebContents.
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |