Closed
Description
CEF Now provides support for integrating into an existing message loop.
Resolved with 63ef6be
Breaking Change:
Cef.OnContextInitialized
has been removed and is now part of the IBrowserProcessHandler
interface.
Notes:
- Must set
setting.MultiThreadedMessageLoop = false;
- Must set
setting.ExternalMessagePump= true;
- When implementing
IBrowserProcessHandler.OnScheduleMessagePumpWork
you should refer to theCEF
reference implementation for ideas see https://bitbucket.org/chromiumembedded/cef/commits/1ff26aa02a656b3bc9f0712591c92849c5909e04?at=2785
Background:
The default is to use MultiThreadedMessageLoop
, this provides excellent performance though has it's own problems in the message loop is run in a different thread to your main application. This makes it difficult for messages to be passed, like when you display the context menu, click on your app title bar, there menu will stay shown as the message loops aren't aware of the message triggered by clicking the title bar.