Commit Graph

1411 Commits

Author SHA1 Message Date
Bodekaer 3407a91d1d Added drag-drop support, to allow dragging files, text and links into the browser (WPF-only currently) 2015-01-07 16:10:56 +01:00
BinSys defd040dcc change c++ file copyright symbol (©) from 0xa9(cp1252) to 0xc2 0xa9(cp65001 without bom) ,
now work on non-english system().
2015-01-06 22:23:30 +08:00
daveaton 82affbebb6 Changed Small case and spaces changes 2015-01-06 05:12:19 -06:00
daveaton 3202167a61 Revert "Small case and space changes"
This reverts commit 74a2f1a13a.
2015-01-06 05:08:19 -06:00
daveaton 74a2f1a13a Small case and space changes 2015-01-06 04:39:58 -06:00
amaitland 5ee13cc54f Make MainBitmapInfo and PopupBitmapInfo private
Make DisposeBitmapInfo private
2015-01-06 16:10:38 +10:00
amaitland 82d202e831 Merge SetBuffer method into OnPaint 2015-01-06 16:07:16 +10:00
amaitland 251ae9a8ec IntPtr is a struct so pass by value rather than reference 2014-12-30 16:29:07 +10:00
amaitland 584baa2170 Remove User32.cs and implement Focused methods in NativeMethodWrapper 2014-12-30 16:23:36 +10:00
amaitland 22f70bbb9e Copy the buffer directly into the bitmap rather than converting to InteropBitmap then back again
Bitmap property was unused, so change to IsCleared property for now
2014-12-30 12:37:00 +10:00
amaitland f1ddf6f61f Remove TryGetCefHost method - similar cleanup to previous commit, brings code more inline with cefclient example
(It would appear that having an instance of the browser then there will always to be a host)
2014-12-30 09:16:28 +10:00
amaitland 3cf7b0159a Remove TryGetCefMainFrame method - now just using calls directly to GetMainFrame() (brings code more inline with cefclient example) 2014-12-30 09:10:56 +10:00
amaitland 995974d3df Rename _renderClientAdapter to _clientAdapter 2014-12-30 08:55:27 +10:00
amaitland f9821ae549 Add offScreenRendering param to ManagedCefBrowserAdapter and create the relevant Client Adapter as required. 2014-12-30 08:53:16 +10:00
amaitland b70a309d35 Move methods from RenderClientAdapter to ClientAdapter
RenderClientAdapter should really only contains methods that relate to `OSR` (not relevant to the WinForms implementation)
2014-12-30 08:48:07 +10:00
amaitland 8b8d97e350 Pass in WPF Window handle when creating offscreeen browser 2014-12-30 08:42:29 +10:00
daveaton 4d056bca41 Simple Fix to OnBefore Unload
Added is_Reloaded
2014-12-25 21:54:09 -06:00
daveaton bbc03c0741 Extend IJsDialogHandler To Include OnBeforeUnload Dialog Messages
Extended IJsDialogHandler to catch on exit Javascript Dialog messages.
2014-12-25 14:07:42 -06:00
amaitland abbb3145c8 Merge remote-tracking branch 'remotes/upstream/cef/2171' into improvements/2171 2014-12-22 23:06:23 +10:00
amaitland 061c350a9c Improve formatting and include comment about source code origin 2014-12-22 22:54:57 +10:00
amaitland 48c3625523 Import keyboard SourceHook code from cefclient to comprehensively handle key modifiers
Simplified OnPreviewKey so that it only deals with keys that would have been handled by WPF
2014-12-22 22:51:34 +10:00
Alex Maitland e4431ddded Revert "WPF Cleanup Keyboard SourceHook" 2014-12-22 22:44:31 +10:00
Alex Maitland a57f1c4f3c Merge pull request #695 from amaitland/cleanup/wpf-keyboardhooks
WPF Cleanup Keyboard SourceHook
2014-12-22 22:41:55 +10:00
amaitland d366634f18 Remove unnecessary call to CefExecuteProcess. Relevant upstream comment
"It can be used to run secondary processes from the browser client executable (default behavior) or from a separate executable specified by the CefSettings.browser_subprocess_path value"

We use a separate browsersubprocess which has the relevant call.
2014-12-22 22:07:25 +10:00
amaitland 5543b21df5 Whitespace fixes 2014-12-22 17:08:24 +10:00
amaitland 3a2dc3ff44 Merge remote-tracking branch 'remotes/upstream/master' into cef/2171 2014-12-22 16:51:23 +10:00
amaitland 9ce2c07888 Reanme SetNavState to SetLoadingStateChange (Internal method rename, to keep inline with Cef API, no external naming changes so shouldn't affect user, just makes it a little easier when looking at the Cef documentation) 2014-12-22 16:48:54 +10:00
amaitland c7fe363126 Renamed CanReload param on SetNavState to isLoading as that's the value passed through from Cef
Add IsLoading property to NavStateChangedEventArgs (inverse of CanReload)
Whilst `CanReload` is the inverse of `IsLoading` I think from a support point of view it's easier to have both as users are looking for some sort of loading flag
2014-12-22 16:44:05 +10:00
amaitland 450ee3995d Close open popups (if any) when ManagedCefBrowserAdapter is disposed 2014-12-19 16:30:59 +10:00
amaitland 048ff475e5 When OnTitleChange and browser IsPopup then set the Window title directly 2014-12-19 14:09:17 +10:00
amaitland c7032ea83c Upgrade to Cef 3.2171.1949
OnCursorChange Signature has changed
2014-12-18 22:23:25 +10:00
amaitland 32334c2c62 Improve formatting and include comment about source code origin 2014-12-18 12:44:38 +10:00
amaitland f28c027f5b Import keyboard SourceHook code from cefclient to comprehensively handle key modifiers
Simplified OnPreviewKey so that it only deals with keys that would have been handled by WPF
2014-12-18 12:29:16 +10:00
amaitland 85c44f7754 Move BytesPerPixel to BitmapInfo - simplifies code 2014-12-16 23:41:11 +10:00
amaitland 520349d643 Make BitmapInfo abstract and implement a strongly typed version in WPF and OffScreen 2014-12-16 23:19:21 +10:00
amaitland 7bc7cd227a Improve comment 2014-12-16 21:17:37 +10:00
amaitland 166c898251 Add comments to SetBufferHelper 2014-12-16 21:04:37 +10:00
amaitland 6f5ce15847 Simplify OnPaint 2014-12-16 20:55:48 +10:00
amaitland f1e5009224 Remove redundant local variable declaration 2014-12-16 20:52:27 +10:00
amaitland 96b300eaf2 Move currentWidth and currentHeight into SetBufferHelper 2014-12-16 20:51:18 +10:00
amaitland 325b7f19e2 Continue to cleanup width and height variables 2014-12-16 20:50:14 +10:00
amaitland e3f7718833 Rename width and height variables 2014-12-16 20:48:21 +10:00
amaitland 4dd0328712 Remove redundant ClearBitmap method from IRenderWebBrowser 2014-12-16 19:42:49 +10:00
amaitland ffac7e6546 Merge remote-tracking branch 'remotes/upstream/master' into cef/2171 2014-12-12 16:45:44 +10:00
jankurianski 667b649e26 Implement CefBrowserHost::SetFocus for WinForms 2014-12-10 15:18:19 +11:00
amaitland 7ef8406179 Merge remote-tracking branch 'remotes/upstream/master' into cef/2171 2014-12-09 21:38:44 +10:00
amaitland 5c50f5ea8b Split GetResourceHandler out of IRequestHandler into it's own IResourceHandler interface 2014-12-09 12:27:32 +10:00
amaitland 9d0f62f589 Code Cleanup - Add license disclaimer, fix file encoding and remove extra whitespace 2014-12-09 08:17:41 +10:00
amaitland 49cd9aa015 Code Cleanup - Reorder properties and fix whitespace 2014-12-08 22:22:57 +10:00
amaitland 2f85dbb460 Add CefDragData GetFileContents stub method (need to implement CefStreamWriter wrapper before this method can be implemented) 2014-12-08 22:20:10 +10:00