Support for tab management in CEF C++ API

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Support for tab management in CEF C++ API

Postby abalasubramaniyan » Fri Sep 21, 2018 4:29 pm

What is the recommended way to implement tabbed browser when working with the CEF C++ API?

In chromium, tabs are managed by switching out the active web_contents within the browser instance. But there is no support to do this using CEF API.
One way I see is to use multiple cef_browser instances (and, by association, multiple platform delegates) for each window (one per tab). But, this seems hacky and is wasteful on computation and memory resources.

Is there a better way to implement tabbed browser using CEF?
abalasubramaniyan
Newbie
 
Posts: 1
Joined: Wed Aug 08, 2018 6:01 pm

Re: Support for tab management in CEF C++ API

Postby Czarek » Sun Sep 23, 2018 10:24 am

With CEF you create a new browser instance for each tab. There are a few settings that can change resource usage, see process models: http://www.chromium.org/developers/desi ... ess-models . There is also a flag that can limit renderer processes.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 23 guests