diff --git a/CefSharp/AddressChangedEventArgs.cs b/CefSharp/AddressChangedEventArgs.cs index d5ddded01..6b6e72750 100644 --- a/CefSharp/AddressChangedEventArgs.cs +++ b/CefSharp/AddressChangedEventArgs.cs @@ -14,6 +14,11 @@ namespace CefSharp public IBrowser Browser { get; set; } public string Address { get; private set; } + /// + /// Called when a frame's address has changed. + /// + /// the browser object + /// the address public AddressChangedEventArgs(IBrowser browser, string address) { Browser = browser; diff --git a/CefSharp/CEFCursorType.cs b/CefSharp/CEFCursorType.cs index 767914505..449b37623 100644 --- a/CefSharp/CEFCursorType.cs +++ b/CefSharp/CEFCursorType.cs @@ -4,6 +4,9 @@ namespace CefSharp { + /// + /// Cursor type values. + /// public enum CefCursorType { Pointer = 0, diff --git a/CefSharp/CefJsDialogType.cs b/CefSharp/CefJsDialogType.cs index 33449554c..f2eb811b9 100644 --- a/CefSharp/CefJsDialogType.cs +++ b/CefSharp/CefJsDialogType.cs @@ -4,6 +4,9 @@ namespace CefSharp { + /// + /// Supported JavaScript dialog types. + /// public enum CefJsDialogType { Alert = 0, diff --git a/CefSharp/CefReturnValue.cs b/CefSharp/CefReturnValue.cs index b8a68e871..63540a0e7 100644 --- a/CefSharp/CefReturnValue.cs +++ b/CefSharp/CefReturnValue.cs @@ -4,6 +4,9 @@ namespace CefSharp { + /// + /// Return value types. + /// public enum CefReturnValue { /// diff --git a/CefSharp/CefState.cs b/CefSharp/CefState.cs index 067cd3350..21e455840 100644 --- a/CefSharp/CefState.cs +++ b/CefSharp/CefState.cs @@ -4,6 +4,9 @@ namespace CefSharp { + /// + /// Represents the state of a setting. + /// public enum CefState { /// diff --git a/CefSharp/DefaultResourceHandlerFactory.cs b/CefSharp/DefaultResourceHandlerFactory.cs index 280eed6ef..224712c18 100644 --- a/CefSharp/DefaultResourceHandlerFactory.cs +++ b/CefSharp/DefaultResourceHandlerFactory.cs @@ -34,11 +34,22 @@ namespace CefSharp return Handlers.TryRemove(url, out handler); } + /// + /// Are there any 's registered? + /// public bool HasHandlers { get { return Handlers.Count > 0; } } + /// + /// Called before a resource is loaded. To specify a handler for the resource return a object + /// + /// The browser UI control + /// the browser object + /// the frame object + /// the request object - cannot be modified in this callback + /// To allow the resource to load normally return NULL otherwise return an instance of ResourceHandler with a valid stream public virtual IResourceHandler GetResourceHandler(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request) { try diff --git a/CefSharp/DragOperationsMask.cs b/CefSharp/DragOperationsMask.cs index cff3ce701..1b83ec03b 100644 --- a/CefSharp/DragOperationsMask.cs +++ b/CefSharp/DragOperationsMask.cs @@ -7,6 +7,9 @@ using System; namespace CefSharp { + /// + /// "Verb" of a drag-and-drop operation as negotiated between the source and destination. + /// [Flags] public enum DragOperationsMask : uint { diff --git a/CefSharp/DraggableRegion.cs b/CefSharp/DraggableRegion.cs index 2d9fb0a87..b97d0ee3c 100644 --- a/CefSharp/DraggableRegion.cs +++ b/CefSharp/DraggableRegion.cs @@ -4,6 +4,9 @@ namespace CefSharp { + /// + /// Representing a draggable region. + /// public struct DraggableRegion { public int Width { get; private set; } diff --git a/CefSharp/IBrowserHost.cs b/CefSharp/IBrowserHost.cs index 810f1831a..9085746ab 100644 --- a/CefSharp/IBrowserHost.cs +++ b/CefSharp/IBrowserHost.cs @@ -32,16 +32,31 @@ namespace CefSharp /// void CloseDevTools(); + /// + /// Call this method when the user drags the mouse into the web view (before calling //). + /// void DragTargetDragEnter(IDragData dragData, MouseEvent mouseEvent, DragOperationsMask allowedOperations); + /// + /// Call this method each time the mouse is moved across the web view during a drag operation (after calling and before calling /). + /// This method is only used when window rendering is disabled. + /// void DragTargetDragOver(MouseEvent mouseEvent, DragOperationsMask allowedOperations); + /// + /// Call this method when the user completes the drag operation by dropping the object onto the web view (after calling ). + /// The object being dropped is , given as an argument to the previous call. + /// This method is only used when window rendering is disabled. + /// void DragTargetDragDrop(MouseEvent mouseEvent); void DragSourceEndedAt(int x, int y, DragOperationsMask op); + /// + /// Call this method when the user drags the mouse out of the web view (after calling ). This method is only used when window rendering is disabled. + /// void DragTargetDragLeave(); - + void DragSourceSystemDragEnded(); /// diff --git a/CefSharp/ICookieVisitor.cs b/CefSharp/ICookieVisitor.cs index 254392086..e8e3c5680 100644 --- a/CefSharp/ICookieVisitor.cs +++ b/CefSharp/ICookieVisitor.cs @@ -4,6 +4,10 @@ namespace CefSharp { + /// + /// Interface to implement for visiting cookie values. + /// The methods of this class will always be called on the IO thread. + /// public interface ICookieVisitor { bool Visit(Cookie cookie, int count, int total, ref bool deleteCookie); diff --git a/CefSharp/IDragData.cs b/CefSharp/IDragData.cs index 1dadd14c9..11f4ad269 100644 --- a/CefSharp/IDragData.cs +++ b/CefSharp/IDragData.cs @@ -8,6 +8,9 @@ using System.IO; namespace CefSharp { + /// + /// Used to represent drag data. + /// public interface IDragData : IDisposable { /// diff --git a/CefSharp/IDragHandler.cs b/CefSharp/IDragHandler.cs index 427ad5195..7a8137b3e 100644 --- a/CefSharp/IDragHandler.cs +++ b/CefSharp/IDragHandler.cs @@ -22,7 +22,6 @@ namespace CefSharp /// Return false for default drag handling behavior or true to cancel the drag event. bool OnDragEnter(IWebBrowser browserControl, IBrowser browser, IDragData dragData, DragOperationsMask mask); - /// /// Called whenever draggable regions for the browser window change. /// These can be specified using the '-webkit-app-region: drag/no-drag' CSS-property. diff --git a/CefSharp/IPostDataElement.cs b/CefSharp/IPostDataElement.cs index d5c5db80d..acd581492 100644 --- a/CefSharp/IPostDataElement.cs +++ b/CefSharp/IPostDataElement.cs @@ -8,11 +8,29 @@ namespace CefSharp { public interface IPostDataElement : IDisposable { + /// + /// Gets or sets the file name. + /// string File { get; set; } + + /// + /// Gets if the object is read-only. + /// bool IsReadOnly { get; } + + /// + /// Remove all contents from the post data element. + /// void SetToEmpty(); + + /// + /// Gets the type of this . + /// PostDataElementType Type { get; } + /// + /// Gets or sets the bytes of this . + /// byte[] Bytes { get; set; } } } diff --git a/CefSharp/IStringVisitor.cs b/CefSharp/IStringVisitor.cs index c56f0bc03..6a6f8cf34 100644 --- a/CefSharp/IStringVisitor.cs +++ b/CefSharp/IStringVisitor.cs @@ -4,6 +4,9 @@ namespace CefSharp { + /// + /// Implement this interface to receive string values asynchronously. + /// public interface IStringVisitor { void Visit(string str); diff --git a/CefSharp/IWindowInfo.cs b/CefSharp/IWindowInfo.cs index 4f72b1fcb..78d965c40 100644 --- a/CefSharp/IWindowInfo.cs +++ b/CefSharp/IWindowInfo.cs @@ -20,6 +20,16 @@ namespace CefSharp void SetAsChild(IntPtr parentHandle, int left, int top, int right, int bottom); void SetAsPopup(IntPtr parentHandle, string windowName); + + /// + /// 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. + /// + /// 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. + /// 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. void SetAsWindowless(IntPtr parentHandle, bool transparent); } } diff --git a/CefSharp/MouseEvent.cs b/CefSharp/MouseEvent.cs index db7ff1ab3..485f8ff50 100644 --- a/CefSharp/MouseEvent.cs +++ b/CefSharp/MouseEvent.cs @@ -4,10 +4,24 @@ namespace CefSharp { + /// + /// Class representing a mouse event. + /// public class MouseEvent { + /// + /// X coordinate relative to the left side of the view. + /// public int X { get; set; } + + /// + /// Y coordinate relative to the top side of the view. + /// public int Y { get; set; } + + /// + /// Bit flags describing any pressed modifier keys. + /// public CefEventFlags Modifiers { get; set; } } } diff --git a/CefSharp/PaintElementType.cs b/CefSharp/PaintElementType.cs index 402b736c3..74d2a5314 100644 --- a/CefSharp/PaintElementType.cs +++ b/CefSharp/PaintElementType.cs @@ -4,6 +4,9 @@ namespace CefSharp { + /// + /// Paint element types. + /// public enum PaintElementType { View = 0, diff --git a/CefSharp/PostDataElementType.cs b/CefSharp/PostDataElementType.cs index 4e3776f8a..41c8f3989 100644 --- a/CefSharp/PostDataElementType.cs +++ b/CefSharp/PostDataElementType.cs @@ -4,6 +4,9 @@ namespace CefSharp { + /// + /// Post data elements may represent either bytes or files. + /// public enum PostDataElementType { Empty = 0, diff --git a/CefSharp/ReferrerPolicy.cs b/CefSharp/ReferrerPolicy.cs index 4d598a3bb..0dc6d4beb 100644 --- a/CefSharp/ReferrerPolicy.cs +++ b/CefSharp/ReferrerPolicy.cs @@ -12,7 +12,7 @@ namespace CefSharp Always = 0, /// - //// 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. /// diff --git a/CefSharp/TransitionType.cs b/CefSharp/TransitionType.cs index 7e9df01ba..aff6400ba 100644 --- a/CefSharp/TransitionType.cs +++ b/CefSharp/TransitionType.cs @@ -6,6 +6,9 @@ using System; namespace CefSharp { + /// + /// Transition type for a request. Made up of one source value and 0 or more qualifiers. + /// [Flags] public enum TransitionType : uint { diff --git a/CefSharp/WebPluginInfo.cs b/CefSharp/WebPluginInfo.cs index df9787869..b461366f4 100644 --- a/CefSharp/WebPluginInfo.cs +++ b/CefSharp/WebPluginInfo.cs @@ -5,16 +5,28 @@ namespace CefSharp { /// - /// CefWebPluginInfo + /// Information about a specific web plugin. /// public class WebPluginInfo { + /// + /// Gets or sets the plugin name (i.e. Flash). + /// public string Name { get; set; } + /// + /// Gets or sets tge description of the plugin from the version information. + /// public string Description { get; set; } + /// + /// Gets or sets the plugin file path (DLL/bundle/library). + /// public string Path { get; set; } + /// + /// Gets or sets the version of the plugin (may be OS-specific). + /// public string Version { get; set; } } }