magicyuuu / cefpython

Automatically exported from code.google.com/p/cefpython
0 stars 1 forks source link

Expose CreateBrowser() with a callback argument that will be executed after browser was created #170

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently creating browser is possible only with the  synchronous function 
CreateBrowserSync. There are cases for the asynchronous creation to be useful. 
The only drawback is that there is no easy way to get the browser object after 
browser was created. The callback argument would provide a way to get the 
browser object after it was created. The callback will be called with browser 
as the first argument. Currently to get the browser object one would need to 
implement the OnAfterCreated global client callback. But this is not convenient 
to get a specific browser object.

Original issue reported on code.google.com by czarek.t...@gmail.com on 22 Jan 2015 at 8:41