Commit Graph

881 Commits

Author SHA1 Message Date
amaitland 488b1d091a WPF - Minor internal method name changes and tweak a few comments 2017-03-21 10:13:44 +10:00
amaitland 3bc9ca1898 Move Enums into their own folder (again not changing the namespace as to avoid breaking the public API, at least for now)
Add copyright disclaimer to JavascriptResponse
Remove Kernel32.OutputDebugString calls and replace with Debug.WriteLine
Removed ScriptException and ResponseAction - unused classes
Rename CefCursorType to CursorType - wasn't exposed as part of the public API so can rename
2017-03-21 10:05:38 +10:00
Chris a35a030ee8 Added minimal WPF designer support (#1989) 2017-03-20 11:35:09 +10:00
amaitland e596199c6c Merge branch 'mouse-capture-crash' of https://github.com/taylorjonl/CefSharp 2017-03-08 10:24:56 +10:00
amaitland d3a8f3a432 Revert "WPF - Remove Mouse.Capture and directly forward popup mouse events Resolves #1723"
This reverts commit c0e8e8ef8d.
2017-03-08 10:20:04 +10:00
amaitland e130d7e36b WPF - Remove volatile keyword from disposeCount and browserInitialized - switch to using Interlocked class 2017-03-06 08:56:32 +10:00
Chris cd934267c6 Updated copyright year and made sure it used same format everywhere (#1966) 2017-03-06 08:44:37 +10:00
Chris 144dbe8f8a Made GetViewRect always round up (#1962) 2017-02-24 06:57:26 +10:00
amaitland c0e8e8ef8d WPF - Remove Mouse.Capture and directly forward popup mouse events Resolves #1723 2017-02-22 12:24:54 +10:00
Jonathan Taylor 5c70fb4fb8 Removed Mouse capture in mouse events 2017-02-21 19:05:09 -07:00
Chris ad29104605 Fixed WPF browser going blank when connecting over RDP (#1952) 2017-02-20 13:30:46 +11:00
Jonathan Taylor 3b40ca0e00 Moved capture into Opened/Closed events for Popup 2017-02-13 20:55:59 -07:00
amaitland 84930b0784 Update sandcastle help file version numbers to 55.0.0
Fix some other xml comments and remove some unused fields - still lots of comments that could be added
2017-02-06 15:00:45 +10:00
amaitland 954c87d58b WPF Change to BitmapScalingMode.HighQuality - default it to higher and let people reduce it rather than the other way around 2017-01-19 08:55:11 +10:00
amaitland d4ef1519b9 Add IRenderWebBrowser.GetScreenPoint - basic WPF implementation 2017-01-18 07:26:05 +10:00
amaitland 56f693fa69 WPF - Reuse existing tooltipTimer rather than create a new one - resolves #1801 2017-01-10 12:09:33 +10:00
Mike f5a3b5e6ca Humanify the ghostdoc comments (#1897)
A little touchup to better explain some of the event handlers.
2016-12-22 09:31:45 +10:00
amaitland fdd08896d7 Expose the IME methods/callback added with https://bitbucket.org/chromiumembedded/cef/commits/f7014be
It should now be possible for someone to implement IME support in the WPF control to resolve #1262
2016-12-14 07:32:03 +10:00
amaitland 21b9eb601e Change popup mouse capture, hopefully resolve #1723
Unhook popup mouse handlers when disposing
2016-10-19 16:33:35 +10:00
amaitland e3a5368d22 WPF - Update Custom cursor in a sync fashion resolves #606 2016-10-14 11:57:49 +10:00
amaitland 79f3844cab Follow up to #1764
- Call SetHandlersToNull() in a consistent fashion across all three implementations
- Reword comments slightly
2016-08-09 12:40:58 +10:00
amaitland 05b4e05015 Mark mouse button down/up as handled should resolve #1002
Move calculating of position and modifiers into the null check, those vars are only relevant when there is a browser host
2016-08-08 18:16:41 +10:00
Alex Maitland d4feffb554 Feature - Add IBinder (#1749)
* Add basic ModelBinding which was imported from NancyFx framework - more can be stripped out that's unused

* Add IBinder as a param when registering an object for binding
Binding is disabled by default

* Add license and remove unused using statements

* Make bind method virtual to allow for overriding
Make methods protected

* Add very basic collection support - only primitive types supported for now.
Remove unused exceptions

* Support binding a list of sub objects

* Add null check for null params

* Add BindingOptions class - remove binder and CamelCaseJavascriptNames properties - allow for additional options in the future
Breaking change.

* Add support for List<object> binding type
2016-07-20 13:38:24 +10:00
amaitland 933bad3dcc Add a more detailed description of what thread events are executed on
Should be enough to generate some meaningful API docs now
2016-06-15 14:14:39 +10:00
amaitland afe758eb51 Use GhostDoc to generate bulk xml documentation - it's not perfect at least a lot of the interface doco has been copied into the
ChromiumWebBrowser instance classes
2016-06-15 13:44:16 +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 fdef48623e Update InteropBitmapInfo to have DirectRect support (possible as we've upgraded to .Net 4.5.2) 2016-05-13 15:47:23 +10:00
amaitland 54f7fccdaa Upgrade to .Net 4.5.2
Resolve #1572
2016-05-10 20:28:21 +10:00
amaitland 8f89271f02 Rename CreateOffscreenBrowserWhenActualSizeChanged to CreateOffscreenBrowser
Make CreateOffscreenBrowser protected virtual to allow for customisation
(it's not something I think you should in general be doing, so I'm not going to make it easy to do so, need to subclass `ChromiumWebBrowser`,
then override CreateOffscreenBrowser, making it a NOOP then create a method that calls base.CreateOffscreenBrowser(size)).
2016-03-22 08:29:31 +10:00
amaitland cd322af03d Switch to using SizeChanged event rather than being notified of changes to the ActualWidth and ActualHeight (not really sure the original reason that method was choose)
Remove no longer used DisposableEventWrapper
2016-03-21 08:58:57 +10:00
Vasiliy Vdovichenko 45c4221a51 Fixed Wpf ChromiumWebBrowser throws ObjectDisposedException after dispose - https://github.com/cefsharp/CefSharp/issues/1631 2016-03-17 16:20:00 +02:00
amaitland af457916e3 Implement IFindHandler
Resolves #1459
2016-03-07 12:44:49 +10:00
amaitland 6e4bfc2665 WPF touch scroll code not working, so comment out for now 2016-02-29 14:48:18 +10:00
amaitland 71ce888073 First steps to publishing a symbols package
Add pdb files to nuspec - they're only included when the -symbol flag is used
Add src files to nuspec - they're only included when the -symbol flag is used
Update appveyor.yml to push symbol packages to the MyGet feed
Add -symbol flag to build.ps1 so the symbol packages are generated
WinForms project not outputs pdb files
WinForms release builds are not optimized - probably should have been already
2016-02-26 11:49:52 +10:00
antonyo 9419f61e29 Unset IsBrowserInitialized property when browser is disposed. 2016-02-16 19:39:45 +10:00
Alex Maitland 69ffd4370b Merge pull request #1542 from amaitland/cleanup/duplicatecode
Cleanup ManagedCefBrowserAdapater + Remove Duplicate Code
2016-02-01 16:16:07 +10:00
Per Lundberg 5ad36a1778 Added support for drag & drop from input fields
There was a problem with the previous implementation. It worked correctly for many use cases:

- Dragging from a web app to a WPF control.
- Dragging from a WPF control to a web app.
- Dragging _html content_ from a web app to an input field

**But**: when dragging text from one input field to another, the text would vanish (!) when you drop it.

We debugged this here quite extensively. It turned out that if you have _set_ the `FragmentHtml` (even though you've set it to an empty string), it behaves like this. The solution is to avoid setting it if it is empty.
2016-01-29 09:26:27 +02:00
amaitland 0181d59850 Add SendKeyEvent overload that takes the message params and parses them - using the managed method would have required an unnecessary object creation
This code maybe useful to someone, can be used in the context of the OffScreen browser now
2016-01-12 15:31:13 +10:00
amaitland 63ba97042d Move the Drag OSR methods from ManagedCefBrowserAdapter to CefBrowserHostWrapper 2016-01-12 14:36:24 +10:00
amaitland 627f80c8ec Pass in only the required params into BrowserProcessServiceHost - was passing in the browser adapter which wasn't strictly required.
Pass the IBrowser instance into IWebBrowserInternal.OnAfterBrowserCreated
Keep a reference to IBrowser in the ChromiumWebBrowser instances (reduces the number of GetBrowser calls and also makes it clearer internally when the browser variable is set)
2016-01-12 14:01:37 +10:00
amaitland bae3c28e92 Update copyright to 2016 2016-01-11 14:11:30 +10:00
Alex Maitland db1b23f7b2 Merge pull request #1540 from amaitland/enhancement/bitmapscalingbinding
Add BitmapScalingMode binding and demo
2016-01-11 11:15:28 +10:00
amaitland 2ffcaa11dc WPF OnMouseWheel - move variables inside of null check 2016-01-09 08:10:23 +10:00
amaitland 83dba09e99 Start to remove some of the methods from ManagedCefBrowserAdapter that are now available through IBrowserHost 2016-01-09 08:09:38 +10:00
Sharon98 5244c7495c Send modifier keys during MousewWheel event
This will allow processing of modifier keys such as ctrl and shift during mouse wheel event.
2016-01-08 10:04:48 -06:00
amaitland 31891e5de3 Touch scroll basics working (only tested on one device - Surface Pro)
As the code is not well tested and I'd like to merge into the next release I'm disabling this by default
IsManipulationEnabled = true can manually be set on the ChromiumWebBrowser instance to enable.
Enabled by default in the WPF Example
2016-01-05 21:47:41 +10:00
gayak 1f6dc69dee Add BitmapScalingMode demo.
Add BitmapScalingMode binding.
2015-12-28 21:33:14 +10:00
Rich McNeary 7d4e074ef4 Move OnFocusedNodeChanged into new IRenderProcessMessageHandler. 2015-12-08 09:32:54 -05:00
amaitland c00eeb82f5 Remove some stray AnyCPU targets from the csprojcts 2015-11-27 11:35:41 +10:00
amaitland 42281eb9f9 Switch ternary evaluation to == rather than !=
Change variable naming to be consistent with rest of code.
Add code comment
2015-11-01 20:00:17 +10:00