Commit Graph

397 Commits

Author SHA1 Message Date
Per Lundberg bcddf4cdd5 1.25.8 coming up. 2015-02-12 07:31:54 +02:00
Per Lundberg 15085de1da It's usually best to commit code that compiles... 2015-02-10 16:04:37 +02:00
Per Lundberg 3fe27c8196 Exposing this might be nice of course. :) 2015-02-10 16:03:21 +02:00
Per Lundberg f028a98796 Added a LoadStarted event handler to both the WPF and WinForms control.
Also added an extra flag in the LoadCompletedEventArgs that indicates whether the load event relates to the main frame or not.
2015-02-10 15:43:29 +02:00
Per Lundberg 3ef5da98d0 Merge pull request #247 from mmv/retjsreturnvals
convertToCef: ValueTypes are not arrays [of undefined]
2014-02-07 15:19:33 +02:00
Miguel Ventura b1946703b0 convertToCef: ValueTypes are not arrays [of undefined] 2014-02-06 20:59:49 +00:00
Miguel Ventura 7e44831269 Don't break when calling aliased methods of CRL object 2014-02-06 20:38:32 +00:00
Per Lundberg 845cb258b9 I managed to mess things up, so here comes 1.25.7... 2014-02-05 10:52:42 +02:00
Per Lundberg 9f07ad07a2 1.25.6 coming up in a few moments. 2014-02-05 10:06:30 +02:00
Per Lundberg 7341cf5e4c Added a fix for #219, or so we hope. :) The thing is that we need to implement GetViewRect() and GetScreenRect() to force the popups to always be layouted inside the view; otherwise, we run into problems when the window is e.g. located close to the bottom screen border or similar. 2013-12-13 09:15:30 +02:00
Per Lundberg f59f02f558 Merge pull request #184 from provegard/response-options
Additional SchemeHandlerResponse options
2013-10-29 13:40:01 -07:00
rastating b107d72c43 Fixed process not exiting in Windows XP
Added a handler assignment on the first call to CefSharp::Initialize
which will ensure CEF is shutdown properly should the calling program
not manually call the shutdown method before the process exits.

This bug only seems to affect Windows XP, however I have tested on both
Windows XP and Windows 7 and with this change neither have any ghost
processes left over after the program calling CefSharp exits.

This commit fixes #80
2013-10-23 16:21:21 +01:00
Per Rovegard 82d46b82e9 Added SchemeHandlerResponse.CloseStream, to have SchemeHandlerWrapper close the response stream once it has read all data. 2013-10-13 15:18:31 +02:00
Per Rovegard 66f6bd8f43 SchemeHandlerWrapper bug fix: Must return false from ReadResponse when response is complete. 2013-10-13 15:18:31 +02:00
Per Rovegard 791806c462 Added SchemeHandlerResponse.ContentLength. 2013-10-13 15:18:30 +02:00
Per Rovegard 285a52fa6f Added SchemeHandlerResponse.RedirectUrl. 2013-10-13 15:18:20 +02:00
Per Rovegard 39373ffa72 Added SchemeHandlerResponse.StatusCode. 2013-10-13 14:50:07 +02:00
Per Lundberg ec69a32d78 1.25.5 coming up. 2013-10-02 10:25:07 +03:00
Per Lundberg c1e2dc3274 Added standard file header. 2013-10-02 09:28:12 +03:00
Per Lundberg 85121b2740 1.25.4 coming up. 2013-09-04 17:35:39 +03:00
Per Lundberg 517c11f2b9 We must use a CefRefPtr<> here also, otherwise the SchemeHandlerWrapper instance will have been deallocated sometimes, which is a Very Bad Idea<™> if we still expect it to be able to be used... 2013-09-04 16:46:03 +03:00
Per Lundberg d8b68dd871 Got rid of commented out code which shouldn't have been committed in the first place. 2013-09-04 16:46:03 +03:00
Per Lundberg 76f671f221 Renamed an argument and added more XML documentation about all of them. 2013-09-04 16:46:03 +03:00
Per Lundberg ac7f3dd49a Extracted ISchemeHandler into a file of its own, according to the "one file per class/type" pattern which is generally preferable. 2013-09-04 16:46:03 +03:00
Per Lundberg 10bc4b2596 Added null check so we don't throw exceptions if no headers are provided. 2013-09-04 16:46:03 +03:00
Per Lundberg 0e037c5530 Refactored the custom scheme handling to support asynchronous handlers + make it possible to override the HTTP response headers. 2013-09-04 16:46:03 +03:00
Per Lundberg 8bd5db76e8 Closes #150. Thanks to @alexwarren for pointing this out. 2013-08-20 21:46:49 +03:00
Per Lundberg 1e63a7b5fa 1.25.3 coming up. 2013-08-14 15:02:59 +03:00
David A. Sjøen 559e654689 Added signing to CefSharp.WinForms and CefSharp.Wpf 2013-08-09 09:50:29 +02:00
Per Lundberg 81f659eb1c Merge pull request #11 from perlun/emonk72-master
Merged in stuff done by @EMonk72 - thanks m8.
2013-07-12 14:19:39 -07:00
Per Lundberg ea609795c8 Started doing some light refactorings here to make the code a bit more maintainable: Smaller, more concise methods. The FindBestMethod() is up next. 2013-07-13 00:16:47 +03:00
Per Lundberg 3ccc5444d7 Rearranged the class so that Bind() and Execute() is placed earlier in the file, since this is the most public part of the class. 2013-07-12 23:31:46 +03:00
Per Lundberg 86155517a9 Minor cleanups. I like the Uncle Bob style; try to make the code so clear that hardly any comments are really needful… More drastic changes coming up in a little while. 2013-07-12 22:44:47 +03:00
Corey 5e9576343f Fix HashSet support on VS2012
Added project reference to `System.Core` assembly.
2013-07-10 10:25:01 +10:00
Corey 685685bc35 Reverting to Dictionary for method names due to problems with VS2012 configuration. 2013-07-08 11:01:14 +10:00
Per Lundberg eac7dbebf4 Merged branch 'JsDialogHandler' of https://github.com/Icenium/CefSharp into feature/JsDialogHandler, with minor changes to work on top of the current HEAD (vs2012, .vcxproj file instead of .vcproj etc). 2013-07-05 22:42:06 +03:00
Corey ca17ff1d97 Missed code change in prior commit + update
`methodNames->Keys` should be simply `methodNames`.
Updated to fix some code issues identified by perlun.
2013-07-03 10:10:47 +10:00
Corey 88b8dcd066 Binding Updates: More flexible argument matching
Reimplemented BindingHandler::FindBestMethod to support a range of options including C#-style param arrays and optional parameters with default values.
Changed method name scanning to use HashSet instead of Dictionary to simplify duplicate name handling.
2013-07-02 13:24:03 +10:00
Per Lundberg de22dc002a Let's do some refactorings while we're at it. One file per type is usually a pretty good pattern IMHO. 2013-07-01 22:54:14 +03:00
Per Lundberg 980697406d Fixed up indentation and bracing (to use a more consistent coding style). 2013-07-01 22:50:38 +03:00
Per Lundberg 02faffd042 Merge https://github.com/kpko/CefSharp into feature/body_of_request_in_custom_scheme_handler 2013-07-01 22:44:50 +03:00
Per Lundberg 18e5f45716 Updated comment. 2013-07-01 22:26:33 +03:00
Per Lundberg 8fbdef4936 Whitespace fixes (was some incorrect tabs). Also removed a comment which isn't really needed; the code is clear enough in itself. 2013-07-01 22:18:17 +03:00
Corey 36f5a58c8f Add support for parameters of type 'Object' accepting any type of value.
Fix object binding to allow multiple methods with same name.
2013-07-01 16:57:55 +10:00
Per Lundberg a6db06d0ef 1.25.2 coming up. 2013-06-17 07:11:22 +02:00
Per Lundberg 733f81bb39 Added case mangling for properties also, so we are internally consistent. 2013-06-05 14:28:19 +03:00
Per Lundberg cbb44b99b4 Fixed an obvious misspelling. 2013-06-05 14:28:01 +03:00
Per Lundberg f3b6c5ed26 Implemented method-name mapping so that MyMethod() in CLR/.NET becomes myMethod() in Javascript, which is how you would expect it to work. 2013-06-05 14:15:18 +03:00
Per Lundberg 56e074fa2d Merge branch 'vs2012-with_properties' into vs2012-javascript-method-casing 2013-06-05 12:24:25 +03:00
Per Lundberg 6e7914db4d Need to refer to this using a more fully qualified path. 2013-06-05 12:24:03 +03:00