Alex Maitland
3ce76eb191
CEF Issue Tracker moved to GitHub
...
- Update some of the internal links
Issue #4430
2023-03-24 10:52:58 +10:00
Alex Maitland
a4db645e5b
Core - Xml Doc fixes
2023-03-12 11:09:48 +10:00
Alex Maitland
0916c757dd
WPF - Tooltip minor cleanup
...
- Ignore tooltip change if both new/old values are null/empty
- Change order so timer is stopped before hiding tooltip
2023-02-03 13:08:28 +10:00
Alex Maitland
7021a7da52
WPF - Allow overriding of TooltipTextProperty change
...
- Override the OnTooltipTextChanged method to customise display of browser tooltip
Related to issue #4048
2023-02-03 13:08:28 +10:00
Alex Maitland
0131dd8a33
WPF - Resize Hack Refactor
...
- Rename properties/variables
- Directly reference upstream issue
Follow up to https://github.com/cefsharp/CefSharp/pull/4307
2022-12-13 12:13:56 +10:00
Wupval
8e322164ea
WPF - Add simplified resize hack (disabled by default) ( #4307 )
...
- Adds a simplified version of the resize hack used to workaround issue #2779
Related discussion https://github.com/cefsharp/CefSharp/discussions/4274
Upstream Issue https://bitbucket.org/chromiumembedded/cef/issues/3427/osr-rendering-bug-when-minimizing-and
2022-12-13 12:02:26 +10:00
Alex Maitland
824ba98c6f
WPF - Experimental LifeSpanHandler optional LifespanHandler constructor arg
...
Resolves #4285
2022-11-14 14:16:16 +10:00
Alex Maitland
7b9770a42a
WPF - Experimental LifeSpanHandler renaming
...
- Rename the delegates (add prefix)
Issue #4285
2022-11-02 13:08:25 +10:00
Fabian van der Veen
8cbd572f98
WPF - Send keyboard modifiers along with drag events ( #4287 )
...
Fixes #4286
2022-10-29 09:26:42 +10:00
Alex Maitland
ec8e3405bd
WPF - Add Experimental LifeSpanHandler capable of hosting pop-ups as Tabs/Controls
...
Issue #4285
2022-10-25 15:51:35 +10:00
Alex Maitland
aa582e83e1
WinForms/WPF - Add ChromiumWebBrowser.UnregisterShutdownHandler
...
Resolves #4096
2022-10-25 13:12:20 +10:00
Alex Maitland
92892c9b85
WPF - Add ChromiumWebBrowser.ToggleAudioMuteCommand
...
- Add new extension method to toggle audio mute
- Add new command to toggle audio mute
- Add new menu item to WPF Example
Resolves #3247
2022-10-25 12:32:01 +10:00
Alex Maitland
71562dddc8
WPF - Add WritableBitmapRenderHandler.CopyOnlyDirtyRect (defaults to false)
...
- To improve performance we can only copy the part of the DirtyRect that was changed
currently disabled by default, can be enabled once more testing one.
2022-09-19 14:29:39 +10:00
Alex Maitland
59a13994fa
WPF - Fix xml doc
...
- Remove char that was causing generated xml doc to be invalid
2022-08-21 14:03:03 +10:00
Alex Maitland
b8b27f6885
WPF/OffScreen - Add WaitForRenderIdleAsync ( #4080 )
...
* WPF/OffScreen - Add WaitForRenderIdleAsync
- Task resolves when render has been idle for the specified time
- Make TaskTimeoutExtensions public (they're not extension methods as this was expected)
2022-05-30 19:11:17 +10:00
Alex Maitland
ec25c08905
WPF - Remove EmbeddedCursor workaround
...
- Forgot to remove the WPF code, not needed anymore
Follow up to https://github.com/cefsharp/CefSharp/commit/dce81299feab534d4766c7a93d7c403f30d984b9
2022-05-05 12:51:57 +10:00
Alex Maitland
dce81299fe
WPF - Remove EmbeddedCursor workaround
...
Bug was fixed upstream and now no longer required.
Related issue #4021
2022-05-05 12:40:55 +10:00
Alex Maitland
452edca0ec
WPF - Update EmbeddedCursor Res Ids
...
This is no longer actually being used and will be removed in the next version
as manually keeping the Id's up to date is unnecessary work.
2022-04-21 09:39:50 +10:00
Alex Maitland
837f6ec7a6
WPF - CompositionTargetRenderHandler add null check
2022-04-20 12:15:30 +10:00
Alex Maitland
df562dd251
WPF - Workaround for Cursors not loading correctly
...
- For cursors that are embedded in libcef.dll the OnCursorChange method is passing
in IntPtr.Zero so we're unable to load the cursor.
This commit adds a manual mapping of CursorType to resource Id and loads the cursors manually
- Adds a basic test to assert the cursors load, should validate if the resource ids change
This needs to be fixed upstream https://bitbucket.org/chromiumembedded/cef/issues/3270/osr-pan-icon-missing-when-pressing-the
Test url https://developer.mozilla.org/en-US/docs/Web/CSS/cursor#values
Issue #4021
2022-04-04 14:45:27 +10:00
Alex Maitland
77b20c71ae
Examples - Add .Net 5.0 and conditionally .Net 6.0 as target frameworks
...
- .Net 6.0 requires VS2022
This may need to be changed if Appveyor doesn't like building the .Net 5.0 targets
2022-04-01 17:44:45 +10:00
Alex Maitland
3d39238a93
Core - Code cleanup
...
- Make more classes sealed
- Add xml doc
- Add serializable constructor
2022-02-22 11:33:18 +10:00
Alex Maitland
597e54fc11
IBrowserHost.Find remove identifier param
...
Resolves #4013
2022-02-22 11:17:56 +10:00
Alex Maitland
3b1c46aab9
Code Cleanup - Minor code cleanup
...
- Add Microsoft.CodeAnalysis.NetAnalyzers package
- Make some classes sealed
- Fix/Add xml doc
2022-02-01 14:07:01 +10:00
Alex Maitland
137a4bbe6f
WPF - Update CleanupElement when PresentationSource changes
...
- If the CleanupElement is a Window then move it to the new Window
2022-01-15 11:20:07 +10:00
Alex Maitland
27816d54b8
Core - Change from using GetBrowser() method to BrowserHost
...
- BrowserHost will return null if not set where GetBrowser() will throw an exception
2022-01-05 10:14:24 +10:00
Alex Maitland
f90271fb14
WPF - Improve Mouse Click Count
...
Chromium only supports values of 1,2,3 for clickCount so we
set click count to 1 if greater than 3
Resolves #3940
2022-01-04 10:44:31 +10:00
Alex Maitland
b72d41353e
WinForms - Improve hosting of popups using ChromiumHostControl
...
- Add IChromiumWebBrowserBase which is can be used for ChromiumWebBrowser instances and ChromiumHostControl
- Reduce code duplication for extensions methods
- Update WinForms Example
2021-11-30 13:47:42 +10:00
Alex Maitland
6e211bcc7f
Wpf - Context Menu improvements/fixes
...
- Fix separator not showing
- Remove unused code
- Add consts for devtools menu command id's
2021-11-30 13:47:42 +10:00
EmilyPaek
6f73ea1bba
WPF - Korean IME fix cursor displayed at the left side of current character ( #3912 )
...
Co-authored-by: agrina1008 <noely1008@naver.com >
2021-11-30 13:47:16 +10:00
Alex Maitland
89b66f58d7
WPF - Use WPF specific menu handler by default
...
Resolves #1767
2021-11-25 11:09:38 +10:00
Alex Maitland
6fcfb66cbb
WPF - OnWindowStateChanged only set browser to visible if IsVisible = true
...
Previously all browser instances were set to visible when the window was restored from minimized state
2021-11-05 10:39:11 +10:00
Alex Maitland
aa8403a5d6
WPF - Add ChromiumWebBrowser.OnBrowserWasHidden
...
Can be overridden to keep the browser in a visible state even when it's not displayed
on screen.
2021-11-05 10:29:36 +10:00
Alex Maitland
4a07af26e9
Core - Rename WaitForBrowserInitialLoadAsync to WaitForInitialLoadAsync and simplify
...
- Initial intention was to have a reusable method that could be used CefSharp.Wpf.HwndHost,
upon further deliberation I've decided to build the functionality into the ChromiumWebBrowser.Partial.cs
and will need to duplicate the functionality in CefSharp.Wpf.HwndHost. This guarantees that the
Task will be resolved in all cases. The previous implementation there was a theoretical change we'd
miss subscribing to the relevant events
- Remove CancellationToken as it's not possible to cancel
Issue #3842
2021-10-28 10:31:03 +10:00
Alex Maitland
0e242a8706
Upgrade to CEF 95.7.10+g00d4ad5+chromium-95.0.4638.54 / Chromium 95.0.4638.54
...
Remove CefBrowserSettings.universal_access_from_file_urls and CefBrowserSettings.file_access_from_file_urls.
https://bitbucket.org/chromiumembedded/cef/commits/ff33d7f72144
Remove CefBrowserSettings.application_cache
https://bitbucket.org/chromiumembedded/cef/commits/370a7749e950ef6784c29a666d07a0b67148dd5f
Remove ignore_certificate_errors setting
https://bitbucket.org/chromiumembedded/cef/commits/aabe4ce466766f8bd9907e7fa30546a3afada214
RequestContextSettings.IgnoreCertificateErrors was removed, the CefSettings.IgnoreCertificateErrors property
now set the command line arg
Use CefRect for CefWindowInfo bounds
https://bitbucket.org/chromiumembedded/cef/commits/8587cc4e4bbc187aa989152e521318818b3f41d3
Additional overload has been added to pass in a Rect directly to SetAsChild
Rename SendFocusEvent to SetFocus
https://bitbucket.org/chromiumembedded/cef/commits/49a4611e28d7bbc221cff816d7c4a96c55ba2721
SendFocusEvent will now call SetFocus internally, the project internally has been updated to use SetFocus for WPF
Replace CefRequestCallback with CefCallback
https://bitbucket.org/chromiumembedded/cef/commits/3e7f1bb529442a6c7674262d9219df57964e9524
No changes to the API for this, I've kept the same interface and just mapped internally
Resolves #3857 , #3667 , #3668
2021-10-22 14:45:12 +10:00
Andrew Smith
bfa8ccf24c
WPF - IME Only use GCS_CURSORPOS if an adjacent character is new input ( #3846 )
...
* Change Wpf IME handling to only use the cursor pos when an adjacent character is new input
* Meant to change both character before and after
* Ensure the cursor pos is > 0 when checking the character before
2021-10-11 10:16:07 +10:00
Alex Maitland
8bbe6a45ef
WPF - Fix Address Load being called multiple times after browser created
2021-10-11 10:14:31 +10:00
Alex Maitland
b82fa05291
WinForms/WPF/OffScreen - Update Load(string url) behaviour
...
- All three implementations updated to include an IsDisposed check which
will simply return immediately
- OffScreen updated to match the WinForms behaviour
- WPF is more complex because of the initialAddress and Address properties
initialAddress will be set if the browser hasn't been created, if the browserCreated
has been created and OnAfterBrowserCreated hasn't been called then we'll set the Address
dependency property.
NOTE: For WinForms/OffScreen there's a small window
here between CreateBrowser and OnAfterBrowserCreated
where the Address prop will be updated, though LoadUrl
won't be called.
2021-10-08 12:40:54 +10:00
Alex Maitland
c226d344b1
WinForms/WPF/OffScreen - Add LoadUrl method (Same as Load(string)).
...
A more meaningful name for the method, matches the LoadUrlAsync method
that was added recently.
2021-10-08 10:21:31 +10:00
Alex Maitland
6ce9958d2d
WPF - Add System.Windows.Controls.ContextMenu based ContextMenuHandler ( #3815 )
...
* WPF - Add System.Windows.Controls.ContextMenu based ContextMenuHandler
Based of https://github.com/chromiumembedded/cef/blob/ba46b8c53ed0f46cec82a1aebaec173784deb6e4/libcef/browser/menu_manager.cc#L385
* Add model class instead of passing in params
2021-09-23 13:43:28 +10:00
Alex Maitland
65534275b7
Core - Upgrade to newer SDK Style project
...
- Upgrade CefSharp.Core.csproj
- Upgrade CefSharp.csproj
- Ensure pdbs are generated for release builds with same settings as before
Issue #3791
2021-09-20 11:32:14 +10:00
Alex Maitland
172ee5afe8
Migrate from GitLink to Source link
...
Resolves #3036
2021-09-07 12:08:56 +10:00
Alex Maitland
138d6e94cd
WPF - Support DPI change notification for .Net 4.6.2 or higher
2021-09-05 15:22:00 +10:00
Alex Maitland
e4e0f22ca7
WinForms/WPF/OffScreen - Upgrade to SDK style projects and multi-target net452 and net462
...
Haven't tested the output nuget packages yet, we might still need to change the nuspec files to add a
dependency group.
Issue #3791
2021-09-05 15:09:35 +10:00
Alex Maitland
90b631a5ad
WPF - Add TODO regarding shutdown support for multiple dispatchers
2021-09-03 14:51:17 +10:00
Alex Maitland
d350cad52a
Update to M93 ( #3781 )
...
* Upgrade to CEF 93.1.7+g9117d6a+chromium-93.0.4577.42 / Chromium 93.0.4577.42
- Core - Add basic ref counting implementation
IMPLEMENT_REFCOUNTING implementation uses atomic which
forces the VC++ compiler to compile as native which doesn't work for our managed ref classes.
- Use InterlockedCompareExchange for custom ref count reads
- Use InterlockedIncrement/InterlockedDecrement directly
- There's no memory barrier for HasOneRef/HasAtLeastOneRef as the read of a LONG should happen in one operation
on 32/64 bit architectures (at least that's my understanding at this point in time).
References:
https://github.com/chromiumembedded/cef/blob/4472/include/base/internal/cef_atomicops_x86_msvc.h#L125
https://github.com/chromiumembedded/cef/blob/4472/include/base/internal/cef_atomicops_arm64_msvc.h#L107
https://github.com/chromiumembedded/cef/blob/4472/include/base/cef_atomic_ref_count.h#L114
https://github.com/chromiumembedded/cef/blob/4472/include/cef_base.h#L91
- Remove Microsoft.Net.Compilers package from projects
Now that we require a min of VS2019 to build there's no need for a custom compiler package
- Start removing VS2015/VC++2015 references
- Remove RegisterWidevineCdm
This is a breaking change. CEF will now automatically download the Widevine CDM component
Resolves #3767
- RequestContext.LoadExtension now uses managed to code spawn on CEF UI Thread
Avoid having to use cef_callback.h which was causing problems for x86 builds
2021-09-03 10:51:18 +10:00
campersau
aae39fc1e5
WPF - Check for "ax_tree_id" and avoid referencing IValue in class member ( #3770 )
2021-08-25 09:13:41 +10:00
Alex Maitland
6cf756f25a
WPF - WritableBitmapRenderHandler ArgumentOutofRange
...
Resolves #3474
2021-07-30 10:29:52 +10:00
Alex Maitland
e5f2381351
WinForms/WPF/OffScreen - Use custom FocusHandler when disposing to block taking focus
...
This was added as a workaround for Issue #3715 which is specific to WinForms
and will hopefully be fixed upstream.
I've added the logic to all three implementations as I think the behaviour should be
consistent across all implementations.
2021-07-27 13:13:17 +10:00
Alex Maitland
66cd9ef4b8
WPF - Improve WpfIMEKeyboardHandler browserHost null checks
...
CancelComposition is now private as it's not used outside the scope of the class. Technically this is a breaking change
though it's incredibly unlikely this method was used outside the scope of WpfImeKeyboardHandler as it requires
the Hwnd which is obtained from the SourceHook which is private.
We can and probably should make most of the private methods protected virtual to allow for overriding of just a small
portion of the class, you currently can copy and paste the whole class into your own code base if small changes are required.
#3690
2021-07-22 10:33:32 +10:00