Commit Graph

66 Commits

Author SHA1 Message Date
amaitland 2b4840fc90 Add CssAnimation example for testing purposes 2017-02-01 09:37:08 +10:00
Alex Maitland d4feffb554 Feature - Add IBinder (#1749)
* Add basic ModelBinding which was imported from NancyFx framework - more can be stripped out that's unused

* Add IBinder as a param when registering an object for binding
Binding is disabled by default

* Add license and remove unused using statements

* Make bind method virtual to allow for overriding
Make methods protected

* Add very basic collection support - only primitive types supported for now.
Remove unused exceptions

* Support binding a list of sub objects

* Add null check for null params

* Add BindingOptions class - remove binder and CamelCaseJavascriptNames properties - allow for additional options in the future
Breaking change.

* Add support for List<object> binding type
2016-07-20 13:38:24 +10:00
amaitland 63ef6beb5f Refactor OnContextInitialized out as part of IBrowserProcessHandler interface
Add OnScheduleMessagePumpWork for use with integrating into existing message loop - probably better for WinForms integration, will look at providing an example later
2016-07-20 13:08:47 +10:00
amaitland c8f6017fa5 Change TestCallbackFromObject to use new DynamicDictionary helper class 2016-07-06 11:06:00 +10:00
amaitland 54f7fccdaa Upgrade to .Net 4.5.2
Resolve #1572
2016-05-10 20:28:21 +10:00
amaitland 4c4eb210f4 Add WPF Draggable Regions Test
Remove old generic DragHandler - maybe someone will write a WinForms specific one?
Remove some unused references from CefSharp.csproj
2016-04-12 16:57:47 +10:00
amaitland c3f3331148 Add InMemorySchemeAndResourceHandlerFactory to demo how easy it is to implement a IResourceHandlerFactory/ISchemeHandlerFactory
Both implementations are included in the single file so it's easy to compare the two, the implementation is almost identical for the method body.
2016-03-29 13:04:06 +10:00
amaitland 679fad6a89 Add AppendResponseFilter filter implementation
In the examples open custom://cefsharp/assets/js/application.js to see some data appended to a javascript file
2016-02-11 16:33:52 +10:00
amaitland ede3370cfd Roughly port FindReplaceResponseFilter - compiles, not yet functional
https://bitbucket.org/chromiumembedded/cef/src/456ea5a19800a4cc05d0ce7f0c38111a7e73e18b/tests/cefclient/browser/response_filter_test.cc?fileviewer=file-view-default#response_filter_test.cc-31
2016-02-11 11:18:00 +10:00
amaitland 940a55a521 Rename to PassThruResponseFilter
Add example html file from https://bitbucket.org/chromiumembedded/cef/raw/456ea5a19800a4cc05d0ce7f0c38111a7e73e18b/tests/cefclient/resources/response_filter.html
2016-02-11 10:47:15 +10:00
amaitland 59edbf9ca5 Move filter into it's own folder 2016-02-11 10:44:29 +10:00
amaitland 8d00a3dd26 Add a rough implementation of IRequestHandler.GetResourceResponseFilter
Looks like the basic pass through implementation is working - have yet to append any data
2016-02-11 10:40:11 +10:00
amaitland 072ca4cc97 Add IResourceHandlerFactory and IResourceHandler example - downloads a specific swf file using the .Net WebRequest class and returns the response 2016-01-18 18:32:44 +10:00
Rich McNeary a168cadbad Add javascript syntax highlighting. Include demo page. 2015-12-28 14:28:15 -05:00
Rich McNeary 5691669df3 Initial script examples. 2015-12-14 14:54:04 -05:00
Rich McNeary 7d4e074ef4 Move OnFocusedNodeChanged into new IRenderProcessMessageHandler. 2015-12-08 09:32:54 -05:00
amaitland c00eeb82f5 Remove some stray AnyCPU targets from the csprojcts 2015-11-27 11:35:41 +10:00
amaitland 3f15b53ab7 Resolves #1407
More the DeserializeV8Object call to within the context->Enter so a V8Object can be created
Change callback to use a struct as it's return type to demo the solution to this bug
Add missing list->SetDictionary call in V8Serialization.cpp
2015-11-18 09:17:16 +10:00
illfang 441a2872c5 added multi binding test for testing bindings with multiple contexts and dynamic context creation / destruction
1 browser, multiple changing contexts
also added a link to the popuptest
2015-10-09 15:23:50 +09:00
illfang a9f5ab4c97 merge with master 2015-09-16 18:05:13 +09:00
illfang 94e352908a added test for WebGL content which is loaded in a cefsharp/CefSharp/issues/1226 2015-09-16 17:59:20 +09:00
illfang 81c545cf39 added test html logging exception log messages: ExceptionTest.html
custom://cefsharp/ExceptionTest.html
2015-09-08 11:20:31 +09:00
amaitland 5a09a5ef35 Merge branch 'cefextensions' of https://github.com/arsher/CefSharp 2015-08-03 12:12:51 +10:00
David Serfozo 756bd44bbd added extension example 2015-08-01 20:26:03 +02:00
cefsharp-ms f74b245e9b added examples for async bindings 2015-07-31 17:17:48 +02:00
amaitland 88355c3da9 Update WPF example to use Mvvm Light (replace our basic MVVM implementation)
Makes sense to use an established framework for this sort of thing.
2015-04-30 12:21:38 +10:00
amaitland 5c43063670 Take PR #896 and add code to CefExample project - proxy lookup 2015-04-14 13:29:47 +10:00
amaitland 973da2813a Upgrade CefSharp.Example.csproj to .net 4.5 2015-01-16 17:39:19 +10:00
amaitland fce5f06362 Remove unused resultString param, CefJSDialogCallback->Continue is used for multiple callbacks, in this case only the success param is required.
Change isReload to a normal param (was an out param), so the user can be notified correctly
Add some rough documentation to IJsDialogHandlerAdd some additional comments to JsDialogHandler for demonstrating code to users

Add JsDialogHandler that implements the default behavior
Assign in the WinForms example

Fix typo in IRequestHandler
2015-01-11 14:05:10 +10:00
daveaton 83602ace7d One small issue how to handle
Maybe I am over thinking it ... It probably should be handled like this.

http://www.eatoncode.com/shareit/2014-11-28_2031.png

but I still got an issue.
2014-12-08 20:55:21 +10:00
amaitland 3ce9990807 Merge remote-tracking branch 'remotes/upstream/master' into JsBinding_WIP 2014-10-20 14:16:06 +10:00
jankurianski f72ca6a8e7 All projects now target .NET 4 Client Profile. 2014-10-07 18:38:43 +11:00
amaitland f40c1d2f9f Fix bug where JavascriptName wasn't being set for Complex Property types
Added example called SubBoundObject can be tested from the WPF example using code like "bound.subObject.simpleProperty"
2014-08-29 16:50:16 +10:00
amaitland fff9422e52 Rename ExamplePresenter to RequestHandler (Alex had also removed old commented out code, but I am moving that part of the change to a separate commit to help git/SourceTree better understand that the file has been renamed, so we preserve history etc)
Conflicts:
	CefSharp.Example/ExamplePresenter.cs
2014-06-12 01:53:46 +03:00
amaitland ff03b13a33 Create CefExample class to house common Init() and DefaultUrl
Conflicts:
	CefSharp.WinForms.Example/BrowserForm.cs
2014-06-12 01:49:37 +03:00
amaitland 7a5de124fe Add TempFileDialogHandler for easy testing of DialogHandler - generates a random filename 2014-06-02 16:36:14 +10:00
JanEggers 52bfa60c23 remaining stuff that i desired to put in on changeset 2014-03-09 14:11:37 +01:00
Per Lundberg da81a98443 Moved the PropertyChangedExtensionMethods class, since it will be used from the WinForms example also. 2013-11-13 22:56:07 +02:00
Per Lundberg e140f3b6a2 #210 The IExampleView concept is b0rken and can be dismissed entirely. There’s no real point in trying to write classes which work in both WPF and WinForms, since it degrades the platforms too much (especially WPF). We’re better of implementing these in ways which are native for WPF and Windows Forms respectively. 2013-11-13 18:02:13 +02:00
Per Lundberg b07deda22e Started some of the fun work on the "home" page, based heavily on Twitter Bootstrap's "general usage" page (which is liberally licenses, to our benefit). Still a lot of work to be done, and the unfinished parts are obviously hard to document, but it's a good start. I think we could also publish this up using GitHub Pages eventually. 2013-10-27 10:53:17 +02:00
Per Lundberg 19f86dfca8 Removed the Debug x64 target, since it shouldn't have been added in the first place... 2013-10-23 22:43:47 +03:00
Per Lundberg 362c6fd3e3 Harmonized the targets so that all projects compile for either x64 or x86. No "AnyCPU" projects for the time being. 2013-10-23 22:38:03 +03:00
Per Lundberg e5f951ae4a Changed to support x64. (and for the time being, unfortunately *only* x64…) A proper Win32 target should also be added asap. 2013-09-23 21:40:46 +02:00
Per Lundberg c75d93c65c Started working on a nice little "home page", which we will include, using Twitter Bootstrap. The idea is to add links to the various tests we provide + to the CefSharp web page of course, in line with the "build UIs with HTML" paradigm. Relies on a bug fix for #150 which isn't really implemented yet though. :) 2013-09-18 22:46:27 +03:00
Per Lundberg 7d2854d9c3 Renamed the scheme handler classes to be a slightly better example of class naming... 2013-09-18 22:05:30 +03:00
Per Lundberg db73c33b93 WinForms references, which should definitely not be here. 2013-08-03 23:32:04 +03:00
Per Lundberg 6072ebb997 Updated all C# projects to target framework version 4.0. We could actually target 3.5 even though we're using VS2012, but that makes the build process require VS2008 SP1 (according to http://stackoverflow.com/questions/2921702/change-c-cli-project-to-another-framework-than-4-0-with-vs2010) so it might not make so much sense anyway. 2013-06-05 11:23:06 +03:00
Per Lundberg 6e02126274 Converted the project files also from VS2008/vcproj format to VS2012/vcxproj format. 2013-06-05 11:23:05 +03:00
Marcin Wisnicki f1eb60fd44 Undo VS2010/VS2012 project split.
Remove redundant VS2010 solution. VS2012 sln works fine in VS2010sp1.
2013-05-28 12:11:05 +02:00
Per Lundberg 84cc85018a Unfortunate it is, but… We have to make separate .csproj files also, since they refer to the .vcxproj files in a way that makes it hard to use the same .csproj files from both the VS2010 and the VS2012 solutions. 2013-05-17 21:04:06 +03:00