Commit Graph

3571 Commits

Author SHA1 Message Date
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
amaitland 1691e172bd Remove unused using statements
Add extra blank line
Make GetDragEffects static
2015-08-24 12:20:19 +10:00
amaitland 7687dee583 Merge branch 'implement_drag_drop' of https://github.com/mmamone/CefSharp 2015-08-24 12:16:26 +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
amaitland 2cc2729ba5 Add missing OnOpenURLFromTab implementation v43.0.0-pre01 2015-08-19 19:07:58 +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 defd1dd3da Replaced FragmentHtml with FragmentText 2015-08-19 13:51:30 +10:00
amaitland 4828919a27 Remove unused reference to autolock.h 2015-08-19 13:06:00 +10:00
amaitland 2e75ae32b1 Add some missing override statements (general cleanup) 2015-08-19 13:05:59 +10: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
amaitland fefe6df1ad Latest version of nuget wants to rearrange the NuGet.config removing the official reference as well
Hopefully it knows what's it's doing! lol
2015-08-19 09:34:58 +10:00
amaitland f04f7c7595 Fix typo - newRedirectUrl 2015-08-19 09:34:08 +10:00
amaitland fb2f2efa11 Add CanSetCookie and CanGetCookie method stubs, look at implementing later 2015-08-19 08:53:09 +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
amaitland 65d44b3962 Only send register IPC message of there are is a bound object 2015-08-18 09:29:50 +10:00
Alex Maitland a904c78399 Merge pull request #1190 from amaitland/cleanup/newhandlers
Revise Event Handlers, Add ILoadHandler, IDisplayHandler and remove IPopupHandler
2015-08-17 15:16:11 +10:00
amaitland e83f1d9fd8 Untabify 2015-08-17 14:51:05 +10:00
amaitland ad336a8928 First draft of sslinfo
Conflicts:
	CefSharp.Core/CefSharp.Core.vcxproj.filters
	CefSharp.Example/RequestHandler.cs
2015-08-17 14:49:47 +10:00
amaitland a49848347b Remove _javascriptCallbackFactories dictionary
Should be required as the OnProcessMessageReceived IPC handler should be called on the relevant browser instance
2015-08-17 14:29:50 +10:00
amaitland 0e2078e288 Send bound objects in the new OnRenderViewReady method 2015-08-17 14:22:57 +10:00
amaitland 315e345582 Add OnOpenUrlFromTab and OnRenderViewReady 2015-08-17 13:59:48 +10:00
amaitland b780568544 Add DoClose to ILifeSpanHandler 2015-08-17 13:49:10 +10:00
amaitland 29e6bc7571 Rename IMenuHandler to IContextMenuHandler 2015-08-17 13:42:44 +10:00
amaitland be6046276b Add OnContextMenuCommand and OnContextMenuDismissed handlers 2015-08-17 13:40:56 +10:00
amaitland 75ff0ed3e4 Add IMenuModel
Refactor to reflect actual underlying Cef Model (Remove return bool)
2015-08-17 13:33:27 +10:00
amaitland 9e9735fdfc Fix formatting in IDragHandler 2015-08-17 13:16:55 +10:00
amaitland 6e1c9ad778 Add OnResetDialogState and OnDialogClosed to IJsDialogHandler 2015-08-17 13:16:45 +10:00
amaitland fd78bf430c Untabify 2015-08-17 12:19:23 +10:00
amaitland e19edc6ce0 Default return value for OnConsoleMessage is false, so revert to using the default 2015-08-17 12:11:40 +10:00
amaitland 02ae218cfc Simplify nesting for OnBeforeResourceLoad, OnBeforeBrowse, OnPreKeyEvent, OnKeyEvent 2015-08-17 12:10:49 +10:00
amaitland 9616f5dc57 Add note and remove TODO 2015-08-17 12:05:01 +10:00
amaitland 6000d5ce25 OnAfterCreated and OnBeforeClose are now simplified to reflect the removal of IPopupHandler 2015-08-17 11:58:52 +10:00
amaitland 41acea55d3 Add ILoadHandler to directly expose CefLoadHandler interface
Rather than have a complex set of rules where some methods were handled via IPopupHandler and others weren't
It's just a basic wrapper around CEF now with the internal event handlers only being called if it's not a popup
2015-08-17 11:54:40 +10:00
amaitland 8dbfe02618 Start adding/moving methods to IDisplayHandler - reflect CefDisplayHandler implementation 2015-08-17 11:29:51 +10:00
amaitland bb3103e1c2 Rename IPopupHandler to IDisplayHandler 2015-08-17 11:23:21 +10:00
amaitland 02b2be54db Remove OnAfterCreated and OnBeforeClose from IPopupHandler 2015-08-17 11:20:49 +10:00
amaitland 0a3bc35236 Remove more methods from IPopupHandler - still two more to go 2015-08-17 11:03:30 +10:00
amaitland aa90cf307f Reorder methods in IPopupHandler 2015-08-17 10:57:50 +10:00
amaitland 49248739b2 Add license disclaimer
Remove unused using statement
2015-08-17 10:57:06 +10:00
amaitland 6928de190b OnFaviconURLChange is now only exposed on IRequestHandler 2015-08-17 10:56:40 +10:00
amaitland 7ae3515e93 Revert IPopupHandler implementing IKeyboardHandler
All keyboard checks are simply handled through IKeyboardHandler (for both main and popup browsers)
2015-08-17 10:51:24 +10:00
Alex Maitland d8ecca8496 Merge pull request #1194 from cefsharp-ms/pendingtaskfix
Pending tasks only cancelled on real timeouts
2015-08-16 20:21:41 +10:00
amaitland 42228561e4 Add info about Initialize/Shutdown on main application thread 2015-08-15 09:33:19 +10:00
cefsharp-ms 2e9a8a8734 pending task only cancelled on real timeouts 2015-08-14 12:09:25 +02:00