Commit Graph

881 Commits

Author SHA1 Message Date
amaitland 7621cbb745 Remove IsLoadingChangedEventArgs 2015-04-08 11:05:12 +10:00
amaitland 89b02583e8 Remove method overloads and use optional param instead 2015-04-07 20:30:15 +10:00
Exinferis 8581c3f03b Added parameter for lowercasing JS functions (or not) 2015-04-02 15:37:12 +02:00
Steve van Treeck fc6c2af770 Added scaling to the width and height of the Wpf Popup 2015-04-01 08:31:06 -05:00
Steve van Treeck d294ec6ed4 updated 2015-03-30 15:51:57 -05:00
Steve van Treeck c9f9fb303f Updated the Popup settings
This avoids win 8/8.1 menu alignment settings
2015-03-30 09:47:34 -05:00
amaitland c73866eb79 SetIsLoading is unreliable according to CEF documentation http://magpcss.org/ceforum/apidocs3/projects/%28default%29/CefLoadHandler.html#OnLoadStart%28CefRefPtr%3CCefBrowser%3E,CefRefPtr%3CCefFrame%3E%29
`For notification of overall browser load status use OnLoadingStateChange instead.`

So migrating `WPF` property to `OnLoadingStateChange`
2015-03-30 15:34:07 +10:00
amaitland a7b8e1eb76 Remove MouseButtonType as it's not required - enum values match those of Cef, so just pass in as int and cast when required
(Should be much more efficient than switch statement)
2015-03-19 10:58:18 +10:00
amaitland d316486426 Expose Dispatcher via IWpfWebBrowser interface - could be useful for Handler implementations 2015-03-18 21:34:20 +10:00
Per Lundberg 109bb6159a Added TitleChanged event handler. 2015-03-17 09:36:02 +02:00
Per Lundberg 702e867916 Whitespace adjustments. 2015-03-17 08:55:42 +02:00
Per Lundberg 56f050b1bf Removed superfluous braces. 2015-03-17 08:55:17 +02:00
Per Lundberg 9a1c526456 Sorted usings. 2015-03-17 08:53:11 +02:00
dimas 06ac7f7641 Adding more condition to OnPreviewKey so Ctrl+A will work when web browser is put inside a listbox 2015-03-16 18:58:21 +08:00
rassilon a04d3c6eb8 Rename IResourceHandler to IResourceHandlerFactory. 2015-03-02 23:08:04 -05:00
amaitland aada02c356 Add ScreenInfo class to represent Width/Height/ScaleFactor 2015-03-02 10:40:01 +10:00
amaitland e6912af9d8 Reorder WPF ChromiumWebBrowser control, moved constructor, dispose, finalizer, properties
Still could use a more work, at least it's a little bit better
2015-02-27 14:40:40 +10:00
amaitland 53484baca1 Remove deviceScaleFactor variable as it's not really needed, just read from the matrix directly 2015-02-27 11:47:22 +10:00
Bjarte Skogøy ebf8b88523 - notify screen info changed
- update the scaletransform when presentation source is changed
2015-02-26 10:05:23 +01:00
Bjarte Skogøy 4e03c277e3 - no underscore on variable name
- move variable declaration
2015-02-26 08:09:06 +01:00
Bjarte Skogøy f8c242e88d Use device scale factor to support higher DPI on WPF 2015-02-25 09:31:58 +01:00
amaitland 8b41c8ec98 Cleanup DPI transform code slightly - removed unused methods
Tempting to remove the popup code as it's not actually used - leaving for now
2015-02-24 12:12:14 +10:00
amaitland 80b4580fad Remove duplicate null check 2015-02-24 11:58:32 +10:00
amaitland 045961bd6e Merge branch 'master' of https://github.com/dmrzn/CefSharp 2015-02-24 11:55:50 +10:00
Alex Maitland 651224a7cd Merge pull request #813 from amaitland/improvements/more-wpf-rendering-tweaks
WPF Rendering - Implement WritableBitmap and Minor Optimisations
2015-02-24 11:37:55 +10:00
dmrzn 66dabdbf33 Fixed memory leak issues:
1. Unsubscription from CleanupElement.Unloaded event
2. Unsubscription from tooltipTimer.Tick event
3. Removing source hook
2015-02-20 15:21:22 +03:00
amaitland 77076b8bbe Minor code cleanups, add braces, remove extra lines, make methods static 2015-02-17 12:00:49 +10:00
amaitland ffe8302921 Add license disclaimer 2015-02-15 22:37:37 +10:00
amaitland 396eeb41b1 Untabify 2015-02-15 22:29:09 +10:00
amaitland b6ac43a0a8 Merge remote-tracking branch 'remotes/upstream/master' into improvements/more-wpf-rendering-tweaks 2015-02-15 22:26:03 +10:00
amaitland b678ff168d Until WPF zoom issues can be resolved (problems with setting zoom using dependency property). Expose the SetZoomLevel method directly 2015-02-14 12:13:24 +10:00
Bill Tutt 4df746dd53 #785: Fix IDisposable pattern usage in WPF ChromiumWebBrowser by:
* null-ing out all handlers and event listeners
 * ONLY dereference a managed objects if we're disposing (and not finalizing) since the object could be already disposed before us if we're being finalized.
2015-02-03 19:58:19 -05:00
amaitland da16d9f0eb Cleanup code as per feedback in PR #732 2015-02-03 23:05:43 +10:00
amaitland 38e60a97f3 Merge branch 'feature/2171-drag-drop' of https://github.com/Bodekaer/CefSharp into enhancement/focus-take4 2015-02-03 22:54:46 +10:00
amaitland c9620fab6d Assign default BitmapFactory 2015-01-29 15:27:55 +10:00
amaitland bfec2c95b1 Add IBitmapFactory so that different Rendering methods can be plugged in (potentially a .Net 4.5 InteropBitmapInfo can be created)
Move into Rendering namespace
2015-01-29 15:25:08 +10:00
amaitland 524f5cb213 Merge branch 'enhancement/writeablebitmap' into improvements/more-wpf-rendering-tweaks 2015-01-29 11:54:12 +10:00
pushplay aba800a9c3 Implement CefGeolocationHandler::OnRequestGeolocationPermission delegating the request to a CefSharp.IGeolocationHandler implementation. This allows CefSharp to permit geolocation requests. 2015-01-26 14:16:46 -08:00
amaitland 1d7cc92a6a Pass in the IntPtr as lParam and then based on IntPtr Size (32bit == 4 and 64bit == 8) convert the IntPtr to either 32bit or 64bit 2015-01-22 11:59:53 +10:00
amaitland a250e2d7ed WPF Fix lParam.ToInt32() overflow when running in 64bit mode
https://github.com/cefsharp/CefSharp/issues/509#issuecomment-70944315
2015-01-22 11:09:45 +10:00
amaitland b094261a0b Move Cef.IsInitialized into constructor - fail fast rather than waiting until Load is called 2015-01-20 18:32:05 +10:00
amaitland ae3bfb3d3a Re-add Left and Right keys to PreviewKey - WPF was doing funny things with Right (was previously being captured before keyboard rewrite) 2015-01-16 18:25:29 +10:00
amaitland 899e991a0a First attempt at WritableBitmapInfo implementation - uses dirty rects to determine which part of the screen to update 2015-01-16 14:02:08 +10:00
amaitland c2242e5158 Create another layer of abstraction around BitmapInfo - Allow for future possibility of implementing WritableBitmap in WPF 2015-01-16 12:22:40 +10:00
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
amaitland 18837ae5e8 Move variable to inner scope
Remove TODO comment
2015-01-06 12:06:23 +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 8b8d97e350 Pass in WPF Window handle when creating offscreeen browser 2014-12-30 08:42:29 +10:00
amaitland abbb3145c8 Merge remote-tracking branch 'remotes/upstream/cef/2171' into improvements/2171 2014-12-22 23:06:23 +10:00
amaitland 3325daf692 As per MSDN article's recommendation always call base.OnPreviewKey method so that subscribers are notified. 2014-12-22 22:54:57 +10:00