Commit Graph

503 Commits

Author SHA1 Message Date
amaitland 7fd42e4e3d Merge branch 'master' of https://github.com/pushplay/CefSharp 2015-04-22 09:30:24 +10:00
amaitland 5dc824aaac Remove duplicate const from _GetZoomLevel - was causing compiler warning 2015-04-21 11:49:28 +10:00
rassilon 06e26f132d GetZoomLevel is required to be called from the UI thread, but it has a failure mode of just returning 0. Here's a cheesy temporary solution to adding a full on GetZoomLevelAsync method that returns a .Net task. 2015-04-16 15:15:01 -04:00
pushplay ca443502dd Add BrowserSubProcess dependency checking. 2015-04-16 10:57:16 -07:00
Alex Maitland d7525280d8 Merge pull request #923 from exinferis/master
Added parameter for lowercasing JS functions (or not)
2015-04-10 15:44:21 +10:00
Alex Maitland 69ebc20c03 Merge pull request #929 from amaitland/feature/OnContextInitialized
Add OnContextInitialized Delegate
2015-04-10 15:41:19 +10:00
amaitland 76e28b1b16 Switch lparam to CastToInt32() extension method 2015-04-09 19:23:28 +10:00
amaitland 295c10024e Cleanup OnContextInitialized on Cef::Shutdown 2015-04-07 21:50:34 +10:00
amaitland a3a0f15517 Add OnContextInitialized delegate (Simple .Net Action that is called after the context has been initialized) 2015-04-07 21:48:24 +10:00
amaitland 525193c102 Untabify 2015-04-07 20:30:40 +10:00
Exinferis 8581c3f03b Added parameter for lowercasing JS functions (or not) 2015-04-02 15:37:12 +02:00
Alex Maitland a434d3ca6a Merge pull request #900 from amaitland/feature/dependencychecker
Implement DependencyChecker
2015-04-02 10:08:49 +10:00
amaitland fe59df92ac Cleanup OnBeforeResourceLoad - Remove IResponse and Response classes, to perform Redirect simply set the IRequest.Url 2015-03-28 19:56:26 +10:00
amaitland 171abe8ee7 Upgrade to 3.2171.2069 2015-03-27 11:54:44 +10:00
rassilon fafc0ad2d5 Fix #884 by adding sourceUrl parameter to OnBeforePopup .Net callback. 2015-03-25 22:30:24 -04:00
amaitland 189c6c07fd Add ForceWebPluginShutdown 2015-03-26 07:31:31 +10:00
amaitland ccbaebd7c2 Update AssertAllDependenciesPresent reference 2015-03-25 14:51:17 +10:00
amaitland 4ad11e7261 Move dependency check call into Cef.Initialize() - currently not enabled by default 2015-03-25 13:59:35 +10:00
amaitland fea3d8f6af Allow setting cefSettings->resources_dir_path
'The fully qualified path for the resources directory. If this value is empty the cef.pak and/or devtools_resources.pak files must be located in the module directory'
2015-03-25 11:56:39 +10:00
amaitland 144dc46ff6 Add WindowlessRenderingEnabled to CefSettings
http://magpcss.org/ceforum/apidocs3/projects/%28default%29/_cef_settings_t.html#windowless_rendering_enabled

Interestingly enough the documentation says this should be set to true when using OSR.
`In order to create windowless browsers the CefSettings.windowless_rendering_enabled value must be set to true`
http://magpcss.org/ceforum/apidocs3/projects/%28default%29/CefWindowInfo.html#SetAsWindowless%28cef_window_handle_t,bool%29

Further investigation required.
2015-03-23 10:08:36 +10:00
amaitland 61dd781731 Cleanup enum mapping - directly cast between cef_log_severity_t <-> CefSharp::LogSeverity 2015-03-23 09:45:03 +10:00
amaitland 59ea971dc9 Prefix private variables with _ (c++) 2015-03-23 09:37:29 +10:00
amaitland 2493f8c0c4 Information added about change made for #862 and #804
Added comment as suggested in https://github.com/cefsharp/CefSharp/commit/387101ee79b730d593d701b88e5fc521381fd964#commitcomment-10315749
2015-03-23 09:29:05 +10:00
rassilon ff7314339e Merge pull request #892 from rassilon/DontChangeAddressForDevTools
Don't change the .Address property when (among other things) you display...
2015-03-21 10:21:57 -04:00
rassilon 460cca4e5c Use IsPopup instead. 2015-03-21 10:02:30 -04:00
rassilon 40f45b4183 Don't change the .Address property when (among other things) you display DevTools. 2015-03-20 14:02:17 -04:00
amaitland 387101ee79 Check BrowserProcessServiceHost is in a Created State before opening 2015-03-19 15:46:11 +10:00
amaitland a7b8e1eb76 Remove MouseButtonType as it's not required - enum values match those of Cef, so just pass in as int and cast when required
(Should be much more efficient than switch statement)
2015-03-19 10:58:18 +10:00
Jan Kurianski 2b88af6c10 Merge pull request #888 from numbersint/fixes/cefrequest-support-charset
Use correct string encoding in CefRequest.Body
2015-03-18 22:17:05 +11:00
amaitland 0572ef6a25 Add isMainFrame to OnBeforeResourceLoad 2015-03-18 17:44:19 +10:00
dimas 16bc1215ee Passing IsMainFrame as parameter to the OnBeforeBrowse 2015-03-18 13:15:25 +08:00
jankurianski 6fd0abc0d1 Use auto for longer type declarations. 2015-03-18 16:14:41 +11:00
jankurianski fc8e546aa8 Add using for System::Text 2015-03-18 16:07:41 +11:00
jankurianski b25f39c1bf Use correct string encoding in CefRequest.Body
This fixes a bug where unicode characters were not being decoded
correctly in the POST request body (e.g. U with umlaut - Ü - was being
sent as utf-8 but then incorrectly decoded using the default ASCII
codepage as Ã).
2015-03-18 14:35:19 +11:00
amaitland 14cbf5fba8 Add cef_web_plugin.h reference to Cef.h so intellisense works 2015-03-18 10:34:52 +10:00
amaitland a0ba80ca6c Add HasHandlers property to IResourceHandlerFactory - immediately return NULL if no handlers registered 2015-03-12 12:38:23 +10:00
amaitland 090ed3989b Add RemoveWebPluginPath and UnregisterInternalWebPlugin 2015-03-12 12:14:09 +10:00
amaitland fa31882137 Untabify xml comments of newly added methods 2015-03-10 22:54:40 +10:00
amaitland 545c63aacc Expose CefAddWebPluginDirectory, CefAddWebPluginPath, CefRefreshWebPlugins methods 2015-03-10 22:52:45 +10:00
amaitland 649c497387 Remove nuget msbuild target from vc++ projects 2015-03-06 18:00:00 +10:00
amaitland f39fd0c2b3 Fix compiler warnings - minor typo's in xml comments 2015-03-06 17:55:02 +10:00
Alex Maitland 6fca20b632 Merge pull request #857 from rassilon/CleanupResourceHandler
Rename IResourceHandler to IResourceHandlerFactory.
2015-03-05 18:26:58 +10:00
rassilon a04d3c6eb8 Rename IResourceHandler to IResourceHandlerFactory. 2015-03-02 23:08:04 -05:00
rassilon 74544d7f73 Use the full constructor in order to allow headers to be useful. 2015-03-02 22:51:21 -05:00
rassilon 55aaae243a Add _ prefix to field. 2015-03-02 20:28:04 -05:00
rassilon a300631954 Do a little cleaning up of StreamAdapter to more effeciently deal with MemoryStreams, and add lame header to ResourceHandler usage in CefExample.cs.
Additionally, allocate Headers NameValueCollection in constructor.
2015-03-02 19:02:37 -05:00
amaitland 8755a9496f Comment out changes made by #842 and #852 until further investigation can be conducted - need to look more info how scale factor works and if the ScaleTransform we have is required. 2015-03-02 10:42:55 +10:00
amaitland aada02c356 Add ScreenInfo class to represent Width/Height/ScaleFactor 2015-03-02 10:40:01 +10:00
Bjarte Skogøy 98ec5be9b9 formatting 2015-02-27 10:35:53 +01:00
Bjarte Skogøy 52a8c09fc6 As it's implemented now the view rect needs to be adapted to the scaling. This will provide the correct area available for rendering. 2015-02-27 10:33:51 +01:00