Per Lundberg
d8413f0d76
Updated Cef.h with all the contents of the previous CefSharp.h, but updated to work with CEF3/Chromium 27. Also made the Cef.h be automatically included from Stdafx.h.
2013-07-18 21:12:16 +03:00
Per Lundberg
fa6007f763
We don't need this one any more; all of the implementation is in the .h(eader) file anyway.
2013-07-18 21:11:14 +03:00
Per Lundberg
569d2630cb
Let's make CefSharp::Internals globally available. This is generally considered bad practice in the C++ camp, but I think it's perfectly acceptable in this use case.
2013-07-18 15:50:23 +03:00
Per Lundberg
33d85cfcfa
Updates to work with CEF3.
2013-07-18 15:49:42 +03:00
Per Lundberg
4a106bb739
Made it more clear that we will hardly ever support a single-threaded message loop. :-)
2013-07-18 00:44:20 +03:00
Per Lundberg
2f297321ef
Added copyright headers.
2013-07-18 00:44:00 +03:00
Per Lundberg
f9b6c5a431
Breaking changes: We need to update our method signatures since not everything needed to support this is any longer (apparently) available in CEF3.
2013-07-18 00:43:03 +03:00
Per Lundberg
a07fe1454b
Updated to match the current naming etc in CEF3.
2013-07-18 00:42:04 +03:00
Per Lundberg
c8d9695813
Breaking changes FTW… It doesn't feel so logical to let the CEF stuff live in the CefSharp.h header, so let's use a better name. Also, more importantly: we should truly abandon the static class approach for this, especially now that we're moving over to CEF3. Separate processes likely means one process *per WebView instance* (which is how Google Chrome does it), so having one single CEF.Initialize() method to rule them all simply won't cut it. So… let's go with an instantiable class approach for now. I realize that there's quite a lot of stuff left out for the time being (like cookie visitation etc); we'll have to add it as we go along.
2013-07-18 00:40:39 +03:00
Per Lundberg
0bf27208f0
Added copyright header to a bunch of files.
2013-07-17 23:57:31 +03:00
Per Lundberg
c8fb2c1da1
Wrong version. :)
2013-07-17 22:48:45 +03:00
Per Lundberg
4209d8eb7d
I think we can start adding a banner to all our source code files; this should be reasonable enough (shamelessly plagiarized from the CEF cefclient project :)
2013-07-17 22:15:43 +03:00
Per Lundberg
0c2895520b
"StringUtils" makes more sense than "StringUtil", since the class is actually a collection of utilit*ies* rather than a single utility, arguably.
2013-07-17 22:05:27 +03:00
Per Lundberg
bdedfa7bbb
We can actually drop the "String" suffix here, since none of the other methods have it and it can reasonably easily be deduced now by the class name prefix, which will be used every time the method is being called anyway.
2013-07-17 21:19:16 +03:00
Per Lundberg
981eb37c20
Updated to be compilable with the modifications to the toClr() etc methods.
2013-07-17 21:17:13 +03:00
Per Lundberg
b90322b609
StringUtil.h now lives in the Internals folder.
2013-07-17 21:16:44 +03:00
Per Lundberg
8280a21790
Let's rename this after all. "AssignFromString" isn't really a descriptive enough name.
2013-07-17 21:15:38 +03:00
Per Lundberg
13c876327c
Moved the StringUtil methods into the Internals folder & namespace (since that's where they really belong), and moved them into a class proper + fixed their naming to be true CamelCase, not camelCase. This is C++, not Java. :P
2013-07-17 21:13:52 +03:00
Per Lundberg
8221e97d8c
Converted from tabs to spaces.
2013-07-17 20:06:17 +03:00
Per Lundberg
c65ce543b4
Removed AddPluginPath() and AutoDetectProxySettings, since they're not available in CEF3.
2013-07-17 20:01:11 +03:00
Per Lundberg
425f708eff
Fixed version number and copyright (shouldn't refer to a single person, but rather the CefSharp project as a legal "virtual entity" :)
2013-07-17 13:10:48 +03:00
Per Lundberg
eb8ccfa575
"In the beginning God created the heaven and the earth. And the earth was without form, and void" (Gen 1:1-2). Let's try to do something similar. It's probably easiest if we just exclude all of the existing CefSharp files for the time being (since the CEF3 API is completely incompatible w/ CEF1 which our code presumes it to be), and then add the missing parts one by one.
2013-07-17 13:10:00 +03:00
Per Lundberg
9dfb1897cd
Fixed typo...
2013-07-17 12:56:03 +03: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
Per Lundberg
43ab9c102c
Need to add the ProjectDir to the list of includes since we are now using subdirectories.
2013-06-05 12:21:18 +03:00
Per Lundberg
80d07df062
The PropertyAccessor should also be in the subdir.
2013-06-05 12:20:51 +03:00
Per Lundberg
3bb0139d88
Merge branch 'vs2012-with_properties' into vs2012-javascript-method-casing
2013-06-05 12:14:36 +03:00
Per Lundberg
33c82d6640
One more thing that seems to have gone MIA during the rebase. These should be in a separate subfolder to try and structure things more clearly.
2013-06-05 12:14:09 +03:00
Per Lundberg
2ca97463ba
WIP commit since we are about to switch branches back and forth.
2013-06-05 12:10:25 +03:00
Per Lundberg
f79ee06bd9
Renamed the wrappedObject to javascriptWrapper, since this is actually NOT the wrapped object but rather a wrapper around it. :)
2013-06-05 12:06:07 +03:00