Add some xml documentation (#1643)

* add some xml doc

* add missing drag xml doc

* xml doc corrections

* more xml doc
This commit is contained in:
dga711
2016-04-09 01:55:29 +02:00
committed by amaitland
parent 8b5d0df37b
commit 2cd49a2c60
21 changed files with 125 additions and 4 deletions
+5
View File
@@ -14,6 +14,11 @@ namespace CefSharp
public IBrowser Browser { get; set; }
public string Address { get; private set; }
/// <summary>
/// Called when a frame's address has changed.
/// </summary>
/// <param name="browser">the browser object</param>
/// <param name="address">the address</param>
public AddressChangedEventArgs(IBrowser browser, string address)
{
Browser = browser;
+3
View File
@@ -4,6 +4,9 @@
namespace CefSharp
{
/// <summary>
/// Cursor type values.
/// </summary>
public enum CefCursorType
{
Pointer = 0,
+3
View File
@@ -4,6 +4,9 @@
namespace CefSharp
{
/// <summary>
/// Supported JavaScript dialog types.
/// </summary>
public enum CefJsDialogType
{
Alert = 0,
+3
View File
@@ -4,6 +4,9 @@
namespace CefSharp
{
/// <summary>
/// Return value types.
/// </summary>
public enum CefReturnValue
{
/// <summary>
+3
View File
@@ -4,6 +4,9 @@
namespace CefSharp
{
/// <summary>
/// Represents the state of a setting.
/// </summary>
public enum CefState
{
/// <summary>
+11
View File
@@ -34,11 +34,22 @@ namespace CefSharp
return Handlers.TryRemove(url, out handler);
}
/// <summary>
/// Are there any <see cref="ResourceHandler"/>'s registered?
/// </summary>
public bool HasHandlers
{
get { return Handlers.Count > 0; }
}
/// <summary>
/// Called before a resource is loaded. To specify a handler for the resource return a <see cref="ResourceHandler"/> object
/// </summary>
/// <param name="browserControl">The browser UI control</param>
/// <param name="browser">the browser object</param>
/// <param name="frame">the frame object</param>
/// <param name="request">the request object - cannot be modified in this callback</param>
/// <returns>To allow the resource to load normally return NULL otherwise return an instance of ResourceHandler with a valid stream</returns>
public virtual IResourceHandler GetResourceHandler(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request)
{
try
+3
View File
@@ -7,6 +7,9 @@ using System;
namespace CefSharp
{
/// <summary>
/// "Verb" of a drag-and-drop operation as negotiated between the source and destination.
/// </summary>
[Flags]
public enum DragOperationsMask : uint
{
+3
View File
@@ -4,6 +4,9 @@
namespace CefSharp
{
/// <summary>
/// Representing a draggable region.
/// </summary>
public struct DraggableRegion
{
public int Width { get; private set; }
+16 -1
View File
@@ -32,16 +32,31 @@ namespace CefSharp
/// </summary>
void CloseDevTools();
/// <summary>
/// Call this method when the user drags the mouse into the web view (before calling <see cref="DragTargetDragOver"/>/<see cref="DragTargetDragLeave"/>/<see cref="DragTargetDragDrop"/>).
/// </summary>
void DragTargetDragEnter(IDragData dragData, MouseEvent mouseEvent, DragOperationsMask allowedOperations);
/// <summary>
/// Call this method each time the mouse is moved across the web view during a drag operation (after calling <see cref="DragTargetDragEnter"/> and before calling <see cref="DragTargetDragLeave"/>/<see cref="DragTargetDragDrop"/>).
/// This method is only used when window rendering is disabled.
/// </summary>
void DragTargetDragOver(MouseEvent mouseEvent, DragOperationsMask allowedOperations);
/// <summary>
/// Call this method when the user completes the drag operation by dropping the object onto the web view (after calling <see cref="DragTargetDragEnter"/>).
/// The object being dropped is <see cref="IDragData"/>, given as an argument to the previous <see cref="DragTargetDragEnter"/> call.
/// This method is only used when window rendering is disabled.
/// </summary>
void DragTargetDragDrop(MouseEvent mouseEvent);
void DragSourceEndedAt(int x, int y, DragOperationsMask op);
/// <summary>
/// Call this method when the user drags the mouse out of the web view (after calling <see cref="DragTargetDragEnter"/>). This method is only used when window rendering is disabled.
/// </summary>
void DragTargetDragLeave();
void DragSourceSystemDragEnded();
/// <summary>
+4
View File
@@ -4,6 +4,10 @@
namespace CefSharp
{
/// <summary>
/// Interface to implement for visiting cookie values.
/// The methods of this class will always be called on the IO thread.
/// </summary>
public interface ICookieVisitor
{
bool Visit(Cookie cookie, int count, int total, ref bool deleteCookie);
+3
View File
@@ -8,6 +8,9 @@ using System.IO;
namespace CefSharp
{
/// <summary>
/// Used to represent drag data.
/// </summary>
public interface IDragData : IDisposable
{
/// <summary>
-1
View File
@@ -22,7 +22,6 @@ namespace CefSharp
/// <returns>Return false for default drag handling behavior or true to cancel the drag event. </returns>
bool OnDragEnter(IWebBrowser browserControl, IBrowser browser, IDragData dragData, DragOperationsMask mask);
/// <summary>
/// Called whenever draggable regions for the browser window change.
/// These can be specified using the '-webkit-app-region: drag/no-drag' CSS-property.
+18
View File
@@ -8,11 +8,29 @@ namespace CefSharp
{
public interface IPostDataElement : IDisposable
{
/// <summary>
/// Gets or sets the file name.
/// </summary>
string File { get; set; }
/// <summary>
/// Gets if the object is read-only.
/// </summary>
bool IsReadOnly { get; }
/// <summary>
/// Remove all contents from the post data element.
/// </summary>
void SetToEmpty();
/// <summary>
/// Gets the type of this <see cref="IPostDataElement"/>.
/// </summary>
PostDataElementType Type { get; }
/// <summary>
/// Gets or sets the bytes of this <see cref="IPostDataElement"/>.
/// </summary>
byte[] Bytes { get; set; }
}
}
+3
View File
@@ -4,6 +4,9 @@
namespace CefSharp
{
/// <summary>
/// Implement this interface to receive string values asynchronously.
/// </summary>
public interface IStringVisitor
{
void Visit(string str);
+10
View File
@@ -20,6 +20,16 @@ namespace CefSharp
void SetAsChild(IntPtr parentHandle, int left, int top, int right, int bottom);
void SetAsPopup(IntPtr parentHandle, string windowName);
/// <summary>
/// Create the browser using windowless (off-screen) rendering.
/// No window will be created for the browser and all rendering will occur via the CefRenderHandler interface.
/// </summary>
/// <param name="parentHandle">Value will be used to identify monitor info and to act as the parent window for dialogs, context menus, etc.
/// If not provided then the main screen monitor will be used and some functionality that requires a parent window may not function correctly.</param>
/// <param name="transparent">If is true a transparent background color will be used (RGBA=0x00000000).
/// If is false the background will be white and opaque.
/// In order to create windowless browsers the CefSettings.windowless_rendering_enabled value must be set to true.</param>
void SetAsWindowless(IntPtr parentHandle, bool transparent);
}
}
+14
View File
@@ -4,10 +4,24 @@
namespace CefSharp
{
/// <summary>
/// Class representing a mouse event.
/// </summary>
public class MouseEvent
{
/// <summary>
/// X coordinate relative to the left side of the view.
/// </summary>
public int X { get; set; }
/// <summary>
/// Y coordinate relative to the top side of the view.
/// </summary>
public int Y { get; set; }
/// <summary>
/// Bit flags describing any pressed modifier keys.
/// </summary>
public CefEventFlags Modifiers { get; set; }
}
}
+3
View File
@@ -4,6 +4,9 @@
namespace CefSharp
{
/// <summary>
/// Paint element types.
/// </summary>
public enum PaintElementType
{
View = 0,
+3
View File
@@ -4,6 +4,9 @@
namespace CefSharp
{
/// <summary>
/// Post data elements may represent either bytes or files.
/// </summary>
public enum PostDataElementType
{
Empty = 0,
+1 -1
View File
@@ -12,7 +12,7 @@ namespace CefSharp
Always = 0,
/// <summary>
//// Use the default policy. This is OriginWhenCrossOrigin
/// Use the default policy. This is OriginWhenCrossOrigin
/// when the `--reduced-referrer-granularity` command-line flag is specified
/// and NoReferrerWhenDowngrade otherwise.
/// </summary>
+3
View File
@@ -6,6 +6,9 @@ using System;
namespace CefSharp
{
/// <summary>
/// Transition type for a request. Made up of one source value and 0 or more qualifiers.
/// </summary>
[Flags]
public enum TransitionType : uint
{
+13 -1
View File
@@ -5,16 +5,28 @@
namespace CefSharp
{
/// <summary>
/// CefWebPluginInfo
/// Information about a specific web plugin.
/// </summary>
public class WebPluginInfo
{
/// <summary>
/// Gets or sets the plugin name (i.e. Flash).
/// </summary>
public string Name { get; set; }
/// <summary>
/// Gets or sets tge description of the plugin from the version information.
/// </summary>
public string Description { get; set; }
/// <summary>
/// Gets or sets the plugin file path (DLL/bundle/library).
/// </summary>
public string Path { get; set; }
/// <summary>
/// Gets or sets the version of the plugin (may be OS-specific).
/// </summary>
public string Version { get; set; }
}
}