Commit Graph

1628 Commits

Author SHA1 Message Date
amaitland 83f3a697bc Upgrade to 3.2272.30 - API changed so build is broken, more changes to follow
(Use the `2272` nuget feed as that's where the new packages were uploaded to)
2015-04-28 13:45:02 +10:00
amaitland ed716a5da1 CefTaskWrapper now implements CefTask and can be passed directly into CefPostTask 2015-04-28 11:41:43 +10:00
amaitland ac0dc31b2e Pedantic code cleanup - no need to call .get() as the argument is expecting a CefRefPtr 2015-04-28 10:38:19 +10:00
amaitland 6f55e40718 CefTaskWrapper Make _task and _scheduler private 2015-04-28 10:38:18 +10:00
amaitland fd4a080c5d Merge remote-tracking branch 'remotes/upstream/cef/2272' into cleanup/resourcehandler 2015-04-28 07:32:39 +10:00
amaitland ac15d23af7 Rename SetCookieInvoker to CookieAsyncWrapper 2015-04-26 08:22:11 +10:00
amaitland fe5543c6af Move DeleteCookies into SetCookieInvoker (will rename class shortly) 2015-04-26 08:22:10 +10:00
amaitland 73cd506f76 Create wrapper class to call SetCookie async using new Task factories 2015-04-26 08:22:01 +10:00
rassilon 3c17379c46 Add license. 2015-04-25 18:14:47 -04:00
rassilon 3a6f9d0d80 Helps to add the new file. 2015-04-25 18:07:21 -04:00
rassilon 9f3832d06c Make utility class for reporting unhandled exceptions. 2015-04-25 17:54:31 -04:00
rassilon 61ce52a2a4 Merge remote-tracking branch 'origin/cef/2272' into cleanup/resourcehandler
Conflicts:
	CefSharp.Core/SchemeHandlerFactoryWrapper.cpp
	CefSharp.Core/SchemeHandlerFactoryWrapper.h
	CefSharp.Core/SchemeHandlerResponse.cpp

Merge merge merge, merges are fun.
2015-04-25 03:06:21 -04:00
rassilon 4275da30b7 The other two hiding tab files. Be gone! 2015-04-25 02:48:37 -04:00
rassilon 7128e40fd1 It's time for copyright updates again. Yay!
Throw in a couple of tab containing files for good measure.
Evil tabs, evil I say.
2015-04-25 02:45:21 -04:00
rassilon 22d34c9824 Happy builds make happy build bots. 2015-04-25 00:30:06 -04:00
rassilon 3804c6e3c2 Fix method name. 2015-04-25 00:20:17 -04:00
rassilon 2602605bae Push through exception insetad of just string. 2015-04-25 00:04:38 -04:00
rassilon d8b707fb4b Propigate TaskWrapper exceptions:
Log an ERROR message via CEF logging, and throw an appropriate exception on thread pool thread.

The idea is that the AppDomain's UnhandledException or Application.ThreadException handler will get called.
2015-04-24 10:35:29 -04:00
amaitland c81d73c587 Split CefTaskWrapper out into it's own .h file 2015-04-24 12:02:15 +10:00
Alex Maitland faa70ba789 Merge pull request #962 from amaitland/implement/requesthandler
Implement Missing CefRequestHandler Methods
2015-04-24 11:08:27 +10:00
amaitland a9aeaecda5 Comment out example and remove TODO 2015-04-24 10:51:16 +10:00
rassilon 5f8e2bbb11 Merge remote-tracking branch 'origin/cef/2272' into cleanup/resourcehandler 2015-04-23 19:40:09 -04:00
rassilon cf25cc0518 Merge remote-tracking branch 'origin/master' into cef/2272
Conflicts:
	CefSharp.Core/ManagedCefBrowserAdapter.h
2015-04-23 19:38:41 -04:00
rassilon 6209c9d754 Fix merge blunder. 2015-04-22 20:06:36 -04:00
rassilon b6bc29ef6b Merge remote-tracking branch 'origin/cef/2272' into cleanup/resourcehandler
Conflicts:
	CefSharp.Core/Cef.h
2015-04-22 19:39:38 -04:00
rassilon 554d344b97 Now that they're all in one spot, split them into sensible groups, and add comment for async task private methods. 2015-04-22 19:24:15 -04:00
rassilon 66f74089e5 This ought to fix #928.
Use GetFocusedFrame() for all clipboard and undo/redo stack activities.
2015-04-22 19:14:32 -04:00
amaitland e23fef14e2 Missed adding this in previous commit - rename IsKeyDown 2015-04-23 09:12:05 +10:00
amaitland 533964105e Group public and private methods together.
Make some methods private that were previously public
Remove Overload for `Reload` - not required
Rename `isKeyDown` to `IsKeyDown`
2015-04-23 08:41:13 +10:00
amaitland 8fc4574225 Merge remote-tracking branch 'remotes/upstream/master' into cef/2272 2015-04-23 08:25:18 +10:00
rassilon 1a31b991ac Move rest of non-simple functions to .cpp file.
Rename private GetZoomLevel to GetZoomLevelOnUI to further indicate what thread it should run on.

Make WPARAM keyboard related functions private:
  isKeyDown and GetCefKeyboardModifiers.
2015-04-22 10:46:07 -04:00
rassilon 701d391c59 Adding .Net enum of CefThreadId (mostly to be able to call .ToString()).
Added license headers on new files.
Remove sync version of GetZoomLevel on ManagedCefBrowserAdapter.
Updated callers to call GetZoomLevelAsync() but in a blocking sync manner.

Added CurrentlyOn/EnsureOn static methods to CefTaskScheduler.
2015-04-22 08:19:36 -04:00
amaitland dffc3da31f Implement OnProtocolExecution (mapped slightly differently as it's easier to return a bool than use a ref param) 2015-04-22 17:07:55 +10:00
amaitland 2429a5492a Implement IRequestHandler.OnResourceRedirect 2015-04-22 16:59:02 +10:00
amaitland f654c78874 Add basic OnQuotaRequest implementation 2015-04-22 16:29:18 +10:00
rassilon c96f8a82d6 Add TaskFactories in the main process for UI/File/IO, and utilize the UI task factory for GetZoomLevel, and implement GetZoomLevelAsync. 2015-04-22 00:14:29 -04:00
amaitland 7fd42e4e3d Merge branch 'master' of https://github.com/pushplay/CefSharp 2015-04-22 09:30:24 +10:00
amaitland c66b28a645 Merge remote-tracking branch 'remotes/upstream/master' into cef/2272 2015-04-21 11:54:56 +10:00
amaitland 5dc824aaac Remove duplicate const from _GetZoomLevel - was causing compiler warning 2015-04-21 11:49:28 +10:00
amaitland ee50034502 Reorder/Include pragma once
Add license to AutoLock
This is more of a generic cleanup - no time like the present
2015-04-17 13:07:08 +10:00
amaitland 54221c919e Cleanup include statements after moving SchemeHandlerFactory method to Cef::Initialize()
(For some reason CefDragDataWrapper needed some includes/usings)
2015-04-17 13:07:08 +10:00
amaitland 25ff7c0dab Move registration of scheme handler factories into Cef::Initialize()
Was cofusing before, possibly just the `CompleteSchemeRegistrations` name, when it was actually registering the factories.
2015-04-17 13:07:07 +10:00
amaitland 2468e41ea1 Extract ISchemeHandler into IResourceHandler - haven't marked as [Obsolete] as it may make more sense naming wise to keep this interface
Maybe need to add a code comment explaining the reason for keeping both interfaces?
2015-04-17 13:07:07 +10:00
amaitland 1863c571ae Extract ISchemeHandlerResponse into IResourceHandlerResponse and mark as obsolete 2015-04-17 13:07:07 +10:00
amaitland 98e89111f4 Remove unnecessary ret value and simply use bytes_read instead 2015-04-17 13:07:06 +10:00
amaitland e07148815e Fix has_data naming - remove underscore
Replace if statement with ternary operator for response_length
2015-04-17 13:07:06 +10:00
amaitland f32b717187 ResourceHandlerWrapper release resources on destructor 2015-04-17 13:07:05 +10:00
amaitland a904e6c667 Simplify code by removing local variable handled variable - simply return 2015-04-17 13:07:05 +10:00
amaitland f38438874c Resolve SeekOrigin ambiguous reference 2015-04-17 13:07:05 +10:00
amaitland c1d15e46d2 Switch to using ISchemeHandlerResponse interface 2015-04-17 13:07:05 +10:00