Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added CanGo(Back|Forward) properties to WebKitBrowser

Added xml comments to all public classes, members etc..
  • Loading branch information...
commit 9a1c1298b2b35af0f8f020e1b9263c606533344a 1 parent 9662654
peterdn authored
View
1  WebKit.NET.sln
@@ -9,6 +9,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
LICENSE.txt = LICENSE.txt
README.txt = README.txt
+ WebKitBrowserDoc.shfbproj = WebKitBrowserDoc.shfbproj
EndProjectSection
EndProject
Global
View
14 WebKitBrowser/ActivationContext.cs
@@ -24,13 +24,13 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-/// TODO:
-/// possible race conditions?
-/// either find out if we can remove the need for this stuff altogether -
-/// embedding the manifest into a client application seems to work but is
-/// not an ideal solution - or work out how to load it from a resource -
-/// I've tried this already by getting CreateActCtx to load this assembly,
-/// but it can't seem to find the manifest resource.
+// TODO:
+// possible race conditions?
+// either find out if we can remove the need for this stuff altogether -
+// embedding the manifest into a client application seems to work but is
+// not an ideal solution - or work out how to load it from a resource -
+// I've tried this already by getting CreateActCtx to load this assembly,
+// but it can't seem to find the manifest resource.
using System;
using System.Collections.Generic;
View
4 WebKitBrowser/Properties/AssemblyInfo.cs
@@ -58,5 +58,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.2.2.1")]
-[assembly: AssemblyFileVersion("0.2.2.1")]
+[assembly: AssemblyVersion("0.2.3.0")]
+[assembly: AssemblyFileVersion("0.2.3.0")]
View
24 WebKitBrowser/WebDownloadDelegate.cs
@@ -41,18 +41,18 @@
namespace WebKit
{
- delegate void DecideDestinationWithSuggestedFilenameEvent(WebDownload download, string fileName);
- delegate void DidBeginEvent(WebDownload download);
- delegate void DidCancelAuthenticationChallengeEvent(WebDownload download, IWebURLAuthenticationChallenge challenge);
- delegate void DidCreateDestinationEvent(WebDownload download, string destination);
- delegate void DidFailWithErrorEvent(WebDownload download, WebError error);
- delegate void DidFinishEvent(WebDownload download);
- delegate void DidReceiveAuthenticationChallengeEvent(WebDownload download, IWebURLAuthenticationChallenge challenge);
- delegate void DidReceiveDataOfLengthEvent(WebDownload download, uint length);
- delegate void DidReceiveResponseEvent(WebDownload download, WebURLResponse response);
- delegate int ShouldDecodeSourceDataOfMIMETypeEvent(WebDownload download, string encodingType);
- delegate void WillResumeWithResponseEvent(WebDownload download, WebURLResponse response, long fromByte);
- delegate void WillSendRequestEvent(WebDownload download, WebMutableURLRequest request, WebURLResponse redirectResponse, out WebMutableURLRequest finalRequest);
+ internal delegate void DecideDestinationWithSuggestedFilenameEvent(WebDownload download, string fileName);
+ internal delegate void DidBeginEvent(WebDownload download);
+ internal delegate void DidCancelAuthenticationChallengeEvent(WebDownload download, IWebURLAuthenticationChallenge challenge);
+ internal delegate void DidCreateDestinationEvent(WebDownload download, string destination);
+ internal delegate void DidFailWithErrorEvent(WebDownload download, WebError error);
+ internal delegate void DidFinishEvent(WebDownload download);
+ internal delegate void DidReceiveAuthenticationChallengeEvent(WebDownload download, IWebURLAuthenticationChallenge challenge);
+ internal delegate void DidReceiveDataOfLengthEvent(WebDownload download, uint length);
+ internal delegate void DidReceiveResponseEvent(WebDownload download, WebURLResponse response);
+ internal delegate int ShouldDecodeSourceDataOfMIMETypeEvent(WebDownload download, string encodingType);
+ internal delegate void WillResumeWithResponseEvent(WebDownload download, WebURLResponse response, long fromByte);
+ internal delegate void WillSendRequestEvent(WebDownload download, WebMutableURLRequest request, WebURLResponse redirectResponse, out WebMutableURLRequest finalRequest);
internal class WebDownloadDelegate : IWebDownloadDelegate
{
View
29 WebKitBrowser/WebFrameLoadDelegate.cs
@@ -37,21 +37,20 @@
namespace WebKit
{
// Delegate definitions WebFrameLoadDelegate events
- delegate void DidCancelClientRedirectForFrameEvent(WebView WebView, IWebFrame frame);
- delegate void DidChangeLocationWithinPageForFrameEvent(WebView WebView, IWebFrame frame);
- delegate void DidCommitLoadForFrameEvent(WebView WebView, IWebFrame frame);
- delegate void DidFailLoadWithErrorEvent(WebView WebView, IWebError error, IWebFrame frame);
- delegate void DidFailProvisionalLoadWithErrorEvent(WebView WebView, IWebError error, IWebFrame frame);
- delegate void DidFinishLoadForFrameEvent(WebView WebView, IWebFrame frame);
- delegate void DidRecieveIconEvent(WebView WebView, int hBitMap, IWebFrame frame);
- delegate void DidRecieveServerRedirectForProvisionalLoadForFrameEvent(WebView WebView, IWebFrame frame);
- delegate void DidRecieveTitleEvent(WebView WebView, string title, IWebFrame frame);
- delegate void DidStartProvisionalLoadForFrameEvent(WebView WebView, IWebFrame frame);
- delegate void WillCloseFrameEvent(WebView WebView, IWebFrame frame);
- delegate void WillPerformClientRedirectToURLEvent(WebView WebView, string url, double delaySeconds, DateTime fireDate, IWebFrame frame);
- delegate void WindowScriptObjectAvailableEvent(WebView WebView, IntPtr context, IntPtr windowScriptObject);
- delegate void DidClearWindowObjectEvent(WebView WebView, IntPtr context, IntPtr windowScriptObject, IWebFrame frame);
-
+ internal delegate void DidCancelClientRedirectForFrameEvent(WebView WebView, IWebFrame frame);
+ internal delegate void DidChangeLocationWithinPageForFrameEvent(WebView WebView, IWebFrame frame);
+ internal delegate void DidCommitLoadForFrameEvent(WebView WebView, IWebFrame frame);
+ internal delegate void DidFailLoadWithErrorEvent(WebView WebView, IWebError error, IWebFrame frame);
+ internal delegate void DidFailProvisionalLoadWithErrorEvent(WebView WebView, IWebError error, IWebFrame frame);
+ internal delegate void DidFinishLoadForFrameEvent(WebView WebView, IWebFrame frame);
+ internal delegate void DidRecieveIconEvent(WebView WebView, int hBitMap, IWebFrame frame);
+ internal delegate void DidRecieveServerRedirectForProvisionalLoadForFrameEvent(WebView WebView, IWebFrame frame);
+ internal delegate void DidRecieveTitleEvent(WebView WebView, string title, IWebFrame frame);
+ internal delegate void DidStartProvisionalLoadForFrameEvent(WebView WebView, IWebFrame frame);
+ internal delegate void WillCloseFrameEvent(WebView WebView, IWebFrame frame);
+ internal delegate void WillPerformClientRedirectToURLEvent(WebView WebView, string url, double delaySeconds, DateTime fireDate, IWebFrame frame);
+ internal delegate void WindowScriptObjectAvailableEvent(WebView WebView, IntPtr context, IntPtr windowScriptObject);
+ internal delegate void DidClearWindowObjectEvent(WebView WebView, IntPtr context, IntPtr windowScriptObject, IWebFrame frame);
internal class WebFrameLoadDelegate : IWebFrameLoadDelegate
{
View
58 WebKitBrowser/WebKitBrowser.cs
@@ -38,10 +38,8 @@
using WebKit;
using WebKit.Interop;
using System.Diagnostics;
+using System.Reflection;
-/// <summary>
-/// Contains classes for creating instances of and communication with the WebKit COM component.
-/// </summary>
namespace WebKit
{
/// <summary>
@@ -67,8 +65,15 @@ public partial class WebKitBrowser : UserControl
private WebPolicyDelegate policyDelegate;
private WebUIDelegate uiDelegate;
- // redirects relevant key strokes to the webkit control
- // bit more work is needed here perhaps
+
+ #region Overridden methods
+
+ /// <summary>
+ /// Processes a command key. Overridden in WebKitBrowser to forward key events to the WebKit window.
+ /// </summary>
+ /// <param name="msg">The window message to process.</param>
+ /// <param name="keyData">The key to process.</param>
+ /// <returns>Success value.</returns>
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
Keys key = (Keys)msg.WParam.ToInt32();
@@ -82,6 +87,7 @@ protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
return base.ProcessCmdKey(ref msg, keyData);
}
+ #endregion
#region WebKitBrowser events
@@ -114,7 +120,7 @@ protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
public event WebKitBrowserErrorEventHandler Error = delegate { };
/// <summary>
- /// Occurs when the WebKitBrowser control starts to download a file.
+ /// Occurs when the WebKitBrowser control begins a file download, before any data has been transferred.
/// </summary>
public event FileDownloadBeginEventHandler DownloadBegin = delegate { };
@@ -209,7 +215,7 @@ public string DocumentText
}
/// <summary>
- /// Returns the currently selected text.
+ /// Gets the currently selected text.
/// </summary>
[Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public string SelectedText
@@ -245,7 +251,7 @@ public string ApplicationName
}
/// <summary>
- /// Gets or sets the user agent.
+ /// Gets or sets the user agent string.
/// </summary>
[Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public string UserAgent
@@ -265,7 +271,7 @@ public string UserAgent
}
/// <summary>
- /// Text size multiplier (1.0 is normal size).
+ /// Gets or sets the text size multiplier (1.0 is normal size).
/// </summary>
[Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public float TextSize
@@ -298,17 +304,47 @@ public float TextSize
public bool AllowDownloads { get; set; }
/// <summary>
- /// Gets or sets whether to allow new windows.
+ /// Gets or sets whether to allow links to be opened in a new window.
/// </summary>
[Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public bool AllowNewWindows { get; set; }
- public readonly string Version = "0.2.2";
+ /// <summary>
+ /// Gets a value indicating whether a previous page in the navigation history is available.
+ /// </summary>
+ [Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
+ public bool CanGoBack
+ {
+ get
+ {
+ return webView.backForwardList().backListCount() > 0;
+ }
+ }
+
+ /// <summary>
+ /// Gets a value indicating whether a subsequent page in the navigation history is available
+ /// </summary>
+ [Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
+ public bool CanGoForward
+ {
+ get
+ {
+ return webView.backForwardList().forwardListCount() > 0;
+ }
+ }
+
+ /// <summary>
+ /// Gets the current version.
+ /// </summary>
+ public readonly Version Version = Assembly.GetExecutingAssembly().GetName().Version;
#endregion
#region Constructors / initialization functions
+ /// <summary>
+ /// Initializes a new instance of the WebKitBrowser control.
+ /// </summary>
public WebKitBrowser()
{
InitializeComponent();
View
6 WebKitBrowser/WebKitBrowser.csproj
@@ -93,8 +93,10 @@
</Target>
-->
<PropertyGroup>
- <PostBuildEvent>xcopy /E /Y "$(SolutionDir)webkit\*" "$(SolutionDir)bin\$(ConfigurationName)"</PostBuildEvent>
+ <PostBuildEvent>echo WebKitBrowser &gt; temp_exclude_files.txt
+xcopy /E /Y "$(SolutionDir)webkit\*" "$(SolutionDir)bin\$(ConfigurationName)"
+del temp_exclude_files.txt</PostBuildEvent>
<PreBuildEvent>call "$(DevEnvDir)..\..\VC\vcvarsall.bat" x86
-tlbimp "$(SolutionDir)webkit\webkit.dll" /namespace:WebKit.Interop /out:"$(SolutionDir)webkit\WebKit.Interop.dll"</PreBuildEvent>
+tlbimp "$(SolutionDir)webkit\webkit.dll" /silent /namespace:WebKit.Interop /out:"$(SolutionDir)webkit\WebKit.Interop.dll"</PreBuildEvent>
</PropertyGroup>
</Project>
View
79 WebKitBrowser/WebKitBrowserEvents.cs
@@ -32,26 +32,79 @@
namespace WebKit
{
+ #region Event handler delegates
+
+ /// <summary>
+ /// Represents the method that will handle the WebKitBrowser.Error event.
+ /// </summary>
+ /// <param name="sender">The source of the event.</param>
+ /// <param name="args">A WebKitBrowserErrorEventArgs that contains the event data.</param>
public delegate void WebKitBrowserErrorEventHandler (object sender, WebKitBrowserErrorEventArgs args);
+
+ /// <summary>
+ /// Represents the method that will handle the WebKitBrowser.FileDownloadBegin event.
+ /// </summary>
+ /// <param name="sender">The source of the event.</param>
+ /// <param name="args">A FileDownloadBeginEventArgs that contains the event data.</param>
public delegate void FileDownloadBeginEventHandler (object sender, FileDownloadBeginEventArgs args);
+
+ /// <summary>
+ /// Represents the method that will handle the WebKitBrowser.NewWindowRequest event.
+ /// </summary>
+ /// <param name="sender">The source of the event.</param>
+ /// <param name="args">A NewWindowRequestEventArgs that contains the event data.</param>
public delegate void NewWindowRequestEventHandler (object sender, NewWindowRequestEventArgs args);
+
+ /// <summary>
+ /// Represents the method that will handle the WebKitBrowser.NewWindowCreated event.
+ /// </summary>
+ /// <param name="sender">The source of the event.</param>
+ /// <param name="args">A NewWindowCreatedEventArgs that contains the event data.</param>
public delegate void NewWindowCreatedEventHandler (object sender, NewWindowCreatedEventArgs args);
+ #endregion
+
+ #region EventArgs classes
+
+ /// <summary>
+ /// Provides data for the WebKitBrowser.Error event.
+ /// </summary>
public class WebKitBrowserErrorEventArgs : EventArgs
{
+ /// <summary>
+ /// Gets a description of the error that occurred.
+ /// </summary>
public string Description { get; private set; }
+ /// <summary>
+ /// Initializes a new instance of the WebKitBrowserErrorEventArgs class.
+ /// </summary>
+ /// <param name="Description">A description of the error that occurred.</param>
public WebKitBrowserErrorEventArgs(string Description)
{
this.Description = Description;
}
}
+ /// <summary>
+ /// Provides data for the WebKitBrowser.FileDownloadBegin event.
+ /// </summary>
public class FileDownloadBeginEventArgs : EventArgs
{
+ /// <summary>
+ /// Gets the WebKitDownload representing the download.
+ /// </summary>
public WebKitDownload Download { get; private set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether the download should be cancelled.
+ /// </summary>
public bool Cancel { get; set; }
+ /// <summary>
+ /// Initializes a new instance of the FileDownloadBeginEventArgs class.
+ /// </summary>
+ /// <param name="Download">A WebKitDownload representing the download.</param>
public FileDownloadBeginEventArgs(WebKitDownload Download)
{
this.Download = Download;
@@ -59,11 +112,25 @@ public FileDownloadBeginEventArgs(WebKitDownload Download)
}
}
+ /// <summary>
+ /// Provides data for the WebKitBrowser.NewWindowRequest event.
+ /// </summary>
public class NewWindowRequestEventArgs : EventArgs
{
+ /// <summary>
+ /// Gets or sets a value indicating whether opening the new window should be cancelled.
+ /// </summary>
public bool Cancel { get; set; }
+
+ /// <summary>
+ /// Gets the Url that the new window will attempt to navigate to.
+ /// </summary>
public string Url { get; private set; }
+ /// <summary>
+ /// Initializes a new instance of the NewWindowRequestEventArgs class.
+ /// </summary>
+ /// <param name="Url">The Url that the new window will attempt to navigate to.</param>
public NewWindowRequestEventArgs(string Url)
{
this.Cancel = false;
@@ -71,13 +138,25 @@ public NewWindowRequestEventArgs(string Url)
}
}
+ /// <summary>
+ /// Provides data for the WebKitBrowser.NewWindowCreated event.
+ /// </summary>
public class NewWindowCreatedEventArgs : EventArgs
{
+ /// <summary>
+ /// Gets the WebKitBrowser showing the contents of the new window.
+ /// </summary>
public WebKitBrowser WebKitBrowser { get; private set; }
+ /// <summary>
+ /// Initializes a new instance of the NewWindowCreatedEventArgs class.
+ /// </summary>
+ /// <param name="browser">The WebKitBrowser showing the contents of the new window.</param>
public NewWindowCreatedEventArgs(WebKitBrowser browser)
{
WebKitBrowser = browser;
}
}
+
+ #endregion
}
View
28 WebKitBrowser/WebKitDownload.cs
@@ -34,17 +34,42 @@
namespace WebKit
{
+ /// <summary>
+ /// Represents a file download.
+ /// </summary>
public class WebKitDownload
{
private WebDownload download;
+ #region FileDownload events
+
+ /// <summary>
+ /// Gets a value indicating whether the download was cancelled.
+ /// </summary>
public bool DidCancel { get; private set; }
+
+ /// <summary>
+ /// Gets the destination file path.
+ /// </summary>
public string FilePath { get; private set; }
+ /// <summary>
+ /// Occurs when file data transfer begins.
+ /// </summary>
public event DownloadStartedEvent DownloadStarted;
+
+ /// <summary>
+ /// Occurs when file data arrives.
+ /// </summary>
public event DownloadReceiveDataEvent DownloadReceiveData;
+
+ /// <summary>
+ /// Occurs when the file is downloaded successfully.
+ /// </summary>
public event DownloadFinishedEvent DownloadFinished;
+ #endregion
+
internal WebKitDownload(WebDownload download)
{
this.download = download;
@@ -88,6 +113,9 @@ internal void NotifyDidReceiveResponse(WebDownload download, WebURLResponse resp
DownloadStarted(this, new DownloadStartedEventArgs(response.suggestedFilename(), response.expectedContentLength()));
}
+ /// <summary>
+ /// Cancel the file download.
+ /// </summary>
public void Cancel()
{
DidCancel = true;
View
53 WebKitBrowser/WebKitDownloadEvents.cs
@@ -32,15 +32,53 @@
namespace WebKit
{
+ #region Event delegates
+
+ /// <summary>
+ /// Represents the method that will handle the WebKitDownload.DownloadStarted event.
+ /// </summary>
+ /// <param name="sender">The source of the event.</param>
+ /// <param name="args">A DownloadStartedEventArgs that contains the event data.</param>
public delegate void DownloadStartedEvent(object sender, DownloadStartedEventArgs args);
+
+ /// <summary>
+ /// Represents the method that will handle the WebKitDownload.DownloadReceiveData event.
+ /// </summary>
+ /// <param name="sender">The source of the event.</param>
+ /// <param name="args">A DownloadReceiveDataEventArgs that contains the event data.</param>
public delegate void DownloadReceiveDataEvent(object sender, DownloadReceiveDataEventArgs args);
+
+ /// <summary>
+ /// Represents the method that will handle the WebKitDownload.DownloadFinished event.
+ /// </summary>
+ /// <param name="sender">The source of the event.</param>
+ /// <param name="args">A DownloadFinishedEventArgs that contains the event data.</param>
public delegate void DownloadFinishedEvent(object sender, DownloadFinishedEventArgs args);
+ #endregion
+
+ #region EventArg classes
+
+ /// <summary>
+ /// Provides data for the WebKitDownload.DownloadStarted event.
+ /// </summary>
public class DownloadStartedEventArgs : EventArgs
{
+ /// <summary>
+ /// Gets the suggested name for the destination file.
+ /// </summary>
public string SuggestedFileName { get; private set; }
+
+ /// <summary>
+ /// Gets the file size in bytes.
+ /// </summary>
public long FileSize { get; private set; }
+ /// <summary>
+ /// Initializes a new instance of the DownloadStartedEventArgs class.
+ /// </summary>
+ /// <param name="SuggestedFileName">The suggested name for the destination file.</param>
+ /// <param name="FileSize">The file size in bytes.</param>
public DownloadStartedEventArgs(string SuggestedFileName, long FileSize)
{
this.SuggestedFileName = SuggestedFileName;
@@ -48,17 +86,32 @@ public DownloadStartedEventArgs(string SuggestedFileName, long FileSize)
}
}
+ /// <summary>
+ /// Provides data for the WebKitDownload.DownloadReceiveData event.
+ /// </summary>
public class DownloadReceiveDataEventArgs : EventArgs
{
+ /// <summary>
+ /// Gets the length of the data received in bytes.
+ /// </summary>
public uint Length { get; private set; }
+ /// <summary>
+ /// Initializes a new instance of the DownloadReceiveDataEventArgs class.
+ /// </summary>
+ /// <param name="Length">The length of the data received in bytes.</param>
public DownloadReceiveDataEventArgs(uint Length)
{
this.Length = Length;
}
}
+ /// <summary>
+ /// Provides data for the WebKitDownload.DownloadFinished event.
+ /// </summary>
public class DownloadFinishedEventArgs : EventArgs
{
}
+
+ #endregion
}
View
2  WebKitBrowser/WebUIDelegate.cs
@@ -37,7 +37,7 @@
namespace WebKit
{
- delegate void CreateWebViewWithRequestEvent(IWebURLRequest request, out WebView webView);
+ internal delegate void CreateWebViewWithRequestEvent(IWebURLRequest request, out WebView webView);
internal class WebUIDelegate : IWebUIDelegate
{
View
2  WebKitBrowserDoc.shfbproj
@@ -27,7 +27,7 @@
<Preliminary>True</Preliminary>
<CopyrightText>Copyright 2009 WebKit .NET Project</CopyrightText>
<FeedbackEMailAddress>charn.opcode%40gmail.com</FeedbackEMailAddress>
- <FeedbackEMailLinkText>Contact</FeedbackEMailLinkText>
+ <FeedbackEMailLinkText>Peter Nelson</FeedbackEMailLinkText>
</PropertyGroup>
<!-- There are no properties for these two groups but they need to appear in
order for Visual Studio to perform the build. -->
View
3  WebKitBrowserTest/MainForm.cs
@@ -124,6 +124,9 @@ void browser_Navigated(object sender, WebBrowserNavigatedEventArgs e)
void browser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
navigationBar.UrlText = currentPage.browser.Url.ToString();
+
+ navigationBar.CanGoBack = currentPage.browser.CanGoBack;
+ navigationBar.CanGoForward = currentPage.browser.CanGoForward;
}
private void UnregisterBrowserEvents()
View
2  WebKitBrowserTest/NavigationBar.Designer.cs
@@ -65,6 +65,7 @@ private void InitializeComponent()
//
// buttonBack
//
+ this.buttonBack.Enabled = false;
this.buttonBack.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonBack.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.buttonBack.Location = new System.Drawing.Point(3, 3);
@@ -77,6 +78,7 @@ private void InitializeComponent()
//
// buttonFwd
//
+ this.buttonFwd.Enabled = false;
this.buttonFwd.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonFwd.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));
this.buttonFwd.Location = new System.Drawing.Point(48, 3);
View
16 WebKitBrowserTest/NavigationBar.cs
@@ -57,6 +57,22 @@ public string UrlText
}
}
+ public bool CanGoBack
+ {
+ set
+ {
+ buttonBack.Enabled = value;
+ }
+ }
+
+ public bool CanGoForward
+ {
+ set
+ {
+ buttonFwd.Enabled = value;
+ }
+ }
+
public NavigationBar()
{
InitializeComponent();
Please sign in to comment.
Something went wrong with that request. Please try again.