Question about using the CEF3 with a second browser window

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

Question about using the CEF3 with a second browser window

Postby CoreDump » Tue May 05, 2015 3:13 pm

If I could get some advice....

Using the CEF3 2357 Build for Windows 32.

If I wanted to have a second browser window launched after the main application loads what would be the best way to do this?
(or point me to some example code)

Keep in mind that I'd like to have full control over this window, placement, ability to navigate to a different URL and close/hide.

Would I create a new instance of ClientHandler for this? Then call CefBrowserHost::CreateBrowser() with the new ClientHandler?

Thanks in Advance....
CoreDump
Techie
 
Posts: 25
Joined: Tue Feb 26, 2013 12:47 pm

Re: Question about using the CEF3 with a second browser wind

Postby magreenblatt » Tue May 05, 2015 3:24 pm

CoreDump wrote:Would I create a new instance of ClientHandler for this? Then call CefBrowserHost::CreateBrowser() with the new ClientHandler?

That's generally the idea, but it depends on your application. You can use the same CefClient with multiple browsers or have a different CefClient for each browser.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Question about using the CEF3 with a second browser wind

Postby CoreDump » Thu May 14, 2015 1:37 pm

Thanks for the response.

After looking through;

RootWindowManager
RootWindowWin

Both these classes thoroughly answered all my questions.

Great job writing those... and the entire project for that matter.

-----------

If I wanted to build the 2357 branch, but use Chromium 44, do you have a set of instructions for that?
I thought I just had to change something in the automate-git.py?

I fixed a chrome defect, but it's in Chromium 44 (that's why I'm asking)

Or when will you branch what's in the trunk?

Thanks...
CoreDump
Techie
 
Posts: 25
Joined: Tue Feb 26, 2013 12:47 pm

Re: Question about using the CEF3 with a second browser wind

Postby magreenblatt » Thu May 14, 2015 1:44 pm

CoreDump wrote:If I wanted to build the 2357 branch, but use Chromium 44, do you have a set of instructions for that?

No, CEF branches can generally only be used with the associated Chromium branch.

CoreDump wrote:I fixed a chrome defect, but it's in Chromium 44 (that's why I'm asking)

What was the fix? You can try porting it to M43, or use master until the next CEF release branch.

CoreDump wrote:Or when will you branch what's in the trunk?

The next CEF release branch will be M45, likely created in the beginning of July: https://www.chromium.org/developers/calendar.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Question about using the CEF3 with a second browser wind

Postby CoreDump » Thu May 14, 2015 2:05 pm

What was the fix? You can try porting it to M43, or use master until the next CEF release branch.


https://code.google.com/p/chromium/issu ... ?id=402684
#30 are all my changes. Took well over a week to fix.

I'll use the trunk. I'll just make it easy to merge once your July branch comes about.

Thanks for the info!
CoreDump
Techie
 
Posts: 25
Joined: Tue Feb 26, 2013 12:47 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 160 guests