amaitland
bbe267b44c
Throw exception if IsBrowserInitialized when trying to call RegisterJsObject
2015-07-06 12:16:58 +10:00
amaitland
cf10fdf9dc
Add ThrowExceptionIfBrowserNotInitialized to WinForms GetBrowser
...
Haven't done WPF yet as it's IsBrowserInitialized implementation is a DependencyProperty which will likely cause problems if run on a CEF thread
2015-07-01 19:58:54 +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
93e99dadfc
Apply changes to the WinForms control so exception throw
...
Will refactor a few more methods into extensions so it's not really a problem
2015-07-01 19:27:04 +10:00
amaitland
958a6264a3
Remove LoadUrl code from ManagedCefBrowserAdapter - remove more duplication
2015-07-01 12:29:37 +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
Bill Tutt
a92e44e4ad
Move IBrowser into FrameLoadStart/EndEventArgs.
2015-06-08 23:07:37 -04:00
Bill Tutt
1df0d648a8
Don't create a task for MemoryStreams, and some more Resharper Cleanups.
2015-05-28 22:14:34 -04:00
amaitland
d394124b3a
Move public facing CefBrowserHost methods into extension methods that use the IBrowserHost wrapper
2015-05-29 11:23:25 +10:00
amaitland
67d57c96a0
Move Stop/Back/Forward methods into WebBrowserExtensions
2015-05-28 20:20:32 +10:00
amaitland
c0e79c20b0
Add GetBrowser methods to get direct access to the underlying CefBrowser instance
2015-05-28 20:08:56 +10:00
amaitland
d37dd2d2ef
Move LoadHtml into an extension method
2015-05-27 16:18:28 +10:00
amaitland
b4b0cf1d7e
Move the IWinFormsWebBrowser interface into the WinForms project
2015-05-22 11:06:16 +10:00
amaitland
1a1fcb9f2e
Make the next set of frame related methods into extension methods
2015-05-21 19:12:14 +10:00
amaitland
024a80396e
Move the first set of frame related method (Cut/Copy/Paste, etc) into a set of Extension methods
2015-05-21 18:49:58 +10:00
amaitland
00b1aee59f
Reorder a few more things in the WinForms code
2015-05-21 18:41:12 +10:00
amaitland
37c64afa51
WinForms move EventHandler decelerations up higher in source file
2015-05-21 18:39:35 +10:00
amaitland
4763020b9d
Add GetMainFrame and GetFocusedFrame to IWebBrowser
2015-05-21 18:38:33 +10:00
amaitland
8a53dfe54d
Pass the IBrowserAdapter (ManagedCefBrowserAdapter) reference directly into the ClientAdapter instance
2015-05-21 13:57:17 +10:00
amaitland
4ea3bfca37
Start marking Cut/Copy/Paste methods Obsolete - will soon be accessible at the frame level.
2015-05-21 13:51:14 +10:00
amaitland
e43befe9fa
Start to extract some duplicate code out into extension methods - saves repeating the same block three times
2015-05-21 13:51:14 +10:00
Bill Tutt
c08b1ff38e
Fix some review comments, and add frameloadstart/end/error related methods to IPopupHandler.
2015-05-20 22:59:43 -04:00
Bill Tutt
79a66d8bc1
Add PopupHandler properties to the controls.
2015-05-17 17:57:14 -04:00
Bill Tutt
de7b6b4240
More IFrame usages, take special note of the chaneges in the EventArgs types.
2015-05-02 01:15:47 -04:00
Bill Tutt
e1e58a5da6
Add IFrame interface as the public face of CefFrameWrapper.
...
IRequestHandler: Pass IFrame instances instead of isMainFrame.
Support EvaluateJavaScriptAsync from a frame.
IBrowserAdapter, IBrowserAdapterNative: Dependency breaking between CefFrameWrapper and ManagedCefBrowserAdapter.
Add IBrowserAdapter.BrowserAdapter to IWebBrowserInternal and implment for all controls.
This builds, but hasn't been tested yet. Thoughts?
2015-05-02 00:01:31 -04:00
rassilon
fdd5508467
Continue the TaskScheduler items:
...
* Replace IWebBrowser.ZoomLevel property with:
GetZoomLevelAsync(), and SetZoomLevel().
2015-04-27 18:20:32 -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
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
c66b28a645
Merge remote-tracking branch 'remotes/upstream/master' into cef/2272
2015-04-21 11:54:56 +10:00
amaitland
39c8194b49
rename lowerCaseJavascriptNames to camelCaseJavascriptNames - more accurate description of what's going on
2015-04-16 16:31:54 +10:00
amaitland
4b3ee2a9a0
Merge remote-tracking branch 'remotes/upstream/master' into cef/2272
2015-04-10 16:22:57 +10: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
3d9841517f
Merge pull request #913 from amaitland/bug/wpf-isloading
...
Resolve: IsLoaded is unreliable
2015-04-10 15:40:06 +10:00
amaitland
fb4f0bbc05
Mark IsLoadingChanged Obsolete in OffScreen and WinForms versions
2015-04-10 08:26:26 +10:00
amaitland
d55ea0c90e
Rename NavStateChanged to LoadingStateChanged
2015-04-08 11:09:37 +10:00
amaitland
7621cbb745
Remove IsLoadingChangedEventArgs
2015-04-08 11:05:12 +10:00
amaitland
89b02583e8
Remove method overloads and use optional param instead
2015-04-07 20:30:15 +10:00
Exinferis
8581c3f03b
Added parameter for lowercasing JS functions (or not)
2015-04-02 15:37:12 +02:00
rassilon
48c2550011
Fix #918 by adding extension method to cast from IntPtr to Int32
2015-03-31 10:26:09 -04:00
rassilon
1dd0fd3c35
Given focus fixes take 5, DefaultFocusHandler probably needs to be public instead of internal so that you can subclass and reuse the tricky default OnGotFocus implementation.
...
Add doc comment warnings about the danagers of overriding IFocusHandler.OnGotFocus for WinForm ChromiumWebBrowsers.
2015-03-18 11:54:20 -04:00
amaitland
a503365073
Indent case statement
...
Remove unused using statements
2015-03-18 17:50:40 +10:00
amaitland
1d496fa692
No need to set IsActivating - bools always default to false
2015-03-18 17:49:16 +10:00
rassilon
4cb60e6c34
Merge pull request #791 from rassilon/focus_take5
...
Focus improvements, take 5...
2015-03-17 09:57:46 -04:00
rassilon
8bd76e1db9
Further cleanups based on comments.
2015-03-17 09:39:40 -04:00
rassilon
b27b7d8fdf
Remove debugging logic, and add some additional commentary.
2015-03-15 12:42:15 -04:00
rassilon
cc8e51dced
Don't .Activate ChromiumWebBrowser during activation if the ChromiumWebBrowser was the .ActiveControl before the app was deactivated.
...
This will allow WinForm's .ActiveControl logic to occur properly.
Update address bar logic to deal with BackColor being in yellow whenever the control has focus.
2015-03-06 02:31:05 -05:00
amaitland
1e78265aeb
Remove redundant namespace qualifier
2015-03-06 06:23:18 +10:00
amaitland
602ba52ad5
Change Load behaviour to only call LoadUrl if the browser has been initialized, otherwise set Address which in an ideal world will be passed into the constructor.
...
Ignoring threading issues for now (if required user should wait for IsBrowserInitializedChanged event to fire and then call Load if experiencing timing issues, must invoke Load on the UI thread in IsBrowserInitializedChanged).
2015-03-06 06:21:27 +10:00
rassilon
340d671b1f
Move WM_ACTIVATE logging from MovingListener to Interceptor.
2015-03-03 02:07:28 -05:00