Commit Graph

67 Commits

Author SHA1 Message Date
Bill Tutt de7b6b4240 More IFrame usages, take special note of the chaneges in the EventArgs types. 2015-05-02 01:15:47 -04:00
Bill Tutt afcb11c7c2 Merge remote-tracking branch 'origin/cef/2272' into CefFrameWrapper 2015-05-02 00:03:02 -04:00
Bill Tutt e1e58a5da6 Add IFrame interface as the public face of CefFrameWrapper.
IRequestHandler: Pass IFrame instances instead of isMainFrame.
Support EvaluateJavaScriptAsync from a frame.
IBrowserAdapter, IBrowserAdapterNative: Dependency breaking between CefFrameWrapper and ManagedCefBrowserAdapter.
Add IBrowserAdapter.BrowserAdapter to IWebBrowserInternal and implment for all controls.

This builds, but hasn't been tested yet. Thoughts?
2015-05-02 00:01:31 -04:00
amaitland 0eeacddd78 Sign the OffScreen project (using existing snk file) 2015-05-02 06:55:27 +10:00
rassilon fdd5508467 Continue the TaskScheduler items:
* Replace IWebBrowser.ZoomLevel property with:
   GetZoomLevelAsync(), and SetZoomLevel().
2015-04-27 18:20:32 -04:00
rassilon 7128e40fd1 It's time for copyright updates again. Yay!
Throw in a couple of tab containing files for good measure.
Evil tabs, evil I say.
2015-04-25 02:45:21 -04:00
amaitland 0e78ee0e28 Attempt to improve efficiency of OffScreen rendering by only creating a new bitmap when the old one changes in size (same behaviour as WPF).
Moved bitmap creation into GdiBitmapInfo
2015-04-24 15:53:12 +10:00
rassilon 701d391c59 Adding .Net enum of CefThreadId (mostly to be able to call .ToString()).
Added license headers on new files.
Remove sync version of GetZoomLevel on ManagedCefBrowserAdapter.
Updated callers to call GetZoomLevelAsync() but in a blocking sync manner.

Added CurrentlyOn/EnsureOn static methods to CefTaskScheduler.
2015-04-22 08:19:36 -04:00
amaitland c66b28a645 Merge remote-tracking branch 'remotes/upstream/master' into cef/2272 2015-04-21 11:54:56 +10:00
amaitland 39c8194b49 rename lowerCaseJavascriptNames to camelCaseJavascriptNames - more accurate description of what's going on 2015-04-16 16:31:54 +10:00
amaitland 4b3ee2a9a0 Merge remote-tracking branch 'remotes/upstream/master' into cef/2272 2015-04-10 16:22:57 +10:00
Alex Maitland d7525280d8 Merge pull request #923 from exinferis/master
Added parameter for lowercasing JS functions (or not)
2015-04-10 15:44:21 +10:00
amaitland fb4f0bbc05 Mark IsLoadingChanged Obsolete in OffScreen and WinForms versions 2015-04-10 08:26:26 +10:00
amaitland d55ea0c90e Rename NavStateChanged to LoadingStateChanged 2015-04-08 11:09:37 +10:00
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
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 4b9bdacabf Add BrowserSettings property and Dispose of BrowserSettings as it's a managed class 2015-02-27 14:25:48 +10:00
amaitland be6e6d12da Add AddressChanged and IsLoadingChanged handlers to OffScreen 2015-02-27 14:23:01 +10:00
amaitland 7a67f05b75 Code cleanup - reorder properties so they're grouped together 2015-02-27 14:20:08 +10:00
amaitland ac2af300a0 Add default value to OffScreen constrictor 2015-02-27 14:13:08 +10:00
amaitland e4df212597 Add TODO in offscreen browser 2015-02-27 11:58:36 +10:00
Bjarte Skogøy f8c242e88d Use device scale factor to support higher DPI on WPF 2015-02-25 09:31:58 +01:00
amaitland b6ac43a0a8 Merge remote-tracking branch 'remotes/upstream/master' into improvements/more-wpf-rendering-tweaks 2015-02-15 22:26:03 +10:00
Bill Tutt 057925d6b8 Fix comment spelling error. 2015-02-03 20:27:30 -05:00
Bill Tutt 329dad21c8 #785: Fix IDisposable pattern in Offscreen ChromiumWebBrowser by:
* NULL ing out event listeners and handlers
* Only derefing managed objects during a dispose (doing so during finalization is bad)
* Add missing finalizer to ensure CEF gets shutdown properly.
2015-02-03 20:00:08 -05:00
amaitland c1d44dbcbb Add Cef.Initialize check in constructor of WinForms and OffScreen implementations - makes them consistent with the WPF version. 2015-02-02 18:17:40 +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
jankurianski 9d2d8f7a40 Fix OffScreen's Address field
This fix ensures the Address field returns the correct value after
construction (instead of null).  The Address field setter is now private
as callers should use Load() to change url.
2015-01-22 11:45:30 +11: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
amaitland c3aff2f803 Resharper inspired cleanup - remove redundant using 2015-01-08 10:39:40 +10:00
amaitland 592149ea21 Simplified OffScreen InvokeRenderAsync again - create bitmap using the BackBufferHandle directly rather than copying the memory 2014-12-30 12:46:15 +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 8b92441fec Remove the second lock in InvokeRenderAsync - now using the same lock object for GdiBitmap 2014-12-30 10:56:51 +10:00
amaitland 16905e02a7 Simplify ScreenshotAsync, now just uses a TaskCompletionSource 2014-12-30 10:27:07 +10:00
amaitland 794114c53e Fix comment formatting
Remove `this.` - no need
2014-12-30 09:59:48 +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 af24c31592 Add license disclaimer to GdiBitmapInfo 2014-12-22 23:16:57 +10:00
amaitland abbb3145c8 Merge remote-tracking branch 'remotes/upstream/cef/2171' into improvements/2171 2014-12-22 23:06:23 +10:00
amaitland 78bbc23bd2 Implement AddWordToDictionary and ReplaceMisspelling in CefSharp.Offscreen 2014-12-22 17:24:07 +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 520349d643 Make BitmapInfo abstract and implement a strongly typed version in WPF and OffScreen 2014-12-16 23:19:21 +10:00
amaitland da6e95e898 Remove redundant SetBitmap method from IRenderWebBrowser 2014-12-16 19:44:31 +10:00