Commit Graph

  • 52fdd9aec1 IBrowserHost now implements IDisposable Only create one instance of the CefBrowserHostWrapper and dispose of it (release the reference) when the Browser Wrapper is disposed amaitland 2015-05-29 12:38:35 +10:00
  • 3a120d6ab6 Remove WinForms Example FocusHandler reference from project - file was previously deleted amaitland 2015-05-29 12:37:21 +10:00
  • d99cefb8ea Remove CefFrameWrapper.h (wasn't used) Move CefBrowserHostWrapper into Internals amaitland 2015-05-29 12:21:51 +10:00
  • 1df0d648a8 Don't create a task for MemoryStreams, and some more Resharper Cleanups. Bill Tutt 2015-05-28 22:12:47 -04:00
  • 16ac917f49 Add some more xml comments to WebBrowserExtensions amaitland 2015-05-29 12:08:24 +10:00
  • 33c61a6610 Make SourceHook virtual for Wpf ChromiumWebBrowser so inherited controls can override custom hook. Antonyo 2015-05-29 10:53:12 +09:00
  • d394124b3a Move public facing CefBrowserHost methods into extension methods that use the IBrowserHost wrapper amaitland 2015-05-29 11:23:25 +10:00
  • a72bcea63c Expose IBrowserHost wrapper through IBrowser - remove the BrowserHost methods StartDownload and Print amaitland 2015-05-29 10:55:34 +10:00
  • 5c95972c21 Add a rough outline of IBrowserHost (CefBrowserHostWrapper) Only a few methods are implemented, not exposed yet. amaitland 2015-05-29 10:50:09 +10:00
  • e715c37910 Don't dispose of cefBrowser now that it's a single reference per ChromiumWebBrowser instance - API may still need a few tweaks amaitland 2015-05-28 21:00:26 +10:00
  • 1fdf6da796 Default StatusCode = 200 and StatusText = "OK" Remove the check ResourceHandlerWrapper - use the default value for StatusCode amaitland 2015-05-28 20:55:42 +10:00
  • e83daa37fe Remove ISchemeHandlerResponse - wasn't going to be used amaitland 2015-05-28 20:46:42 +10:00
  • 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 amaitland 2015-05-28 20:34:34 +10:00
  • 1163e59aae Dispose of frame when finished (releases the reference to the unmanaged class). Whilst not strictly required, it's nice to know the frame is explicitly released and for those copying the code, give them a clue that they need to call dispose amaitland 2015-05-28 20:28:46 +10:00
  • bd3fddddbc Throw exception if null (ThrowExceptionIfBrowserNull) Dispose of IBrowser once finished (just releases the reference) amaitland 2015-05-28 20:25:14 +10:00
  • 3038b820ec Slightly better param naming - internalBrowser -> cefBrowser amaitland 2015-05-28 20:24:04 +10:00
  • 6cd3c67abb Make Reload + ReloadIgnoreCache into one method with a property - makes consistent with the rest of API amaitland 2015-05-28 20:23:13 +10:00
  • 67d57c96a0 Move Stop/Back/Forward methods into WebBrowserExtensions amaitland 2015-05-28 20:20:32 +10:00
  • c0e79c20b0 Add GetBrowser methods to get direct access to the underlying CefBrowser instance amaitland 2015-05-28 20:06:16 +10:00
  • 71f783ddda Remove extra /// from xml comment amaitland 2015-05-28 20:02:03 +10:00
  • 507fbf0704 Add null check for LoadHtml - add better error message to say that it's only usable with DefaultResourceHandlerFactory amaitland 2015-05-28 19:55:45 +10:00
  • 3908a6212a Rather than fail silently throw and exception if the frame is null, this is a drastic change in behaviour. Though it provides a much more transparent behaviour though. Just need to make sure it's easy to check IsBrowserInitialized in all instances to see if it's safe to call methods (should only be called when IsBrowserInitialized is true, only problem with this is in WPF where it's a dependency property) amaitland 2015-05-28 19:44:13 +10:00
  • 0c2cd86e1b Make IFrame and IBrowser implement IDisposable (The underlying implementation already does, just not the interface) amaitland 2015-05-28 19:36:25 +10:00
  • 2983bf7383 Change ContentLength to be a long (int64) Set ContentLength in ResourceHandler when using a MemoryStream amaitland 2015-05-27 18:01:17 +10:00
  • af8e53a6a1 Remove redundant method prefix (cpp) amaitland 2015-05-27 17:45:55 +10:00
  • 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 amaitland 2015-05-27 17:44:03 +10:00
  • 187b255730 Change ResourceHandler to use explicit IResourceHandler interface implementation Add some extra spacing and fix up a comment amaitland 2015-05-27 17:17:29 +10:00
  • 37384a9461 Rename SchemeHandlerResponse to ResourceHandlerResponse amaitland 2015-05-27 17:14:42 +10:00
  • 9c7bf2e930 Change ResourceHandler to IResourceHandler Add StatusText amaitland 2015-05-27 17:11:52 +10:00
  • 8579a6a210 Remove RegisterHandler/UnRegisterHandler methods from the IResourceHandlerFactory interface amaitland 2015-05-27 16:21:48 +10:00
  • d37dd2d2ef Move LoadHtml into an extension method amaitland 2015-05-27 16:18:28 +10:00
  • f6b5787c1f Merge pull request #1044 from cuddlyogre/cursor-type Alex Maitland 2015-05-25 10:39:20 +10:00
  • d0e7042dbc Changed enum names to be more in line with .Net naming schemes. Matthew Morrison 2015-05-24 09:24:20 -05:00
  • 890b80bc0f Fixed some issues with formatting. Matthew Morrison 2015-05-23 17:46:06 -05:00
  • f7f13f0359 Add cursor type to SetCursor call. Duplicated CursorType enum from CEF source. Matthew Morrison 2015-05-22 19:40:40 -05:00
  • b4b0cf1d7e Move the IWinFormsWebBrowser interface into the WinForms project amaitland 2015-05-22 11:06:16 +10:00
  • a6f5131e8a Add Print wrapper amaitland 2015-05-21 20:40:13 +10:00
  • 3037c84497 Add StartDownload wrapper amaitland 2015-05-21 20:39:04 +10:00
  • 7ab2d61b04 Add CloseBrowser CefBrowserHost wrapper to IBrowser amaitland 2015-05-21 20:34:55 +10:00
  • 9defed9a42 Add disclaimer Remove unused references amaitland 2015-05-21 20:28:22 +10:00
  • 1ce10ea53f Move LoadHtml (LoadString) to extension amaitland 2015-05-21 20:25:02 +10:00
  • 1a1fcb9f2e Make the next set of frame related methods into extension methods amaitland 2015-05-21 19:11:58 +10:00
  • 024a80396e Move the first set of frame related method (Cut/Copy/Paste, etc) into a set of Extension methods amaitland 2015-05-21 18:49:58 +10:00
  • 29be100b57 Add new Resharper settings (upgraded to new version) amaitland 2015-05-21 18:41:34 +10:00
  • 00b1aee59f Reorder a few more things in the WinForms code amaitland 2015-05-21 18:41:01 +10:00
  • 37c64afa51 WinForms move EventHandler decelerations up higher in source file amaitland 2015-05-21 18:39:35 +10:00
  • 4763020b9d Add GetMainFrame and GetFocusedFrame to IWebBrowser amaitland 2015-05-21 18:38:33 +10:00
  • 831e2e6ffd Switch the nullptr checks around...pedantic I know :) amaitland 2015-05-21 18:31:35 +10:00
  • 9fb921af80 For GetFocusedFrame and GetMainFrame shouldn't need to check the result, their should always be a frame if the CefBrowser instance != null amaitland 2015-05-21 18:29:48 +10:00
  • b6df5c48c1 Change GetFrame methods to return IFrame reference amaitland 2015-05-21 18:21:08 +10:00
  • 46808752da Copy WebBrowserExtensions to InternalWebBrowserExtensions Create empty WebBrowserExtensions to house common methods amaitland 2015-05-21 18:16:57 +10:00
  • 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) amaitland 2015-05-21 14:25:32 +10:00
  • 22146e33ca Untabify amaitland 2015-05-21 12:11:04 +10:00
  • 8a53dfe54d Pass the IBrowserAdapter (ManagedCefBrowserAdapter) reference directly into the ClientAdapter instance amaitland 2015-05-21 12:06:43 +10:00
  • 2f40861dca Use default params on the IFrame interface to provide the ExecuteJavaScriptAsync overload amaitland 2015-05-21 11:40:38 +10:00
  • ee7c8efdd9 A few more resharper inspired cleanups amaitland 2015-05-21 11:36:37 +10:00
  • 996661de60 Resharper inspired cleanup of BrowserForm - mostly remove redundant type arguments from anon delegates amaitland 2015-05-21 11:34:42 +10:00
  • 824fd21950 Resharper - disable localization warnings for CefSharp.WinForms.Example amaitland 2015-05-21 11:33:41 +10:00
  • cedc3196fa Remove WindowsBase reference from OffScreen - not required (Uses Gdi Bitmap) amaitland 2015-05-21 11:06:16 +10:00
  • 4ea3bfca37 Start marking Cut/Copy/Paste methods Obsolete - will soon be accessible at the frame level. amaitland 2015-05-21 11:05:02 +10:00
  • fcde9660d3 Add System.ServiceModel to OffScreen - needed to use the new extension methods amaitland 2015-05-21 11:04:28 +10:00
  • e43befe9fa Start to extract some duplicate code out into extension methods - saves repeating the same block three times amaitland 2015-05-21 10:57:18 +10:00
  • 7541ca2d3b Merge pull request #1030 from rassilon/CefSharpBrowserWrapper Bill Tutt 2015-05-20 23:28:08 -04:00
  • c08b1ff38e Fix some review comments, and add frameloadstart/end/error related methods to IPopupHandler. Bill Tutt 2015-05-20 22:59:43 -04:00
  • 80d6ae12e5 Merge remote-tracking branch 'origin/cef/2272' into CefSharpBrowserWrapper Bill Tutt 2015-05-20 21:54:31 -04:00
  • b642e15bc6 Revert "Auto-close blank popups when download is complete" amaitland 2015-05-21 10:48:17 +10:00
  • 3b7b006f08 Merge remote-tracking branch 'remotes/upstream/master' into cef/2272 amaitland 2015-05-21 10:47:00 +10:00
  • 16616d924f Add missing DECL (__declspec(dllexport)) to OnPopupSize amaitland 2015-05-21 09:05:07 +10:00
  • 29f8021368 Merge pull request #1033 from jamespearce2006/master Alex Maitland 2015-05-20 19:00:02 +10:00
  • e8d9042fbb Update build.ps1 to latest cef.redist version (should have been updated when the main project packages were updated). amaitland 2015-05-20 18:16:53 +10:00
  • 8bcab86694 Fix #1035 OffScreen check BackBufferHandle == IntPtr.Zero before attempting to create a new bitmap amaitland 2015-05-20 18:10:44 +10:00
  • 294b429c48 Remove unnecessary + from event handler assignment amaitland 2015-05-20 18:03:08 +10:00
  • 5f3d4abf69 Fix json test error (<= should have just been <) Change a few == checks to === to make visual studio happy (just comparing strings, so no fancy type conversion necessary) amaitland 2015-05-19 19:48:18 +10:00
  • 0de8b3513b Merge remote-tracking branch 'remotes/upstream/master' into cef/2272 amaitland 2015-05-19 19:32:12 +10:00
  • bd4c7c5406 Change default build target to vs2012, remove the old Nupkg target, also have every build generate packages amaitland 2015-05-19 19:15:44 +10:00
  • bbd366227d Remove added line jamespearce2006 2015-05-19 08:52:28 +01:00
  • ba0c0c1f19 force appveyor rebuild jamespearce2006 2015-05-18 20:12:34 +01:00
  • 7ea66af1cc Auto-close blank popups when download is complete jamespearce2006 2015-05-18 19:12:46 +01:00
  • bcaf67fa59 Helps to add IPopupHandler file. Bill Tutt 2015-05-17 23:26:24 -04:00
  • 79a66d8bc1 Add PopupHandler properties to the controls. Bill Tutt 2015-05-17 17:57:14 -04:00
  • adb5ae0d77 More work on wrapping CefBrowser/CefFrame. Bill Tutt 2015-05-17 17:41:44 -04:00
  • d4b4e5fd35 Manually apply merge changes from master to ManagedCefBrowserAdapter as it's now split into .h and .cpp, so can't auto merge changes amaitland 2015-05-13 09:32:50 +10:00
  • 0413c0bc6c Merge remote-tracking branch 'remotes/upstream/master' into cef/2272 amaitland 2015-05-13 09:29:07 +10:00
  • 59ded0957d Add disable-plugins-discovery example amaitland 2015-05-13 09:25:55 +10:00
  • d90b30dbae Specify cache path for CefExample, so data is persisted (outputs to a cache folder in the current app directory path). Add debug-plugin-loading command line argument example amaitland 2015-05-13 09:20:15 +10:00
  • e0730250fb Directly access BrowserSettings as they're internal (extra property and wrapper seems redundant) amaitland 2015-05-12 14:35:05 +10:00
  • 6805c188e7 Uppercase S in OffScreen - match caseing of CefSharp.OffScreen project name Use property syntax for brevity (can use short hand in ref classes) amaitland 2015-05-12 11:02:44 +10:00
  • 3b27034b35 Simplify OffscreenTransparentBackground nullable bool - use GetValueOrDefault amaitland 2015-05-12 11:01:40 +10:00
  • cb71f46662 Merge branch 'master' of https://github.com/jamespearce2006/CefSharp amaitland 2015-05-12 10:58:58 +10:00
  • 118cae0c24 Use BrowserSettings instead of separate property jamespearce2006 2015-05-11 09:07:26 +01:00
  • f2da822963 Use MSBuild version based on VS version - was previously set at version 4.0, now uses 12.0 when building for VS2013 amaitland 2015-05-11 09:06:24 +10:00
  • 03895c1f63 Merge pull request #1018 from hvdijk/detect-winxp Bill Tutt 2015-05-08 17:04:29 -04:00
  • 885f80940d Allow disabled transparency /w OSR jamespearce2006 2015-05-08 20:36:21 +01:00
  • 3043b4192b Automatically detect Windows XP. Harald van Dijk 2015-05-08 20:09:46 +02:00
  • b1b098b676 cleanup code jamespearce2006 2015-05-08 19:02:09 +01:00
  • 77c058f5e3 Honour control Background property jamespearce2006 2015-05-08 18:58:47 +01:00
  • e20fad9081 Simplify XAML example jamespearce2006 2015-05-08 11:14:29 +01:00
  • 69c8c8264c Cleanup xaml jamespearce2006 2015-05-08 10:19:55 +01:00
  • 679e5e70c7 Undate embedded jQuery to v1.11.3 amaitland 2015-05-08 11:40:17 +10:00
  • 2f30c5b710 Merge pull request #1012 from amaitland/fix/cefcookie Alex Maitland 2015-05-08 11:23:09 +10:00