Commit Graph

1034 Commits

Author SHA1 Message Date
amaitland e20209b82d ManagedCefBrowserAdapter - _browserAdapter was never set so the Close method wasn't being called
Remove GetCefBrowser method as ManagedCefBrowserAdapter now totally relies on the managed wrappers for calls like SendKeyEvent
2016-01-12 15:16:31 +10:00
amaitland 63ba97042d Move the Drag OSR methods from ManagedCefBrowserAdapter to CefBrowserHostWrapper 2016-01-12 14:36:24 +10:00
amaitland 264be0e753 Store a reference to IBrowser in ClientAdapter rather than trying to access it through the BrowserAdapter 2016-01-12 14:11:49 +10:00
amaitland 627f80c8ec Pass in only the required params into BrowserProcessServiceHost - was passing in the browser adapter which wasn't strictly required.
Pass the IBrowser instance into IWebBrowserInternal.OnAfterBrowserCreated
Keep a reference to IBrowser in the ChromiumWebBrowser instances (reduces the number of GetBrowser calls and also makes it clearer internally when the browser variable is set)
2016-01-12 14:01:37 +10:00
amaitland f74bef6921 Instead of passing in the BrowserId on OnAfterBrowserCreated pass in the IBrowser 2016-01-12 13:42:35 +10:00
amaitland bae3c28e92 Update copyright to 2016 2016-01-11 14:11:30 +10:00
amaitland eef76d1c5e Add SetReferrer, ReferrerUrl and ReferrerPolicy
Resolves #1464
2016-01-11 13:57:51 +10:00
amaitland c91c9f3953 Add IPostData.HasExcludedElements 2016-01-11 13:40:42 +10:00
amaitland dcbddfbab9 Rewrite CefFrameWrapper::Parent::get - unsure if it would have worked previously, logic now follows CefFrameWrapper::Browser::get() 2016-01-11 12:03:12 +10:00
amaitland 4ef95605c5 Add ThrowIfDisposed check as accessing an invalid frame will cause a hard crash.
Resolves #1509
2016-01-11 11:45:04 +10:00
amaitland 83dba09e99 Start to remove some of the methods from ManagedCefBrowserAdapter that are now available through IBrowserHost 2016-01-09 08:09:38 +10:00
Alex Maitland c57d69b6be Merge pull request #1531 from rlmcneary2/rename-enable-focus
Rename EnableFocusedNodeChanged to FocusedNodeChangedEnabled
2016-01-06 11:17:53 +10:00
Rich McNeary a27a097df6 Change from EnableFocusedNodeChanged to FocusedNodeChangedEnabled to match the existing WindowlessRenderingEnabled setting property. 2016-01-05 07:30:23 -05:00
amaitland dc121af997 Add IRequestContext interface to allow for extension methods
Can now access the RequestContext through IBrowserHost (can get access to the global context if required now)
2015-12-23 08:30:43 +10:00
amaitland 4e4ccd32d1 Finish the ToNative Dictionary<String^, Object^> implementation 2015-12-23 07:48:27 +10:00
amaitland 533c1912e0 So it appears the configuration has a two tier hierarchy, the main preference key can have a dictionary of values as it's child.
For instance webgl may have a number of sub preferences.
Allow for returning of a dictionary when returning a specific preference
Having some compiler problems with setting of dictionary values
2015-12-23 07:48:26 +10:00
amaitland c7b1243952 Move template decelerations into header files. 2015-12-23 07:48:26 +10:00
amaitland abd10ede6d Implement GetAllPreferences 2015-12-23 07:48:26 +10:00
amaitland fb137f932f Implement basic Get/Set of Preferences
Haven't yet implemented the GetAllPreferences as yet.
2015-12-23 07:48:23 +10:00
amaitland c54da651f0 Add ThrowIfDisposed(); calls to CefRequestWrapper 2015-12-22 19:05:35 +10:00
amaitland a28f43462f Add InitializePostData method to create the underlying CefPostDataWrapper 2015-12-22 19:04:24 +10:00
amaitland 1d9ce8d4de Add a number of missing methods to IBrowserHost (some methods are not relevant to windows and some need additional pieces
Improve documentation
Reorder events so they match the CefBrowserHost doco (alphabetical ordering)
Tidy up the xmldoc for IJsDialogHandler.OnJSDialog suppressMessage param
2015-12-22 09:10:29 +10:00
amaitland b18e74be1e Upgrade to 3.2526.1362 (Chromium 47.0.2526.80) 2015-12-17 11:47:35 +10:00
amaitland 9ef0e21c62 Add CookieManager nullptr check - rather than return a wrapper around an empty CefRefPtr return null directly 2015-12-09 13:26:46 +10:00
amaitland c18f951a97 Move OnContextCreated from IRequestHandler to IRenderProcessMessageHandler
Manually resolve some merge conflicts
2015-12-09 11:32:24 +10:00
amaitland af02212217 Merge branch 'feature/oncontextcreated' of https://github.com/amaitland/CefSharp 2015-12-09 11:26:07 +10:00
amaitland d33c41ec5d Remove unused include
No need to wrap bool in gcroot
Move command line parsing into c# land - can be reused in a few places.
Reduce code duplication in OnProcessMessageReceived - kOnFocusedNodeChanged handler
Minor changes for code consistency/formatting
2015-12-09 11:23:06 +10:00
Rich McNeary 5784444f43 Merge remote-tracking branch 'refs/remotes/cefsharp/master' into focus-changed-1256
# Conflicts:
#	CefSharp/IRequestHandler.cs
2015-12-08 09:36:44 -05:00
Rich McNeary 7d4e074ef4 Move OnFocusedNodeChanged into new IRenderProcessMessageHandler. 2015-12-08 09:32:54 -05:00
Rich McNeary 443804084e Changed to specifically request FocusNodeChanged messages. 2015-12-08 09:04:22 -05:00
Alex Maitland a736754e2c Merge pull request #1440 from amaitland/feature/loadrequest
Implement IFrame.LoadRequest
2015-12-08 12:07:49 +10:00
amaitland 7782490513 Add IRequestHandler.OnResourceLoadComplete
https://bitbucket.org/chromiumembedded/cef/commits/ced449a0efbb39e7ff36af844a4d067935dc324b
2015-12-08 10:46:27 +10:00
amaitland 4684cfcbb9 Upgrade to CEF 3.2526.1359 (Chromium 47.0.2526.73) 2015-12-08 10:27:08 +10:00
Rich McNeary 1fb54241f7 Add the OptionalMessages property to CefSettings. 2015-12-07 16:27:17 -05:00
Rich McNeary 8d013feb9f Replace gcnew String() with StringUtils::ToClr(). 2015-12-07 10:52:57 -05:00
Rich McNeary ae49a5385b Fix: tabs to spaces, if and for braces, use frame ID. 2015-12-07 09:48:57 -05:00
Rich McNeary 1ecf2d57b0 Initial implementation complete.
Add support for when an element node in the DOM gets focus. Also invoked
when focus passes from an element node to an non-element node or
nothing.
2015-12-04 16:01:26 -05:00
Rich McNeary 34f7554023 Added initial implementation to IRequestHandler. 2015-12-03 16:08:34 -05:00
Rich McNeary ce79f71275 When OnFocusedNodeChanged data is passed from render to browser process. 2015-12-03 15:59:27 -05:00
amaitland 8cd491562d Reorder params for SetInt64, SetJsCallback and SetCefTime - they're not in a logical order 2015-12-02 19:20:54 +10:00
amaitland 6f272833fb Add IRequestHandler.OnContextCreated handler
Send an IPC message when OnContextCreated is called in the render process
Currently only called for the main frame
Should be possible to hook the DOMContentLoaded event
2015-12-02 19:04:19 +10:00
amaitland 08bbc19803 Improve the AddElement and RemoveElement logic - don't add/remove if the element is/isn't in the collection 2015-11-29 07:50:13 +10:00
amaitland 45b957337e Add Readonly Checks to CefPostDataWrapper
Implement AddElement, RemoveElement and RemoveElements
Add IPostData.CreatePostDataElement
2015-11-29 07:10:02 +10:00
amaitland de53893c19 Add operator so it's possible to cast from CefPostDataElementWrapper to CefPostDataElement 2015-11-29 07:05:01 +10:00
amaitland 994f94a415 Add ThrowIfDisposed calls to both CefPostDataElementWrapper and CefPostDataWrapper 2015-11-29 06:22:22 +10:00
amaitland 565e52eb32 CefPostDataWrapper now implements CefWrapper - removes duplicate Disposed logic 2015-11-29 06:20:19 +10:00
amaitland 3b2bd43880 Add initializePostData param to CreateRequest - simplifies the initialization of the CefPostDataWrapper, basically if you know that you'll need to use PostData then initialize up front 2015-11-29 06:19:35 +10:00
amaitland d5bde1cdfc Expose IFrame.LoadRequest
Add IFrame.CreateRequest to instantiate a new instance of the CefRequestWrapper
Was planning on using VC++ extensions methods, have yet to get that working, so for now just have a method on the IFrame interface directly.
2015-11-25 08:30:38 +10:00
amaitland 0fe0b4c4de Add CefExecuteProcess as Cef.ExecuteProcess - useful for implementing your own very minimal browser without the custom subprocess 2015-11-19 18:15:31 +10:00
amaitland 1bce19a051 Remove unnecessary safe cast and cleanup the code a little 2015-11-18 18:50:38 +10:00