Commit Graph

6294 Commits

Author SHA1 Message Date
amaitland 091c3302c1 As per MSDN article's recommendation always call base.OnPreviewKey method so that subscribers are notified. 2014-12-18 13:28:41 +10:00
amaitland 32334c2c62 Improve formatting and include comment about source code origin 2014-12-18 12:44:38 +10:00
amaitland 9abc531169 Cleanup Adding/Removing of SourceHook by using PresentationSourceChangedHandler 2014-12-18 12:30:40 +10:00
amaitland f28c027f5b Import keyboard SourceHook code from cefclient to comprehensively handle key modifiers
Simplified OnPreviewKey so that it only deals with keys that would have been handled by WPF
2014-12-18 12:29:16 +10:00
jornh cdae40c09c Fix commented out example code s/WebView/ChromiumWebBrowser/ 2014-12-18 00:38:13 +01:00
amaitland 85c44f7754 Move BytesPerPixel to BitmapInfo - simplifies code 2014-12-16 23:41:11 +10:00
amaitland 33b0e4710e Add TODO 2014-12-16 23:35:31 +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 40f3328b5b Add simple JSON example to BindingTest.html 2014-12-16 21:44:13 +10:00
amaitland 25203c5327 Create BrowserSettings in ChromiumWebBrowser constructor and explicitly call Dispose (it references an unmanaged resource) 2014-12-16 21:26:59 +10:00
amaitland 7bc7cd227a Improve comment 2014-12-16 21:17:37 +10:00
amaitland 013c3145c7 Only create new RenderingEventArgs when EventHandler is attached (performance reasons, no need to create object unnecessarily) 2014-12-16 21:05:29 +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
amaitland 96b300eaf2 Move currentWidth and currentHeight into SetBufferHelper 2014-12-16 20:51:18 +10:00
amaitland 325b7f19e2 Continue to cleanup width and height variables 2014-12-16 20:50:14 +10:00
amaitland e3f7718833 Rename width and height variables 2014-12-16 20:48:21 +10:00
amaitland a11ec84b2b Only get BytesPerPixel when generating a new InteropBitmap 2014-12-16 20:27:35 +10:00
amaitland f674387023 Move rendering code inline 2014-12-16 20:25:38 +10:00
amaitland 0bb35f8b27 Only update the InteropBitmap reference when a new one is created 2014-12-16 20:24:47 +10:00
amaitland 7c1bc144b6 Remove SetBitmapHelper method - call code inline for now 2014-12-16 20:24:04 +10:00
amaitland 2824f3b225 Continued refactor of SetBitmapHelper 2014-12-16 20:23:05 +10:00
amaitland aaf676fa09 Simplify SetBitmap by removing Action<> 2014-12-16 19:48:08 +10:00
amaitland da6e95e898 Remove redundant SetBitmap method from IRenderWebBrowser 2014-12-16 19:44:31 +10:00
amaitland 4dd0328712 Remove redundant ClearBitmap method from IRenderWebBrowser 2014-12-16 19:42:49 +10:00
amaitland d3d8d53e15 Merge remote-tracking branch 'remotes/upstream/master' into cef/2171 2014-12-16 19:27:13 +10:00
amaitland 6089015c99 Add NavstateChanged EventHandler to OffScreen 2014-12-16 17:21:33 +10:00
amaitland f805f50544 Save the internal byte array of MemoryStream from being expanded unnecessarily as per https://github.com/cefsharp/CefSharp/pull/691#issuecomment-67116871 2014-12-16 16:19:51 +10:00
amaitland 5cc66592c2 Update assemblyIdentity to include correct version and app name 2014-12-16 15:21:38 +10:00
amaitland a8885defed Reformat app.manifest files - was too verbose 2014-12-16 15:21:03 +10:00
Alex Maitland 997e7eda3e Merge pull request #664 from jimnoble/master
Add DPI-Aware Manifests for High DPI Support
2014-12-16 15:13:24 +10:00
Alex Maitland add83d9e91 Merge pull request #691 from amaitland/enhancement/resourcehandler-encoding
Enhancement - ResourceHandler Encoding
2014-12-16 13:23:29 +10:00
amaitland e235cf1598 Spelling mistakes 2014-12-16 12:35:03 +10:00
amaitland 3fec9843a7 Add ResourceHandler unicode example to CefExample 2014-12-16 10:51:47 +10:00
amaitland c6a387e592 Add LoadHtml overrides with Encoding param (default is UTF-8) 2014-12-16 10:48:16 +10:00
amaitland 85024f2fb0 Add ability to specify FromText Encoding and Preamble (without a preamble then Cef will use DefaultEncoding to render the html) 2014-12-16 10:43:44 +10:00
amaitland ffac7e6546 Merge remote-tracking branch 'remotes/upstream/master' into cef/2171 2014-12-12 16:45:44 +10:00
Alex Maitland 5e225b7700 Merge pull request #683 from amaitland/enhancement/winforms-managed-init
WinForms - Create ManagedCefBrowserAdapter in Constructor
2014-12-12 13:24:26 +10:00
amaitland 56e9b9db37 Remove hack for #522 that's no longer required 2014-12-12 13:17:34 +10:00
amaitland 0efff78f0d Update examples to call RegisterJsObject in constructor 2014-12-12 13:16:59 +10:00
amaitland fba29ac001 Move managedCefBrowserAdapter creation to constructor (same as WPF control) 2014-12-12 13:15:03 +10:00
Alex Maitland 2ebf0b46e6 Merge pull request #681 from ghuntley/patch-1
documentation correction -> new CefSettings not new Settings
2014-12-12 11:28:44 +10:00
Geoffrey Huntley 47f5cd7b6d correction -> new CefSettings not new Settings 2014-12-12 11:37:18 +11:00
Alex Maitland 8bc801540a Merge pull request #675 from amaitland/fix/issue-614
Javascript Binding - Only call Connect for main browser (not popups)
2014-12-11 12:06:03 +10:00
Alex Maitland 8f7330ff06 Merge pull request #678 from numbersint/features/setfocus
Implement CefBrowserHost::SetFocus for WinForms
2014-12-10 20:53:47 +10:00
jankurianski 599e1414e4 Remove unnecessary Focus() method. 2014-12-10 21:23:37 +11:00
jankurianski 667b649e26 Implement CefBrowserHost::SetFocus for WinForms 2014-12-10 15:18:19 +11:00
amaitland 7ef8406179 Merge remote-tracking branch 'remotes/upstream/master' into cef/2171 2014-12-09 21:38:44 +10:00
Alex Maitland ae8c153129 Merge pull request #674 from amaitland/feature/rework-resourcehandler
Rework ResourceHandler
2014-12-09 20:01:27 +10:00