amaitland
34d5167ec3
Remove old render process code that showed a message box for purpose of attaching the debugger - was commented out
...
Preferred method is to use the --renderer-startup-dialog command line flag
https://github.com/cefsharp/CefSharp/blob/master/CefSharp.Example/CefExample.cs#L35
2015-06-20 22:24:46 +10:00
Alex Maitland
134aac271a
Merge pull request #1079 from amaitland/continued/43
...
Continued Work on 43
2015-06-19 09:04:20 +10:00
rassilon
1a62db2446
Allow the browser/frame instances to be active (i.e. non-disposed) until ResourceHandlerWrapper has completed processing for ResourceHandlers and Schemes.
2015-06-18 08:27:53 -04:00
rassilon
1912ee2e5a
Fix build issue from prev. merge.
2015-06-18 07:59:39 -04:00
rassilon
1d2454b0bc
Merge remote-tracking branch 'origin/master' into continued/43
...
Conflicts:
CefSharp.Core/Internals/CefRequestCallbackWrapper.h
CefSharp.Core/ResourceHandlerWrapper.h
2015-06-18 07:56:59 -04:00
Bill Tutt
e334de4e39
Merge pull request #1077 from rassilon/ReduceObjectsBeingFinalized
...
Reduce objects being finalized from finalization thread.
2015-06-18 07:54:36 -04:00
rassilon
afb8aae4eb
Fix things that break VS2012.
2015-06-17 19:13:42 -04:00
rassilon
82dca3b481
Merge remote-tracking branch 'rassilon_fork/ReduceObjectsBeingFinalized' into continued/43
...
Conflicts:
CefSharp.Core/Internals/CefJSDialogCallbackWrapper.h
CefSharp.Core/Internals/CefRequestCallbackWrapper.h
CefSharp.Core/ResourceHandlerWrapper.h
2015-06-17 18:42:57 -04:00
rassilon
8ec01da230
Use GetBrowserWrapper everywhere except popup creation/closing for all of ClientAdapter.cpp.
...
This means that none of the callbacks need to own disposing the IBrowser^ instance.
2015-06-17 18:14:07 -04:00
amaitland
864f9ea7a2
Rename GetResponseHeaders to GetResponse
2015-06-15 23:07:02 +10:00
amaitland
fc23de42a2
Seems that Delegating Constructors are a VC++ 2013 feature and won't work in 2012
...
https://msdn.microsoft.com/en-au/library/dn387583.aspx
2015-06-15 22:41:18 +10:00
amaitland
4f1caf2410
Change to use IRequest instead (use interfaces for classes where possible)
2015-06-15 22:27:07 +10:00
amaitland
c057c256c5
Cleanup - pass in CefRefPtr variables by reference (Should avoid an unnecessary call to AddRef)
2015-06-15 22:22:27 +10:00
amaitland
a31064a7f5
Change IResponse to public
2015-06-15 22:07:38 +10:00
amaitland
6520379558
Guard against null reference exception when cleaning up JavascriptCallbackRegistry
2015-06-15 21:47:55 +10:00
amaitland
8c849036b1
CefBrowserWrapper was still implementing DisposableResource
2015-06-15 21:45:26 +10:00
amaitland
018598171a
Add first draft of CefResponseWrapper
2015-06-15 21:20: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
35d31bd533
Only set ResourceHandlerWrapper values if we plan to continue, if we Cancel they would be ignored
2015-06-15 19:03:35 +10:00
amaitland
63cc978ce6
Change CefRequestWrapper to use the IRequest interface instead
2015-06-15 18:46:34 +10:00
amaitland
4b245f1ab9
Revert "Be paranoid about _requestWrapper being disposed properly in ResourceHandlerWrapper."
...
This reverts commit 4f7302086b .
2015-06-15 18:45:12 +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
4f7302086b
Be paranoid about _requestWrapper being disposed properly in ResourceHandlerWrapper.
2015-06-13 10:45:36 -04:00
rassilon
431cb511c3
* Move unmanged objects into finalizer and call finalizer from Dispose.
...
* Remove DisposableResources from ManagedCefBrowserAdapter
* Improve disposing of CefRequestWrapper
* Have callbacks dispose themselves.
* Allow the Application exit handler shutdown CEF from the Winforms example application.
2015-06-13 10:42:33 -04: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
rassilon
9212cd4ba0
Null out pointer to avoid accidentally causing a double release on the underlying refcounted pointer.
2015-06-13 09:59:11 -04:00
Alex Maitland
9ab0ac88fa
Merge pull request #1072 from amaitland/rewrite/api
...
Continued API Rewrite
2015-06-12 13:18:27 +10: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
fb8be8c816
Remove outdated comment, both key params are passed through
2015-06-11 13:07:25 +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
169a8d1cf6
Dispose of CefContextMenuParamsWrapper
2015-06-11 12:28:20 +10:00
amaitland
dc6f991065
Auto dispose of drag data
2015-06-11 12:25:38 +10:00
amaitland
abeaca86a9
Reduce the amount of code required to get the cached popup instance
2015-06-11 12:24:32 +10:00
amaitland
d2f9ab13b4
Rename entry to browserWrapper (same as all other instances)
...
Remove the browserId variable - was really only there for debugging early on
2015-06-11 11:49:22 +10:00
amaitland
6aecd5e2bc
Add IBrowser to ILifeSpanHandler.OnBeforeClose
2015-06-11 11:44:35 +10:00
amaitland
a43090f04a
Inline Close and CloseAllPopups code - use new wrapper class to close the main browser instance
...
Might need a quick review
2015-06-11 11:34:56 +10:00
amaitland
defe059908
Start making the wrapper/callback naming consistent
...
Change to using auto where possible
2015-06-11 11:21:55 +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
Bill Tutt
13669e1f4e
Merge pull request #1068 from rassilon/ImproveKeyboardHandlingDoc
...
Make isKeyboardShortcut actually settable from `OnPreKeyEvent` handler, and add example usage for `CefSharp.WinForms.Example`. The example adds a Ctrl-T menu shortcut for `New Tab` in the File menu.
2015-06-10 00:40:42 -04:00
rassilon
fdc0cc972a
Ref parameters are simple after all.
2015-06-10 00:17:35 -04:00
rassilon
b31ecf180e
Push .csproj update.
2015-06-10 00:06:00 -04:00
rassilon
e9bfe41b9c
KeyboardHandler is WinForms specific.
2015-06-09 23:46:39 -04:00
rassilon
415ef3349b
Add some additional commentary.
2015-06-09 23:41:05 -04:00