Commit Graph

521 Commits

Author SHA1 Message Date
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 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 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 ee7c8efdd9 A few more resharper inspired cleanups 2015-05-21 13:51:15 +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 80d6ae12e5 Merge remote-tracking branch 'origin/cef/2272' into CefSharpBrowserWrapper 2015-05-20 21:54:31 -04:00
Bill Tutt 79a66d8bc1 Add PopupHandler properties to the controls. 2015-05-17 17:57:14 -04:00
amaitland 0413c0bc6c Merge remote-tracking branch 'remotes/upstream/master' into cef/2272 2015-05-13 09:29:07 +10:00
amaitland 561507b87b Add BackBufferHandle == IntPtr.Zero check to WritableBitmapInfo - in the rare case where it's been disposed of and the async OnPaint is called after the file handles have been released
Related to #1003
2015-05-06 11:10:51 +10:00
amaitland a4507d3c2e Reorder InteropBitmapInfo changes - fail fast, no need to calculate stride, remove redundant else block 2015-05-06 11:05:17 +10:00
jamespearce2006 6fa4b470f7 Return null immediately if file handle is not valid 2015-05-05 22:57:50 +01:00
jamespearce2006 6c16aa2725 switch to evaluate == first 2015-05-05 22:42:13 +01:00
jamespearce2006 446eda3435 WPF - Handle case where Bitmap is IntPtr.Zero
Because the OnPaint arrives on a thread other than the UI thread, it the
bitmap rendering process can occur after Dispose() has been called.
2015-05-05 18:05:44 +01:00
Bill Tutt 71c9cbac6d Merge remote-tracking branch 'origin/cef/2272' into CefFrameWrapper 2015-05-02 02:34:30 -04:00
Bill Tutt 1016329280 Merge remote-tracking branch 'origin/master' into cef/2272
Conflicts:
	CefSharp.BrowserSubprocess/app.manifest
	CefSharp.WinForms.Example/app.manifest
	CefSharp/Properties/AssemblyInfo.cs
	build.ps1
2015-05-02 02:33:50 -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
jamespearce2006 928d576164 NullReferenceException in ChromiumWebBrowser if not yet in VisualTree 2015-05-01 15:00:35 +01:00
amaitland bdec0cb880 Add ZoomLevel property to the IWpfWebBrowser interface 2015-04-28 10:43:10 +10:00
rassilon 33d4dbd816 Call SetCurrentValue instead. 2015-04-27 18:41:12 -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 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
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 bdabd3a91c Remove usage of TaskFactory - will look at implementing later 2015-04-10 16:33:12 +10:00
Alex Maitland 5c40ff0af3 Merge pull request #933 from amaitland/experiment/taskscheduler
Add Experiment TaskScheduler
2015-04-10 16:30:46 +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
Alex Maitland 4f3868656b Merge pull request #916 from svantreeck/master
WPF Popup - Change to absolute positioning
2015-04-10 15:38:57 +10:00
amaitland ad56dbb6b0 Expose SendKeyEvent on the WPF ChromiumWebBrowser 2015-04-09 19:26:10 +10:00
amaitland 76e28b1b16 Switch lparam to CastToInt32() extension method 2015-04-09 19:23:28 +10:00
amaitland 9d7b65ccfc Add TaskFactory that corresponds to the UI Thread
Execute SetZoomLevel on UI Thread
2015-04-09 11:30:02 +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
Steve van Treeck fc6c2af770 Added scaling to the width and height of the Wpf Popup 2015-04-01 08:31:06 -05:00
Steve van Treeck d294ec6ed4 updated 2015-03-30 15:51:57 -05:00
Steve van Treeck c9f9fb303f Updated the Popup settings
This avoids win 8/8.1 menu alignment settings
2015-03-30 09:47:34 -05:00
amaitland c73866eb79 SetIsLoading is unreliable according to CEF documentation http://magpcss.org/ceforum/apidocs3/projects/%28default%29/CefLoadHandler.html#OnLoadStart%28CefRefPtr%3CCefBrowser%3E,CefRefPtr%3CCefFrame%3E%29
`For notification of overall browser load status use OnLoadingStateChange instead.`

So migrating `WPF` property to `OnLoadingStateChange`
2015-03-30 15:34:07 +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
amaitland d316486426 Expose Dispatcher via IWpfWebBrowser interface - could be useful for Handler implementations 2015-03-18 21:34:20 +10:00
Per Lundberg 109bb6159a Added TitleChanged event handler. 2015-03-17 09:36:02 +02:00