Commit Graph

881 Commits

Author SHA1 Message Date
amaitland 1f5c5a9740 Cleanup Adding/Removing of SourceHook by using PresentationSourceChangedHandler 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
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 85c44f7754 Move BytesPerPixel to BitmapInfo - simplifies code 2014-12-16 23:41:11 +10:00
amaitland 33b0e4710e Add TODO 2014-12-16 23:35:31 +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 25203c5327 Create BrowserSettings in ChromiumWebBrowser constructor and explicitly call Dispose (it references an unmanaged resource) 2014-12-16 21:26:59 +10:00
amaitland 013c3145c7 Only create new RenderingEventArgs when EventHandler is attached (performance reasons, no need to create object unnecessarily) 2014-12-16 21:05:29 +10:00
amaitland a11ec84b2b Only get BytesPerPixel when generating a new InteropBitmap 2014-12-16 20:27:35 +10:00
amaitland f674387023 Move rendering code inline 2014-12-16 20:25:38 +10:00
amaitland 0bb35f8b27 Only update the InteropBitmap reference when a new one is created 2014-12-16 20:24:47 +10:00
amaitland 7c1bc144b6 Remove SetBitmapHelper method - call code inline for now 2014-12-16 20:24:04 +10:00
amaitland 2824f3b225 Continued refactor of SetBitmapHelper 2014-12-16 20:23:05 +10:00
amaitland aaf676fa09 Simplify SetBitmap by removing Action<> 2014-12-16 19:48:08 +10:00
amaitland da6e95e898 Remove redundant SetBitmap method from IRenderWebBrowser 2014-12-16 19:44:31 +10:00
amaitland 4dd0328712 Remove redundant ClearBitmap method from IRenderWebBrowser 2014-12-16 19:42:49 +10:00
amaitland d3d8d53e15 Merge remote-tracking branch 'remotes/upstream/master' into cef/2171 2014-12-16 19:27:13 +10:00
amaitland c6a387e592 Add LoadHtml overrides with Encoding param (default is UTF-8) 2014-12-16 10:48:16 +10:00
amaitland 7ef8406179 Merge remote-tracking branch 'remotes/upstream/master' into cef/2171 2014-12-09 21:38:44 +10:00
amaitland ba06c3d892 Change LoadHtml to register a ResourceHandler 2014-12-09 12:41:21 +10:00
amaitland 3e2511bb81 Add DefaultResourceHandler implementation 2014-12-09 12:37:21 +10:00
amaitland 5c50f5ea8b Split GetResourceHandler out of IRequestHandler into it's own IResourceHandler interface 2014-12-09 12:27:32 +10:00
daveaton dd6044a497 Implement Drag Handler
Trying to learn how to Implement a feature for Dragging  Objects into
CefSharp
2014-12-08 20:55:20 +10:00
amaitland 414b2c0098 Improve Xml comment and add Invalidate method to IWpfWebBrowser interface 2014-12-08 12:17:54 +10:00
dimas db517cc2da Removing Invalidate call from inside OnIsVisibleChanged, instead making it a method so it can be called from other place if necessary 2014-12-04 23:42:02 +07:00
dimas 094df1aab1 Implementing invalidate 2014-12-04 17:42:21 +07:00
Bjarte Skogøy 0ae0e68ba1 Implemented WasHidden for the WPF ChromiumWebBrowser 2014-12-03 09:35:25 +01:00
amaitland e08051fcd7 Merge remote-tracking branch 'remotes/upstream/master' into cef/2171 2014-11-27 13:12:49 +10:00
amaitland eab35e7306 Merge branch 'feature/focus-handler-ext' of https://github.com/numbersint/CefSharp 2014-11-26 13:32:40 +10:00
amaitland 0360cb464c Merge remote-tracking branch 'remotes/upstream/master' into cef/2171 2014-11-26 11:48:31 +10:00
jankurianski 3bbb01c6ef Added IFocusHandler and WinForms example. 2014-11-25 22:29:35 +11:00
amaitland 8ba6b6bde5 Add NavStateChanged EventHandler to WPF control
Add NavStateChanged to IWebBrowser
Update xml comment
Add stub to Offscreen ChromiumWebBrowser
2014-11-25 21:26:40 +10:00
jankurianski 87667f2635 Pulling in amaitland:CefSharp feature/focus-handler changes 2014-11-25 21:50:42 +11:00
Dominik Hasiwar d1b456083f Added null checks for managedCefBrowserAdapter. 2014-11-25 07:58:04 +01:00
amaitland ba07346578 Merge remote-tracking branch 'remotes/upstream/master' into cef/2171 2014-11-25 14:46:50 +10:00
Bjarte Skogøy a5cd3cfafe Prevent WPF control from dying in design time. 2014-11-20 10:41:03 +01:00
amaitland e554ac66bf Merge remote-tracking branch 'remotes/upstream/master' into cef/2171 2014-11-18 13:48:46 +10:00
Alex Maitland 4b27600d9f Merge pull request #596 from amaitland/feature/SendMouseWheelEvent
Send MouseWheel events with WPF support
2014-11-14 15:35:04 +10:00
amaitland 76c002aac9 Cleanup OnPreviewKey 2014-11-14 09:38:43 +10:00
amaitland 065bb055f0 Cleanup managedCefBrowserAdapter address property, can now be set directly when creating the offscreen browser 2014-11-14 09:36:35 +10:00
amaitland 6015265706 Merge remote-tracking branch 'remotes/upstream/master' into cef/2171 2014-11-14 09:11:50 +10:00
amaitland 47ddcc4ef1 Merge branch 'master' of https://github.com/g3st3/CefSharp 2014-11-12 15:04:48 +10:00
amaitland 736f949731 Add SendMouseWheelEvent to WPF Control
Add SendMouseWheelEvent to IWebBrowser with xml comment
2014-11-12 14:47:42 +10:00
geste a6cbe57993 Removed special key-combination strg+shift, only used for own project 2014-11-10 11:55:31 +01:00
geste 520ff1aebd Fixed what Keys managedCefBrowserAdapter send
Problem: Not all input-keys was sent to handled in Javascript, especially keycombinations like Strg + X, Strg + V and so on wasn't handled. Now, with the fix, this is no longer a problem. Also the keys, special handled in the original version, are no longer needed and so i removed them.
2014-11-10 11:33:40 +01:00
amaitland e61de7c42e Merge remote-tracking branch 'remotes/upstream/cef/2062' into cef/2062-jsb-wip 2014-11-05 12:08:47 +10:00
amaitland 5f0277033e Remove RenderingEventHandler and replace with generic EventHandler
Take reference to EventHandler in OnRendering before null check - best practice
2014-11-05 11:40:42 +10:00
Bodekaer e4ca157790 Added Browser.AddWordToDictionary() support, to allow adding custom word to the spell checker dictionary 2014-11-04 21:59:37 +08:00