Hi,
I'm trying to implement a fully functional browser based on CEF, and I'm planning to integrate chrome runtime with other UI elements removed into an interface written natively in cocoa, which means I need to add the BrowserView as an NSView to the NSWindow provided by the outer application.
I've been reading up on the progress in https://github.com/chromiumembedded/cef/issues/3294 and am happy to see that this is already supported in windows and linux, as well as your description of a possible macOS implementation.
As you say, the NSWindow provided by Chromium could be from another process, and I've tried adding the NSWindow as a child Window to the main app's NSWindow, but macOS can only have one key window at a time, which makes it impossible for the Chromium window to receive focus at the same time as the app window. window cannot receive focus at the same time, which is unacceptable for a browser.
So I'm trying to offer the app window to chromium as an alternative to the NSWindow it creates itself, in order to integrate the cocoa native view with the web content while preserving chromium capabilities such as extensions.
I realize this is a very difficult task, but is this solution feasible? Or is there a better way to accomplish the above? I hope to get some suggestions from you guys, thanks a lot!