For that, I have created one sample window in my application using native cocoa framework. Cefsimple app is running as separate process.
My application is invoking cefsimple and passing sample window handle(NSView*) to cefsimple while invoking.
In cefsimple, I am using sample window handle NSView* (parent_view) to make cef window as a child of sample window from another process as follow:
- Code: Select all
void SimpleApp::OnContextInitialized() {
…
window_info.SetAsChild(CAST_NSVIEW_TO_CEF_WINDOW_HANDLE(parent_view), rect);
…
}
With above code, CEF browser window is not getting embedded in sample window. Am I missing anything in macOS implementation?
if I create sample window in same process (cefsimple) then cef browser window is getting embedded into this sample window with above code.
It’s not working only when sample window is created in different process. It works perfectly fine with Linux(X11 window id) and Windows OS implementation but not working with MacOS.
Is this something not supported in macOS?
If that is the case, then what approach we take to embed cefsimple window into another process window?