Commit Graph

82 Commits

Author SHA1 Message Date
amaitland b9ee476e8e Fix up some of the vc++ include mess that we had going
Cleanup using namespace statements as well
2015-09-29 16:26:06 +10:00
amaitland 4a1b4aba18 Remove stray semi colon 2015-09-01 22:07:43 +10:00
amaitland 36bf1c5c58 Refactor GetScreenInfo - add GetViewRect method so closer match cefclient example
Add note about GetViewRect
2015-08-26 20:13:07 +10:00
amaitland 7794fb2712 Remove scaledWidth, scaledHeight just use the values directly 2015-08-26 15:25:15 +10:00
amaitland a3c3d6c51f Untabify RenderClientAdapter
Remove GetPixelPosition method - inline code
Remove redundant else branch from BitmapFactory
2015-08-26 15:21:38 +10:00
amaitland 73e01e09e6 Merge branch 'features/HighDpiAgain' of https://github.com/bjarteskogoy/CefSharp 2015-08-26 15:18:29 +10:00
Bjarte Skogøy 0c2b0ae7f7 Device/logical coordinates stuff. Now mouse positions and popups are behaving properly. 2015-08-21 10:23:55 +02:00
Bjarte Skogøy 276c05195e Spaces instead of tabs. 2015-08-21 08:58:57 +02:00
mmamone dba5cc4690 Updates post review
Updated the naming conventions in RenderClientAdapter.
Used a DataObject for the drag data (in order to handle text, html, etc
...).
In the future, can support images once GetFileContents is
implemented.
2015-08-20 09:34:32 +10:00
Bjarte Skogøy d68039db3c Seems like the bitmapInfo sent to ReleaseBitmapHandlers sometimes is NULL. 2015-08-19 08:18:02 +02:00
mmamone cb96ce1437 Implement start drag for WPF browser
Exposed the necessary functions for start drag to work:
* StartDragging (RenderClientAdapter)
* OnDragSourceEndedAt (ManagedCefBrowserAdapter)
* OnDragSourceSystemDragEnded (ManagedCefBrowserAdapter)

Implemented IRenderWebBrowser.StartDragging for the WPF
ChromiumWebBrowser.

TODO: Would like to add an adorner layer for the dragged text (using the
supplied fragment html), but feels like a project for later.
2015-08-19 13:03:18 +10:00
Bjarte Skogøy 9834bee0d3 Seems to scale properly now. 2015-08-18 23:48:25 +02:00
Bjarte Skogøy c7c0dad0d4 Init bitmap infos when scale info is available 2015-08-18 23:33:10 +02:00
Bjarte Skogøy 4bbd9e7b09 A start. Need to test popups and test on high dpi screen. 2015-08-18 14:17:20 +02:00
Bill Tutt bceb3db4c5 Merge remote-tracking branch 'origin/cef/2272' into cef/2272 2015-05-28 23:17:59 -04:00
Bill Tutt 12c330ad92 Merge remote-tracking branch 'origin/master' into cef/2272 2015-05-28 23:14:54 -04:00
Matthew Morrison 890b80bc0f Fixed some issues with formatting. 2015-05-23 17:46:06 -05:00
Matthew Morrison f7f13f0359 Add cursor type to SetCursor call. Duplicated CursorType enum from CEF source. 2015-05-22 19:40:40 -05:00
amaitland 8a53dfe54d Pass the IBrowserAdapter (ManagedCefBrowserAdapter) reference directly into the ClientAdapter instance 2015-05-21 13:57:17 +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
amaitland 16616d924f Add missing DECL (__declspec(dllexport)) to OnPopupSize 2015-05-21 09:05:07 +10:00
Bill Tutt adb5ae0d77 More work on wrapping CefBrowser/CefFrame. 2015-05-17 17:41:44 -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 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
Bjarte Skogøy 18509342d0 foramtting 2015-02-25 11:02:18 +01:00
Bjarte Skogøy f8c242e88d Use device scale factor to support higher DPI on WPF 2015-02-25 09:31:58 +01:00
amaitland bfec2c95b1 Add IBitmapFactory so that different Rendering methods can be plugged in (potentially a .Net 4.5 InteropBitmapInfo can be created)
Move into Rendering namespace
2015-01-29 15:25:08 +10:00
amaitland 9a52f082de Code cleanup - Merge ReleaseBitmapHandlers and DisposeBitmapInfo into one method 2015-01-29 12:04:15 +10:00
amaitland 524f5cb213 Merge branch 'enhancement/writeablebitmap' into improvements/more-wpf-rendering-tweaks 2015-01-29 11:54:12 +10:00
amaitland 0c45119f17 Remove SetBufferHelper method and move code inline so some minor tweaks can be performed like only setting variables when required (Small things I know though important in such a performance critical section) 2015-01-29 11:50:13 +10:00
amaitland 899e991a0a First attempt at WritableBitmapInfo implementation - uses dirty rects to determine which part of the screen to update 2015-01-16 14:02:08 +10:00
amaitland 4562b984ab Merge remote-tracking branch 'remotes/upstream/master' into cef/2171 2015-01-16 11:53:25 +10:00
BinSys 5af020afcc change c++ file copyright symbol (©) from 0xa9(cp1252) to 0xc2 0xa9(cp65001 with bom) ,
now work on non-english system().
2015-01-10 02:40:23 +08:00
BinSys 3f954dfb0b Revert "change c++ file copyright symbol (©) from 0xa9(cp1252) to 0xc2 0xa9(cp65001 without bom) ,"
This reverts commit defd040dcc.
2015-01-10 02:22:19 +08:00
BinSys defd040dcc change c++ file copyright symbol (©) from 0xa9(cp1252) to 0xc2 0xa9(cp65001 without bom) ,
now work on non-english system().
2015-01-06 22:23:30 +08:00
amaitland 5ee13cc54f Make MainBitmapInfo and PopupBitmapInfo private
Make DisposeBitmapInfo private
2015-01-06 16:10:38 +10:00
amaitland 82d202e831 Merge SetBuffer method into OnPaint 2015-01-06 16:07:16 +10:00
amaitland b70a309d35 Move methods from RenderClientAdapter to ClientAdapter
RenderClientAdapter should really only contains methods that relate to `OSR` (not relevant to the WinForms implementation)
2014-12-30 08:48:07 +10:00
amaitland abbb3145c8 Merge remote-tracking branch 'remotes/upstream/cef/2171' into improvements/2171 2014-12-22 23:06:23 +10:00
amaitland c7032ea83c Upgrade to Cef 3.2171.1949
OnCursorChange Signature has changed
2014-12-18 22:23:25 +10:00
amaitland 85c44f7754 Move BytesPerPixel to BitmapInfo - simplifies code 2014-12-16 23:41:11 +10:00
amaitland 520349d643 Make BitmapInfo abstract and implement a strongly typed version in WPF and OffScreen 2014-12-16 23:19:21 +10:00
amaitland 7bc7cd227a Improve comment 2014-12-16 21:17:37 +10:00
amaitland 166c898251 Add comments to SetBufferHelper 2014-12-16 21:04:37 +10:00
amaitland 6f5ce15847 Simplify OnPaint 2014-12-16 20:55:48 +10:00
amaitland f1e5009224 Remove redundant local variable declaration 2014-12-16 20:52:27 +10:00