Skip to content
This repository has been archived by the owner on May 6, 2019. It is now read-only.

Commit

Permalink
Eliminated NotImplementedException on ftpDirectoryTemplatePath. Turne…
Browse files Browse the repository at this point in the history
…d exceptions on under Debug menu. Updated .gitignore.
  • Loading branch information
ObserverHerb committed Jul 18, 2011
1 parent aba9b93 commit 6a88ff9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ StyleCop.Cache
*.user *.user
*.suo *.suo
bin/ bin/
obj/ obj/
JSCore/Debug
TypeNormalizer.exe
WebKit.Interop.dll

Binary file added JSCore.ncb
Binary file not shown.
14 changes: 11 additions & 3 deletions WebKitCore/WebUIDelegate.cs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@
namespace WebKit namespace WebKit
{ {
internal delegate void CreateWebViewWithRequestEvent(IWebURLRequest request, out WebView webView); internal delegate void CreateWebViewWithRequestEvent(IWebURLRequest request, out WebView webView);
internal delegate string FTPDirectoryTemplatePath(WebView WebView);
internal delegate void RunJavaScriptAlertPanelWithMessageEvent(WebView sender, string message); internal delegate void RunJavaScriptAlertPanelWithMessageEvent(WebView sender, string message);
internal delegate int RunJavaScriptConfirmPanelWithMessageEvent(WebView sender, string message); internal delegate int RunJavaScriptConfirmPanelWithMessageEvent(WebView sender, string message);
internal delegate string RunJavaScriptTextInputPanelWithPromptEvent(WebView sender, string message, string defaultText); internal delegate string RunJavaScriptTextInputPanelWithPromptEvent(WebView sender, string message, string defaultText);


internal class WebUIDelegate : IWebUIDelegate internal class WebUIDelegate : IWebUIDelegate
{ {
public event CreateWebViewWithRequestEvent CreateWebViewWithRequest; public event CreateWebViewWithRequestEvent CreateWebViewWithRequest;
public event FTPDirectoryTemplatePath FTPDirectoryTemplatePath;
public event RunJavaScriptAlertPanelWithMessageEvent RunJavaScriptAlertPanelWithMessage; public event RunJavaScriptAlertPanelWithMessageEvent RunJavaScriptAlertPanelWithMessage;
public event RunJavaScriptConfirmPanelWithMessageEvent RunJavaScriptConfirmPanelWithMessage; public event RunJavaScriptConfirmPanelWithMessageEvent RunJavaScriptConfirmPanelWithMessage;
public event RunJavaScriptTextInputPanelWithPromptEvent RunJavaScriptTextInputPanelWithPrompt; public event RunJavaScriptTextInputPanelWithPromptEvent RunJavaScriptTextInputPanelWithPrompt;
Expand Down Expand Up @@ -136,9 +138,15 @@ public void drawHeaderInRect(WebView WebView, ref tagRECT rect, int drawingConte
{ {
} }


// TODO: Um, what does this do? I can't figure it out from the source code and can't find it
// in the docs.
// From: https://trac.webkit.org/timeline?from=2007-07-15&daysback=4
// --> Set the path to the FTP listing document template
public string ftpDirectoryTemplatePath(WebView WebView) public string ftpDirectoryTemplatePath(WebView WebView)
{ {
throw new NotImplementedException(); //return FTPDirectoryTemplatePath(WebView);
// You'd think the above would work but it's returning NullReferenceException
return "";
} }


public int hasCustomMenuImplementation() public int hasCustomMenuImplementation()
Expand Down
Empty file removed bin/.gitignore
Empty file.

0 comments on commit 6a88ff9

Please sign in to comment.