Commit Graph

1286 Commits

Author SHA1 Message Date
David Serfozo d6661df344 removed unnecessary code from previous js callback implementation 2015-07-07 19:30:50 +02:00
David Serfozo 7c9a449158 added new IJavascriptCallback implementation into the pipeline 2015-07-07 19:30:43 +02:00
amaitland 3ab612a44a Rename Oninitialized to OnAfterBrowserCreated (more closely matches the underlying CEF API) 2015-07-07 16:48:45 +10:00
amaitland 23455de261 Add targetFrameName param to OnBeforePopup 2015-07-07 12:28:29 +10:00
amaitland 0547c45f41 Readd using System.Collections.Generic; as needed by quality comparer
Remove implicit http scheme if none provided
2015-07-07 10:42:39 +10:00
amaitland 5bba0b15fa Merge branch 'master' of https://github.com/lamerbug/CefSharp 2015-07-07 10:39:27 +10:00
Alex Maitland ff6d53ecff Merge pull request #1102 from amaitland/cleanup/browsersettings
BrowserSettings map to Enabled/Disabled/Default Enum
2015-07-07 10:37:07 +10:00
amaitland 0188329d10 Untabify 2015-07-07 10:26:45 +10:00
lamerbug 6f08123174 Update DefaultResourceHandlerFactory.cs
- using ConcurrentDictionary
- create canonical URL from any string
- update value if key exists
- return bool when register and unregister
2015-07-06 19:47:47 +07:00
amaitland df29944016 Implement SendMouseMoveEvent in IBrowserHost
Can now be used by offscreen
2015-07-06 12:47:29 +10:00
amaitland 98d186c33c Move OnMouseButton into IBrowserHost (rename to SendMouseClickEvent) 2015-07-06 12:39:33 +10:00
amaitland fbe8ccd61c Move Invalidate method from ManagedCefBrowserAdapter into CefBrowserHostWrapper - now can be used in OffScreen 2015-07-06 12:25:09 +10:00
amaitland 8eff8d011e Add CefState enum
Change BrowserSettings to use CefState instead of bool?
Remove the Allowed/Disabled prefix so names now more closely match those of CEF
Should be easier to understand as there's no double negatives now
2015-07-06 11:30:53 +10:00
amaitland df94d54a61 Remove duplicate GetMainFrame and GetFocusedFrame methods - turned them into extensions 2015-07-01 19:49:27 +10:00
amaitland f239503bb3 Move SendMouseWheelEvent to IBrowserHost 2015-07-01 19:38:14 +10:00
amaitland 091339de25 OffScreen control - update to throw exception if Browser has not been initialized
It's quite common for users to attempt to execute a browser function before it's initialized and for it to silently fail if it's not been initialized
2015-07-01 19:24:49 +10:00
amaitland f499465f1d Add CefWindowInfoWrapper 2015-07-01 19:04:28 +10:00
amaitland ddd7ec1687 Cleanup usings 2015-06-29 14:14:12 +10:00
amaitland 2129c1907e Remove IBrowserAdapter from Frame and Browser wrappers - now directly cast CefClient to ClientAdapter so can execute js 2015-06-29 14:03:10 +10:00
amaitland 819dfd54f9 Move WcfEnabled option into CefSharpSettings class
Reduce code duplication - move EvaluateScriptAsync in WebBrowserExtensions
2015-06-29 13:20:47 +10:00
amaitland d188382d20 Move PendingTaskRepository into matching namespace (resharper cleanup) - there is no messaging folder 2015-06-29 11:34:43 +10:00
amaitland b9e3100994 Simplify PendingTaskRepository TaskCompletionSource creation - use KeyValuePair 2015-06-29 11:32:16 +10:00
David Serfozo 93a61c1442 removed unneeded eval script related methods 2015-06-27 19:01:52 +02:00
David Serfozo 762d94942a added jscallback support for new evaluatescript implementation 2015-06-27 19:01:41 +02:00
David Serfozo cc8a07c21f added evaluatescriptasync message handlers and rerouted evalscript to cef ipc 2015-06-27 19:01:21 +02:00
David Serfozo bf33f0bc7c V8 serialization utils added 2015-06-27 16:52:08 +02:00
amaitland 766da920ac Add license disclaimer to new CefSharpArguments class (also some browsersubprocess classes) 2015-06-25 10:37:56 +10:00
David Serfozo 4d62f6ad8e wcf made switchable 2015-06-20 19:50:48 +02:00
amaitland 864f9ea7a2 Rename GetResponseHeaders to GetResponse 2015-06-15 23:07:02 +10:00
amaitland afbed86524 First draft of what is hopefully the final rewrite of ResourceHandler/SchemeHandler
This will built but won't run as CefResponseWrapper has not yet been implemented.
2015-06-15 21:03:25 +10:00
amaitland c445a508ea Allow for ISchemeHandlerFactory.Create to return null (allow for default behaviour)
Updated ISchemeHandlerFactory xml doc

As both current use cases for ResourceHandlerWrapper can potentially return null rather than handle the resource change CefRequestWrapper to be disposed of automatically and use the CefRequest provided by ResourceHandlerWrapper::ProcessRequest
2015-06-15 20:00:32 +10:00
amaitland ddff5f193d Merge branch 'ReduceObjectsBeingFinalized' of https://github.com/rassilon/CefSharp into continued/43 2015-06-15 18:40:49 +10:00
amaitland 124cf84142 Wrap frame calls in using statements (Dispose will be ignored if frame null) 2015-06-15 12:21:22 +10:00
rassilon 26ad951da4 Ensure IRequest is disposed. 2015-06-13 10:01:49 -04:00
rassilon 0ee782e8f4 Make this interface disposable so taht code analysis should hopefully remind users to call .Dispose on it. 2015-06-13 10:00:02 -04:00
amaitland 5cf5fcf24c Few more tweaks to simplify getting the browser instance.
Still need to move the wrapper out from ManagedCefBrowserAdapter and into ClientAdapter for the main CefBrowserWrapper
2015-06-11 13:33:35 +10:00
amaitland 4dbd6e36a7 IPopupHandler now implements IKeyboardHandler
At some point later on we can then consolidate the code in ClientAdapter to be much simpler
2015-06-11 12:40:32 +10:00
amaitland 6aecd5e2bc Add IBrowser to ILifeSpanHandler.OnBeforeClose 2015-06-11 11:44:35 +10:00
amaitland 60be64f67b Add IBrowser to IRequestHandler.OnBeforeBrowse - reorder params to match CEF API
Need to look at loading the cached browser instance
2015-06-11 11:06:19 +10:00
amaitland 801bebbbd0 Merge branch 'MorePopupHandlerWork' of https://github.com/rassilon/CefSharp 2015-06-11 10:04:43 +10:00
amaitland d0af09c82d Merge remote-tracking branch 'remotes/origin/cleanup/downloadhandler' 2015-06-11 09:33:41 +10:00
rassilon 79d8565d9e Add native_key_code paraameter to OnKeyEvent since it isn't exactly the same as windowsKeyCode on Windows. Update docs to adapt. 2015-06-10 19:22:00 -04:00
rassilon eab58306c1 Merge remote-tracking branch 'origin/master' into development
Merges master into the formerly cef/2272 branch.

Conflicts:
	CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj
	CefSharp.BrowserSubprocess.Core/packages.config
	CefSharp.Core/CefSharp.Core.vcxproj
	CefSharp.Core/Internals/ClientAdapter.cpp
	CefSharp.Core/Internals/ClientAdapter.h
	CefSharp.Core/packages.config
	CefSharp.Example/RequestHandler.cs
	CefSharp.Example/TempFileDialogHandler.cs
	CefSharp.OffScreen.Example/packages.config
	CefSharp.Test/packages.config
	CefSharp.WinForms.Example/packages.config
	CefSharp.Wpf.Example/packages.config
	CefSharp/IDialogHandler.cs
	CefSharp/IKeyboardHandler.cs
	CefSharp/IRequestHandler.cs
	build.ps1
2015-06-10 11:31:16 -04:00
rassilon fd0f8499fc Add example Ctrl-T menu handler that gets invoked when you have focus inside browser. 2015-06-09 23:29:09 -04:00
rassilon 94e3fecae1 Make isKeyboardShortcut actually settable from the handler, and improve the IKeyboardHandler documentation. 2015-06-09 16:20:55 -04:00
amaitland 294ed9081d Upgrade version numbers and packages version for 41.0.0 (3.2272.32) 2015-06-09 14:50:00 +10:00
amaitland d20599a5b2 Change selectedAcceptFilter to a ref param as the initial value was being hidden by using an out param 2015-06-09 14:47:48 +10:00
amaitland d4630ead1a API changed for OnBeforeResourceLoad, OnCertificateError, OnQuotaRequest.
For OnCertificateError, OnQuotaRequest the callback was changed to be a generic one, so no outward facing API change.
With OnBeforeResourceLoad there is now a async callback which isn't used, the only two options that will work are Cancel or Continue

Conflicts:
	CefSharp.Core/Internals/ClientAdapter.cpp
	CefSharp.Core/Internals/ClientAdapter.h
2015-06-09 14:43:18 +10:00
amaitland ebcf516ce6 Update CefFileDialogMode to reflect new values 2015-06-09 14:36:02 +10:00
amaitland adc47f075f Update to 2272 nuget packages
Updated OnCertificateError and OnFileDialog as API changed - build now compiles

Conflicts:
	CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj
	CefSharp.BrowserSubprocess.Core/packages.config
	CefSharp.Core/CefSharp.Core.vcxproj
	CefSharp.Core/packages.config
	CefSharp.OffScreen.Example/packages.config
	CefSharp.Test/packages.config
	CefSharp.WinForms.Example/packages.config
	CefSharp.Wpf.Example/packages.config
2015-06-09 14:35:52 +10:00