Commit Graph

1411 Commits

Author SHA1 Message Date
amaitland d394124b3a Move public facing CefBrowserHost methods into extension methods that use the IBrowserHost wrapper 2015-05-29 11:23:25 +10:00
amaitland a72bcea63c Expose IBrowserHost wrapper through IBrowser - remove the BrowserHost methods StartDownload and Print 2015-05-29 10:56:39 +10:00
amaitland 5c95972c21 Add a rough outline of IBrowserHost (CefBrowserHostWrapper)
Only a few methods are implemented, not exposed yet.
2015-05-29 10:56:38 +10:00
amaitland 1fdf6da796 Default StatusCode = 200 and StatusText = "OK"
Remove the check ResourceHandlerWrapper - use the default value for StatusCode
2015-05-28 20:55:42 +10:00
amaitland 6a7f4dca5e Reuse a single reference to the IBrowser instance - keeping a copy of the wrapper means we can Dispose and release the resources.
Even if the user still has a reference it shouldn't interfere with `CEF`
2015-05-28 20:34:34 +10:00
amaitland 6cd3c67abb Make Reload + ReloadIgnoreCache into one method with a property - makes consistent with the rest of API 2015-05-28 20:23:13 +10:00
amaitland 67d57c96a0 Move Stop/Back/Forward methods into WebBrowserExtensions 2015-05-28 20:20:32 +10:00
amaitland c0e79c20b0 Add GetBrowser methods to get direct access to the underlying CefBrowser instance 2015-05-28 20:08:56 +10:00
amaitland 2983bf7383 Change ContentLength to be a long (int64)
Set ContentLength in ResourceHandler when using a MemoryStream
2015-05-27 18:01:17 +10:00
amaitland af8e53a6a1 Remove redundant method prefix (cpp) 2015-05-27 17:45:55 +10:00
amaitland d0d409a8fd Rename LoadHtml to LoadStringForUrl (Internal method is LoadString, for some reason that causes the compiler a problem as there is a define already aliasing LoadString).
LoadHtml was a somewhat conflicting name with the LoadHtml extension methods that use a ResourceHandler to load the html
2015-05-27 17:44:03 +10:00
amaitland 37384a9461 Rename SchemeHandlerResponse to ResourceHandlerResponse 2015-05-27 17:14:42 +10:00
amaitland 9c7bf2e930 Change ResourceHandler to IResourceHandler
Add StatusText
2015-05-27 17:11:52 +10:00
Matthew Morrison 890b80bc0f Fixed some issues with formatting. 2015-05-23 17:46:06 -05:00
Matthew Morrison f7f13f0359 Add cursor type to SetCursor call. Duplicated CursorType enum from CEF source. 2015-05-22 19:40:40 -05:00
amaitland a6f5131e8a Add Print wrapper 2015-05-21 20:40:13 +10:00
amaitland 3037c84497 Add StartDownload wrapper 2015-05-21 20:39:04 +10:00
amaitland 7ab2d61b04 Add CloseBrowser CefBrowserHost wrapper to IBrowser 2015-05-21 20:34:55 +10:00
amaitland 1ce10ea53f Move LoadHtml (LoadString) to extension 2015-05-21 20:25:02 +10:00
amaitland 1a1fcb9f2e Make the next set of frame related methods into extension methods 2015-05-21 19:12:14 +10:00
amaitland 024a80396e Move the first set of frame related method (Cut/Copy/Paste, etc) into a set of Extension methods 2015-05-21 18:49:58 +10:00
amaitland 831e2e6ffd Switch the nullptr checks around...pedantic I know :) 2015-05-21 18:31:35 +10:00
amaitland 9fb921af80 For GetFocusedFrame and GetMainFrame shouldn't need to check the result, their should always be a frame if the CefBrowser instance != null 2015-05-21 18:29:48 +10:00
amaitland b6df5c48c1 Change GetFrame methods to return IFrame reference 2015-05-21 18:21:08 +10:00
amaitland 771158af28 Pass CefSharpBrowserWrapper instance (IBrowser) into IDownloadHandler - for now not populating the IBrowserAdapter property as there's currently no way to grantee when the resource would be released/disposed.
Maybe need to look at WeakReference or a layer of indirection (which I was hoping to avoid)
2015-05-21 14:25:32 +10:00
amaitland 8a53dfe54d Pass the IBrowserAdapter (ManagedCefBrowserAdapter) reference directly into the ClientAdapter instance 2015-05-21 13:57:17 +10:00
amaitland 2f40861dca Use default params on the IFrame interface to provide the ExecuteJavaScriptAsync overload 2015-05-21 13:51:45 +10:00
Bill Tutt c08b1ff38e Fix some review comments, and add frameloadstart/end/error related methods to IPopupHandler. 2015-05-20 22:59:43 -04:00
Bill Tutt 80d6ae12e5 Merge remote-tracking branch 'origin/cef/2272' into CefSharpBrowserWrapper 2015-05-20 21:54:31 -04:00
amaitland b642e15bc6 Revert "Auto-close blank popups when download is complete"
This reverts commit 7ea66af1cc.

Will look at exposing the IBrowser interface which will give users the ability to close the popup themselves
2015-05-21 10:48:17 +10:00
amaitland 3b7b006f08 Merge remote-tracking branch 'remotes/upstream/master' into cef/2272 2015-05-21 10:47:00 +10:00
amaitland 16616d924f Add missing DECL (__declspec(dllexport)) to OnPopupSize 2015-05-21 09:05:07 +10:00
jamespearce2006 bbd366227d Remove added line 2015-05-19 08:52:28 +01:00
jamespearce2006 ba0c0c1f19 force appveyor rebuild 2015-05-18 20:12:34 +01:00
jamespearce2006 7ea66af1cc Auto-close blank popups when download is complete 2015-05-18 19:12:46 +01:00
Bill Tutt adb5ae0d77 More work on wrapping CefBrowser/CefFrame. 2015-05-17 17:41:44 -04:00
amaitland d4b4e5fd35 Manually apply merge changes from master to ManagedCefBrowserAdapter as it's now split into .h and .cpp, so can't auto merge changes 2015-05-13 09:32:50 +10:00
amaitland 0413c0bc6c Merge remote-tracking branch 'remotes/upstream/master' into cef/2272 2015-05-13 09:29:07 +10:00
amaitland e0730250fb Directly access BrowserSettings as they're internal (extra property and wrapper seems redundant) 2015-05-12 14:35:05 +10:00
amaitland 6805c188e7 Uppercase S in OffScreen - match caseing of CefSharp.OffScreen project name
Use property syntax for brevity (can use short hand in ref classes)
2015-05-12 11:05:41 +10:00
amaitland 3b27034b35 Simplify OffscreenTransparentBackground nullable bool - use GetValueOrDefault 2015-05-12 11:01:40 +10:00
jamespearce2006 118cae0c24 Use BrowserSettings instead of separate property 2015-05-11 09:07:26 +01:00
jamespearce2006 885f80940d Allow disabled transparency /w OSR 2015-05-08 20:36:21 +01:00
jamespearce2006 e20fad9081 Simplify XAML example 2015-05-08 11:14:29 +01:00
jamespearce2006 da9d4df2c8 Cleanup code formatting 2015-05-07 23:40:56 +01:00
jamespearce2006 608d97a0b4 Fixed conflicts 2015-05-07 22:42:19 +01:00
jamespearce2006 ae61994c3d Offscreen popup support 2015-05-07 18:32:14 +01:00
amaitland 468f9d8d5d Create a Cookie class to represent the cef cookie as the .net doesn't quite work, cannot set it's timestamp
Resolve #338
2015-05-07 18:38:30 +10:00
amaitland 95470df8ee Merge remote-tracking branch 'remotes/upstream/cef/2272' into enhancement/onjsdialog 2015-05-07 15:27:44 +10:00
Alex Maitland 16ba0ab6a5 Merge pull request #1008 from amaitland/enhancement/requestcallback
Implement CefRequestCallback wrapper
2015-05-07 15:24:44 +10:00