kryskool / cefpython

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

Off-screen rendering support - popup windows and native dropdown menus not yet working #69

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In CEF 3 Windows and Mac already support off-screen rendering,
soon Linux will also be supported, see comment #126:

https://code.google.com/p/chromiumembedded/issues/detail?id=518#c126

Original issue reported on code.google.com by czarek.t...@gmail.com on 27 Jun 2013 at 5:46

GoogleCodeExporter commented 9 years ago
Jegger has successfully patched CEF Python 3 to add OSR support on Linux,
see his repository, the commits that add OSR support are from Jul 14 to Jul 18:

https://github.com/jegger/cefpython/commits/cef3_linux_osr

See also the topic on the CEF Python Forum with more details on how this got 
done:

https://groups.google.com/d/topic/cefpython/71t4RcF2ZFM/discussion

Original comment by czarek.t...@gmail.com on 19 Jul 2013 at 6:57

GoogleCodeExporter commented 9 years ago
Provide an OSR example using Kivy framework, we can use the example created
by Jegger, see the topic.

Original comment by czarek.t...@gmail.com on 19 Jul 2013 at 8:16

GoogleCodeExporter commented 9 years ago
Merged OSR support created by Dominique Burnand, see the commit:
https://code.google.com/p/cefpython/source/detail?r=e09dde16bf0751319be723a7052e
923bd58ec3dc

Original comment by czarek.t...@gmail.com on 10 Sep 2013 at 8:44

GoogleCodeExporter commented 9 years ago
There is this error message in the console:

    [0911/071431:ERROR_REPORT:render_widget_host_view_osr.cc(272)] Check failed: false.

This is caused because the GetViewRect() callback was not yet provided at this
time. The render handler callbacks are provided only when synchronouse browser
creation is finished. 

This error report is harmless if you pass "about:blank" to CreateBrowserSync() 
and do the navigation to the real url later using the LoadUrl() method. Then
the GetViewRect will be called again, this time with the render handler 
callback 
being set.

Original comment by czarek.t...@gmail.com on 11 Sep 2013 at 5:57

GoogleCodeExporter commented 9 years ago
Added a comment in the Kivy example explaining the error report message, see
the commit:

https://code.google.com/p/cefpython/source/detail?r=7a04ea3194bdafb14e7caa6b36a2
6345146c43a9

Original comment by czarek.t...@gmail.com on 11 Sep 2013 at 6:05

GoogleCodeExporter commented 9 years ago
New methods should appear in CEF 3 in regards to OSR and multitouch support:
SendTouchClickEvent() and SendTouchMoveEvent(), see Issue. 1059 in the
CEF Issue Tracker:

https://code.google.com/p/chromiumembedded/issues/detail?id=1059

Original comment by czarek.t...@gmail.com on 11 Sep 2013 at 7:08

GoogleCodeExporter commented 9 years ago
Methods GoBack() and GoForward() don't work in OSR mode, they work fine in the 
wxpython
example. Reported the problem on the CEF Forum:

http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=10991

Original comment by czarek.t...@gmail.com on 11 Sep 2013 at 8:40

GoogleCodeExporter commented 9 years ago
The Back and Forward navigation problems were fixed in the Kivy example,
see the commit:

https://code.google.com/p/cefpython/source/detail?r=5cd76abc1794f29186e8a7e5113e
eea070e1f0f7

Original comment by czarek.t...@gmail.com on 11 Sep 2013 at 7:26

GoogleCodeExporter commented 9 years ago
The Kivy example is fully complete, added keyboard handlinig and fixed resizing.
See the recent commits in the repository. Added the Kivy wiki page along with 
a screenshot:

https://code.google.com/p/cefpython/wiki/Kivy

CEF Python 3 27.4 was released.

Still TODO: test OSR on Windows.

Original comment by czarek.t...@gmail.com on 14 Sep 2013 at 11:16

GoogleCodeExporter commented 9 years ago
Still TODO: popup windows and target=_blank links are rendered in windowed mode
in the Kivy OSR example.

Original comment by czarek.t...@gmail.com on 20 Sep 2013 at 11:47

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Implementing LifespanHandler.`OnBeforePopup` callback is now possible in CEF 
31.0. New function [cefpython].`PostTask` was added with which you can run 
tasks on various threads. `OnBeforePopup` runs on IO thread so it's required to 
post task on UI thread to create popup browser. Example usage is in wxpython.py 
on Windows.

Original comment by czarek.t...@gmail.com on 11 Aug 2014 at 10:10