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
299f63e64f
Doc - Clarify LifeSpanHandler.OnBeforePopup return true behaviour
...
- Better explanation of return true in OnBeforePopup
- Also Add example doc links
Resolves #3847
2022-10-25 14:23:18 +10:00
Alex Maitland
df8a6086a6
WPF Example - Add JsDialogHandler that uses custom WPF implementation
2022-05-04 10:36:51 +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
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
842429a76e
WPF Example - Implement DisplayHandler.OnFullscreenModeChange
...
- Use the new CefSharp.Handler.DisplayHandler base class
- Update xaml so ChromiumWebBrowser has direct reference to DataContext
- When fullscreen create new window and move the browser, move back when exit fullscreen
2021-05-16 16:28:29 +10:00
Alex Maitland
e035c39d2b
Core - Add Default Handler implementations
...
Inherit and override only the required methods rather than implement the whole interface
2021-05-11 20:39:57 +10:00
campersau
8ad0c76f1b
Wpf.Example - Remove MvvmLight
2020-11-09 20:19:31 +10:00
Alex Maitland
8258102569
Core - Move OnCursorChange from CefRenderHandler to IDisplayHandler
...
Resolves #3275
2020-11-07 18:17:14 +10:00
amaitland
c2e343e23d
WPF Example - ExperimentalLifespanHandler improve DevTools detection
2020-10-30 13:09:38 +10:00
amaitland
e149cabe07
Example - Move RequestContextHandler into CefSharp.Example
...
Was previously only in WPF project, move into the common CefSharp.Example
as there was nothing WPF specific out the class.
2020-10-02 10:25:23 +10:00
amaitland
da8ad192a4
WPF - Add Experimental Accessibility Handler
2020-07-27 20:32:24 +10:00
Justin D'Arcangelo
e834d89518
Fix Issue #2053 - Add accessibility support for WPF
2020-07-27 20:32:24 +10:00
amaitland
e1ed525ba3
WPF Example - ExperimentalLifespanHandler remove targetUrl from constructor
...
Avoid unnecessary memory allocation. The initialAddress passed into the constructor
wasn't used.
2020-06-20 06:36:35 +10:00
amaitland
ec4d4a4eab
WPF Example - Improve ExperimentalLifespanHandler
...
- Pass targetUrl into constructor instead of setting Address property (avoid unnecessarily calling Load(url)
- Rename the popup ChromiumWebBrowser instance to make code more readable.
2020-06-19 20:54:37 +10:00
amaitland
dc3d83eca1
WPF Example - MenuHandler commands now fire reliably
...
- The MVVM Light RelayCommand keeps a WeakRef to the command action, for us this is anonymous, so we
need to keep the target alive.
- Updated MVVMLightLibs (required for keepTargetAlive)
2019-08-13 20:38:36 +10:00
amaitland
07880f0074
WPF Example - Improve demo of hosting popup in ChromiumWebBrowser instance
...
- LifespanHandler renamed to ExperimentalLifespanHandler to make it clear the feature is experimental
- Add additional check for devtools popup
2019-08-12 12:03:52 +10:00
amaitland
52ec00c486
Code cleanup - Rename IWebBrowser browserControl to chromiumWebBrowser
...
Hopefully this makes it clearer that the IWebBrowser instance is actually the ChromiumWebBrowser
Updated almost all instances, there's one WinForms example that wasn't updated
2019-07-20 16:26:25 +10:00
amaitland
b68d8d7a8f
RequestHandler - Change interface implementation to be explicit
...
- Make members protected virtual (BREAKING CHANGE)
- Remove Default from name of DefaultResourceRequestHandlerFactory/DefaultResourceRequestHandlerFactoryItem
2019-06-25 19:24:57 +10:00
amaitland
73a156fdc5
Initial version 75 upgrade and NetworkService changes
...
Compiles, that's about it at this point, there are major CEF breaking changes, and lots to be addressed.
Browser Process (main process)
- Removed IResourceHandlerFactory as it no longer fits with the structure that CEF provides
- New IResourceRequestHandler interface added, not plumbed in yet
- CefSettings - Add RootCachePath and ApplicationClientIdForFileScanning
BrowserSubprocess (render process)
- SendProcessMessage was moved from CefBrowser to CefFrame
- OnBrowserCreated added extraInfo param
The BrowserSubprocess changes for this upgrade should be complete
2019-06-25 19:24:57 +10:00
amaitland
302f5b2c83
WinForms Example - Improve Cef.DoMessageLoopWork examples
...
Change WinFormsBrowserProcessHandler to use a WinForms timer so it's Diposed when the Form is
switch it to using 60fps
2019-06-02 20:35:31 +10:00
amaitland
a0d74dd63e
IDisplayHandler - Add OnLoadingProgressChange
...
Resolves #2686
2019-03-27 22:05:17 +10:00
Chris
30ee538ce0
Added EditorConfig ( #2514 )
2018-09-17 00:46:21 +02:00
Chris
bef5dd37c4
Maintenance - Fixed formatting, file encoding, and copyright year ( #2504 )
...
* Applied formatting
* Fixed file encoding + Updated copyright year
* Updated License
* Fixed more file encoding
* Copyright notice now shows the year the file was created
2018-09-10 10:41:13 +10:00
Igor
0ede12e7ba
Add OSR AccessiblityHandler. ( #2480 )
...
* Add AccessibilityHander.
Implement CefAccessibilityHandler. Add IAccessibilityHandler interface. Add AccessibilityHandler field to IWebBrowser.
* Pull request fixes.
Replaces tabs with spaces; move CefAccessibilityHandler implementation to RenderClientAdapter; add missing comments.
* Add CefValueWrapper.
Add ICefValue interface; pass ICefValue to IAccessibilityHandler.
* Pull request fixes.
Rename CefValue to Value and CefValueType to ValueType; add CefValueWrapper::GetObject() method; remove stub code in AccessibilityHandler; fix comment on IAccessibilityHandler.
* Pull request fixes.
Fix comments for IValue; remove redundant global namespace reference for CefValueType.
2018-08-16 19:33:02 +10:00
amaitland
0f240f9510
Wpf Example - LifespanHandler Update comment to make it clear the code is experimental and incomplete
2018-07-29 19:50:15 +10:00
amaitland
48bd8d5590
Add IRequestContextHandler.OnRequestContextInitialized
...
- Rename RequestContextHandler to CefRequestContextHandlerAdapter and move to internals
- Add missing RequestContextSettings.EnableNetSecurityExpiration
- Minor code cleanup
2018-07-10 20:21:46 +10:00
amaitland
709645a195
WPF Example - Remove commented out context menu code
...
Left over from when the built in wasn't working (it still only works partially) due to https://github.com/cefsharp/CefSharp/issues/1767
Improve comments and add links to make clearer
2018-07-09 20:04:41 +10:00
amaitland
c1b89c62e9
WPF/OffScreen - Code cleanup and minor refactor
...
IRenderWebBrowser - Method naming now matches CEF, xmldoc updated to be more accurate
CefSharp.Wpf.ChromiumWebBrowser and CefSharp.OffScreen.ChromiumWebBrowser both updated as a result of IRenderWebBrowser changes
Should be minimal public API changes, should only require changes for those that are implementing their own rendering, who will have a major rewrite on their hands regardless of this.
2018-04-20 14:49:25 +10:00
Ondrej Medek
791c42cff3
Example LifespanHandler.OnAfterCreated fix eperimental code rare crash ( #2354 )
2018-04-13 20:00:25 +10:00
amaitland
c37dbcd06a
Remove Geolocation API and Upgrade version numbers to 65
2018-03-17 21:31:25 +10:00
amaitland
7128ef11aa
WPF Example - windowInfo.SetAsWindowless no only takes a single param (remove transparency param as that's now set via backgroundcolor)
2018-01-18 15:06:01 +10:00
amaitland
0032ae463f
WPF Example - update MenuHandler to implement custom menu, execute command based on CefMenuCommand enum rather than trying to use IRunContextMenuCallback which isn't working (upstream issue)
...
This is a workaround for #1767
You can use the default CEF menu it does however require you to integrate CEF into your main message loop see #1795
2018-01-18 10:25:50 +10:00
amaitland
921ea55fff
Add IDisplayHandler.OnAutoResize, IBrowserHost.SetAccessibilityState, IBrowserHost.SetAutoResizeEnabled
...
Wrappers for new methods/callback added
2017-12-21 08:53:56 +10:00
amaitland
da898cc93b
RequestContextHandler - Add CookieManager type checking
...
Type check that ICookieManager is of type CookieManager, not currently possible to provide a custom implementation.
Changes in response to #2189
2017-12-20 09:52:01 +10:00
Chris
2b7bdf863f
Updated OnTooltipChanged to allow for modifying text ( #1953 )
...
* Updated OnTooltipChanged to allow for modifying text
* Updated examples
2017-05-15 02:52:02 +02:00
Chris
cd934267c6
Updated copyright year and made sure it used same format everywhere ( #1966 )
2017-03-06 08:44:37 +10:00
amaitland
8a9b0deb60
Upgrade to 3.2883.1552
...
Add isMainFrame to IRequestContextHandler.OnBeforePluginLoad (CEF API changed)
2017-02-01 13:58:51 +10:00
amaitland
7b491fbd3d
WPF - Add browser.IsPopup checks to the example LifespanHandler when using EXPERIMENTAL newBrowser method
...
Was hanging on exit before
2016-10-24 12:14:07 +10:00
amaitland
662ef561b5
ILifeSpanHandler.OnBeforePopup - Add comment about setting newBrowser to null
2016-10-12 12:43:11 +10:00
amaitland
fb1c70a44c
Rename IPluginHandler to IRequestContextHandler
...
Add IRequestContextHandler.GetCookieManager() - Can now have unique CookieManager for each RequestContext
**Breaking Change**
CookieManager should be moved from the CefSharp.Internals namespace - will do that at some point later hopefully
2016-09-25 20:35:04 +10:00
amaitland
cb238ba001
WpfBrowserProcessHandler - Simplify even further, when delay <= 0 in OnScheduleMessagePumpWork fire immediately otherwise wait for the timer to execute (will only be a matter of ms difference between when it's called hopefully
...
Can successfully open a few tabs and run the FishGl test
2016-09-08 09:33:45 +10:00
amaitland
8a3685d320
Add WpfBrowserProcessHandler example implementation - not ready for production use.
...
Better integration with message loop does appear to have some benefits with context menus etc
2016-09-07 13:54:28 +10:00
amaitland
c2bf9fb314
WPF - Custom context menu not working, revert to using the built in context menu (which didn't work previously, one thing fixed, another broken)
...
At some point this will need to be reported upstream
2016-08-28 08:55:33 +10:00
campersau
4a639128b2
Fix hadle -> handle in comment ( #1776 )
2016-08-20 21:51:36 +10:00
amaitland
4a9bc29971
Update the GelocationHandler example - seems people are still struggling with the callback concept.
2016-07-31 19:00:48 +10:00
amaitland
4a8b7c559a
Re-enable the WPF LifespanHandler just comment the code out - add experimental note
2016-05-27 12:04:06 +10:00
amaitland
d1d754cf58
Remove CefWindowInfo from ClientAdapter::OnBeforePopup they will now need to be made in client code
...
(This is now possible as IWindowInfo exposes all the relevant pieces).
This will allow for a little more flexibility, specially on the WinForms front, it should be possible to create the control and then show the window later
2016-05-19 12:11:29 +10:00
amaitland
165cc1f88a
Add a more complex example of using a non draggable region within a draggable one
...
Switched to using System.Drawing.Region for proper region handle
2016-04-13 11:35:40 +10:00
amaitland
4c4eb210f4
Add WPF Draggable Regions Test
...
Remove old generic DragHandler - maybe someone will write a WinForms specific one?
Remove some unused references from CefSharp.csproj
2016-04-12 16:57:47 +10:00