MacViews UI team in New York is converting native Cocoa UI to views. It'll be helpful to have UI Devtools to work in Mac as well before next year Q1 to reduce their UI conversion friction.
Sadrul suggested we could do the following steps:
Make the aura dependency from ui_devtools conditional to use_aura.
Mac should exclude window_element.cc|h files.
We need to update the UIElement api to use gfx::NativeWindow, instead of aura::Window.
Add some code to track the list of views::Widgets, and notify the dom-agent when things change.
Currently, this happens directly where the dom-agent installs itself as an observer to aura::Env. This needs to be taken out into a provider-API (e.g. a RootDOMNodeProvider), which can then have an aura-specific implementation (which will install the EnvObserver etc.), and a views-specific implementation, which will manage the list of Widgets created/destroyed etc.
Comment 1 by thanhph@chromium.org
, Oct 17 2017