Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add wpf offscreen browser #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Sebbstar
Copy link

The WPF offscreen browser variant is a WPF control which does not lack of the airgap. So it supports full WPF compositing.

To transfer the rendered images from the browser process to the host this PR uses MemoryMappedFile. The dimensions are also written to the MemoryMappedFile to prevent races when reading the files while resizing.

There is a method SendMouseClickEvent added to the IOutOfProcessClientRpc interface. I found no other way to support clicks popups created from select html elements. Not requiring this method would be very nice. Any suggestions?

The PR does not implement DragDrop, MonitorDPI changes
Also AcceleratedPaint is not implemented(Am I right that this is not supported in the latest CEF versions?)

We tried to base the naming and namespaces on the HWND wpf browser.

commit b2018c1
Author: Sebastian Mayer <sebastian.mayer@trumpf.com>
Date:   Mon Jan 30 16:20:14 2023 +0100

    Merge branch 'feat/add-wpf-offscreen-browser'
@amaitland
Copy link
Member

How is the MemoryMappedFile synchronised across processes exactly? Quick glance and I didn't see a Mutex. Is there a synchronization primitive somewhere that I missed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants