Commit Graph

6294 Commits

Author SHA1 Message Date
Per Lundberg 9c520936d1 Better casing of the name. 2014-06-12 02:44:29 +03:00
Per Lundberg 6d4b16fcb6 Trivial ReSharper cleanups. Jan - have you stopped using it lately? :) 2014-06-12 02:42:18 +03:00
Per Lundberg 1ae5bf8d30 Trivial adjustments. Let's try to get property assignment working, shall we not! 2014-06-12 02:41:59 +03:00
Per Lundberg 0fd7e6c84a Let's use a better name for this one. 2014-06-12 02:37:01 +03:00
amaitland e3a0589547 Execute SetNavState on UI Thread 2014-06-12 02:35:06 +03:00
Per Lundberg 6496a28a24 Updated because the webView is now just called 'browser' in the .xaml file. 2014-06-12 02:33:20 +03:00
Per Lundberg 901c851e57 Need to include the <vector> header for VS2013 to be able to compile the code now. 2014-06-12 02:31:16 +03:00
Per Lundberg c84bc19bdb The other half of the b65587cdfc change. 2014-06-12 02:19:31 +03:00
Per Lundberg 264dddd530 Likewise; this file no longer exists in this project. We should REALLY try to get the JS stuff merged as soon as possible since it's rather costly to let it live on its own branch this long. 2014-06-12 02:18:30 +03:00
Per Lundberg 801d425cdc These do not exist. 2014-06-12 02:17:09 +03:00
Per Lundberg b65587cdfc CefKeyType is now called just KeyType, for simplicity. (or maybe stupidity. ;) 2014-06-12 02:16:53 +03:00
Per Lundberg d34a67a516 Duh. The same file was specified multiple times; feels like quite a waste, doesn't it. 2014-06-12 02:12:50 +03:00
Per Lundberg b8c7f23972 Thank you, ReSharper. :) 2014-06-12 02:11:29 +03:00
Per Lundberg a3bbd6e1f0 Merge commit '36ed4dbdc0cf0cb0d6b294df9d81a6a4fb7c1646' into JsBinding_WIP. This was taking @JanEggers changes and merging them into my local branch.
Conflicts:
	CefSharp.Core/CefSharp.Core.vcxproj
	CefSharp.Wpf.Example/ViewModels/BrowserTabViewModel.cs
	CefSharp/Internals/IWebBrowserInternal.cs
2014-06-12 02:10:08 +03:00
Per Lundberg d662860344 Merge branch 'master' into JsBinding_WIP. This was a bit of work but not *that* hard after all. Let's see if it compiles also, but I'll keep any required changes for that in a changeset of its own (so that it's easier to follow for you guys).
Conflicts:
	CefSharp.Core/CefSharp.Core.vcxproj
	CefSharp/CefErrorCode.cs
	CefSharp/CefEventFlags.cs
	CefSharp/CefSettingsBase.cs
	CefSharp/Internals/IWebBrowserInternal.cs
2014-06-12 02:07:27 +03:00
Per Lundberg 682adee813 I don't like empty lines. :-) Let's add a slightly explanatory comment instead, to help people (hopefully) know what to do. 2014-06-12 02:00:33 +03:00
amaitland aeeaf79035 Implement CefKeyboardHandler.OnPreKeyEvent 2014-06-12 01:59:11 +03:00
amaitland e515a606ef Remove NavigationType unused enum 2014-06-12 01:59:06 +03:00
amaitland 81a0f60db3 Update LogSeverity to reflect cef_log_severity_t 2014-06-12 01:58:58 +03:00
amaitland 27040fa8b3 Move CefEventFlags into it's own class 2014-06-12 01:58:53 +03:00
amaitland 3ec232a73e Move NavigationType to it's own file 2014-06-12 01:58:45 +03:00
amaitland d092b3e66c Implement basic DownloadHandler (can now save a file to disk correctly) 2014-06-12 01:55:52 +03:00
amaitland 36503b616c Assign RequestHandler in BrowserTabView 2014-06-12 01:55:34 +03:00
Per Lundberg 5755516ed6 Second half of the 500cca5e6e commit. 2014-06-12 01:55:10 +03:00
amaitland fff9422e52 Rename ExamplePresenter to RequestHandler (Alex had also removed old commented out code, but I am moving that part of the change to a separate commit to help git/SourceTree better understand that the file has been renamed, so we preserve history etc)
Conflicts:
	CefSharp.Example/ExamplePresenter.cs
2014-06-12 01:53:46 +03:00
amaitland ff03b13a33 Create CefExample class to house common Init() and DefaultUrl
Conflicts:
	CefSharp.WinForms.Example/BrowserForm.cs
2014-06-12 01:49:37 +03:00
amaitland 9e19bce707 Set WebBrowser = null on UI thread - when hosting the WPF control under WinForms the dispose is called on a different thread and this causes an exception. So executing on UI thread resolves this. 2014-06-12 01:44:50 +03:00
amaitland 9f0ea3a987 Comment out OnResourceResponse as it's not currently implemented (not direct translation from CEF1 to CEF3) 2014-06-12 01:44:09 +03:00
amaitland 32a68c0a1c Implement IWebBrowserInternal explicitly 2014-06-12 01:43:40 +03:00
amaitland 1dd617015e ReSharper-inspired cleanups from e911753dc7. 2014-06-12 01:41:11 +03:00
Per Lundberg 26f3778262 Surround dependency properties with regions, like the rest of the (unfortunately massively huge) file.
Manual cherry-pick of @JanEggers 9b9bfee8f9.
2014-06-12 01:38:46 +03:00
Per Lundberg 5ad6a0f34d Trivial ReSharpenings/cleanups. 2014-06-12 01:35:55 +03:00
Per Lundberg dd01b21fbd Let's complete the circle by adding the CanReload method to the public/generic-most interface also. 2014-06-12 01:30:47 +03:00
Per Lundberg ecbb961624 Once again, the lack of "continuous integration" before commit is apparent. :P 2014-06-12 01:28:42 +03:00
Per Lundberg cd948339b2 Changed CanGoBack, CanGoForward and CanReload to be dependency properties, to simplify data binding scenarios for WPF.
Cherry-pick of 082faa5266 (which had a totally incorrect/misleading commit message for whatever reason, @JanEggers... ;)
2014-06-12 01:25:14 +03:00
amaitland 305ebfbefb Extract DisposableEventWrapper into separate internal class 2014-06-12 01:21:10 +03:00
amaitland e6bc1d951b Set IsBrowserInitialized in WinForms WebView 2014-06-12 01:20:49 +03:00
amaitland 92ddf8286b Expose Delete (part of the Cut/Copy/Paste suite of commands) 2014-06-12 01:20:39 +03:00
amaitland 9670d94597 Explicitly implement IRenderWebBrowser.BytesPerPixel - IRenderWebBrowser should now be fully explicit 2014-06-12 01:20:21 +03:00
amaitland 53117ad7f2 Move properties LifeSpanHandler, KeyboardHandler, JsDialogHandler from IWebBrowserInternal to IWebBrowser 2014-06-12 01:20:07 +03:00
Per Lundberg ef1e82d04d And why not be more explicit about this part also, while we're at it? 2014-06-12 01:19:43 +03:00
Per Lundberg d31732375d Since we are now in "generic land", make the comments take that into accounts. (Dependency Properties is a WPF-only feature.) 2014-06-12 01:18:17 +03:00
Per Lundberg e5fea12dbc Even though it's a tad extreme, let's go with the "one-file-per-type" approach. It just makes things so much easier, and ReSharper makes these kind of changes be only a single keyboard shortcut away anyway. 2014-06-12 01:14:18 +03:00
Per Lundberg 26e7a36d3e Forward-port of ec4e0650c6 from @amaitland: API cleanup - move non WPF specific commands from IWpfWebBrowser to IWebBrowser (The files had changed, so it was easier to just redo the change than trying to get the merge working). 2014-06-12 01:12:34 +03:00
Per Lundberg 1ca86e4c08 Duh. I fouled up big-time in my previous commit. Always compile before committing... I guess I should start Visual Studio and not just sit in a text editor. ;) 2014-06-12 01:11:09 +03:00
Per Lundberg 407d581105 Spaces, not tabs, as usual. :) 2014-06-11 23:54:21 +03:00
amaitland 8b4c1f79f7 Change public commands to be straight ICommand (easier for them to be replaced if we implement an mvvm framework later) 2014-06-11 23:49:07 +03:00
Per Lundberg 0366da6573 Slight tweaks after 'cherrying' 284e4f89f5: I feel that the delegate type can stay here; it's not strictly a part of the LoadErrorEventArgs class (so it doesn't truly belong in that file), and it's too minimal to warrant its own file... so let's leave it like it were for the time being. 2014-06-11 23:48:47 +03:00
amaitland f2510c31a1 Change IWebBrowser.LoadError to have proper EventArgs (LoadErrorEventArgs) 2014-06-11 23:46:42 +03:00
Per Lundberg 3adbb954a9 Merge pull request #371 from amaitland/bug/duplicate-headers
Support Duplicate Headers
2014-06-11 21:51:29 +03:00