Skip to content

Commit b661fbd

Browse files
committed
Xml Doc - Improvements and fixes
- Some classes are now excluded - Many minor fixes should hopefully reduce the number of errors reported by Sandcastle - Some of the xml doc is generated by Atomineer, usually in cases where CEF lacks documentation
1 parent b1d1279 commit b661fbd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1281
-264
lines changed

CefSharp.Core/AbstractCefSettings.h

Lines changed: 105 additions & 128 deletions
Large diffs are not rendered by default.

CefSharp.Core/BrowserSettings.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ namespace CefSharp
4848
_ownsPointer = true;
4949
}
5050

51+
/// <summary>
52+
/// Finalizer.
53+
/// </summary>
5154
!BrowserSettings()
5255
{
5356
if (_ownsPointer)
@@ -59,6 +62,9 @@ namespace CefSharp
5962
_isDisposed = true;
6063
}
6164

65+
/// <summary>
66+
/// Destructor.
67+
/// </summary>
6268
~BrowserSettings()
6369
{
6470
this->!BrowserSettings();
@@ -392,6 +398,9 @@ namespace CefSharp
392398
bool get() { return _isDisposed; }
393399
}
394400

401+
/// <summary>
402+
/// True if framework created.
403+
/// </summary>
395404
virtual property bool FrameworkCreated
396405
{
397406
bool get() { return _frameworkCreated; }

CefSharp.Core/Cef.h

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ using namespace msclr::interop;
3333

3434
namespace CefSharp
3535
{
36+
/// <summary>
37+
/// Global CEF methods are exposed through this class. e.g. CefInitalize maps to Cef.Initialize
38+
/// CEF API Doc https://magpcss.org/ceforum/apidocs3/projects/(default)/(_globals).html
39+
/// This class cannot be inherited.
40+
/// </summary>
3641
public ref class Cef sealed
3742
{
3843
private:
@@ -688,7 +693,7 @@ namespace CefSharp
688693
/// The client application is responsible for downloading an appropriate
689694
/// platform-specific CDM binary distribution from Google, extracting the
690695
/// contents, and building the required directory structure on the local machine.
691-
/// The <see cref="CefSharp.IBrowserHost.StartDownload"/> method class can be used
696+
/// The <see cref="CefSharp::IBrowserHost::StartDownload"/> method class can be used
692697
/// to implement this functionality in CefSharp. Contact Google via
693698
/// https://www.widevine.com/contact.html for details on CDM download.
694699
///
@@ -702,7 +707,7 @@ namespace CefSharp
702707
///
703708
/// If any of these files are missing or if the manifest file has incorrect
704709
/// contents the registration will fail and callback will receive an ErrorCode
705-
/// value of <see cref="CefSharp.CdmRegistrationErrorCode.IncorrectContents"/>.
710+
/// value of <see cref="CefSharp::CdmRegistrationErrorCode::IncorrectContents"/>.
706711
///
707712
/// The manifest.json file must contain the following keys:
708713
/// A. "os": Supported OS (e.g. "mac", "win" or "linux").
@@ -715,13 +720,13 @@ namespace CefSharp
715720
///
716721
/// A through E are used to verify compatibility with the current Chromium
717722
/// version. If the CDM is not compatible the registration will fail and
718-
/// callback will receive an ErrorCode value of <see cref="CdmRegistrationErrorCode.Incompatible"/>.
723+
/// callback will receive an ErrorCode value of <see cref="CdmRegistrationErrorCode::Incompatible"/>.
719724
///
720725
/// If registration is not supported at the time that Cef.RegisterWidevineCdm() is called then callback
721-
/// will receive an ErrorCode value of <see cref="CdmRegistrationErrorCode.NotSupported"/>.
726+
/// will receive an ErrorCode value of <see cref="CdmRegistrationErrorCode::NotSupported"/>.
722727
/// </summary>
723728
/// <param name="path"> is a directory that contains the Widevine CDM files</param>
724-
/// <param name="callback">optional callback - <see cref="IRegisterCdmCallback.OnRegistrationCompletecallback"/>
729+
/// <param name="callback">optional callback - <see cref="IRegisterCdmCallback::OnRegistrationCompletecallback"/>
725730
/// will be executed asynchronously once registration is complete</param>
726731
static void RegisterWidevineCdm(String^ path, [Optional] IRegisterCdmCallback^ callback)
727732
{

CefSharp.Core/CookieManager.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace CefSharp
1313
{
14+
/// <exclude />
1415
public ref class CookieManager : public ICookieManager
1516
{
1617
private:

CefSharp.Core/ManagedCefBrowserAdapter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ using namespace CefSharp::ModelBinding;
2626

2727
namespace CefSharp
2828
{
29+
/// <exclude />
2930
public ref class ManagedCefBrowserAdapter : public IBrowserAdapter
3031
{
3132
MCefRefPtr<ClientAdapter> _clientAdapter;

CefSharp.Core/NativeMethodWrapper.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
namespace CefSharp
1010
{
11+
/// <exclude />
1112
public ref class NativeMethodWrapper sealed
1213
{
1314
public:

CefSharp.Core/PopupFeatures.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,17 @@ namespace CefSharp
1111
/// <summary>
1212
/// Class representing popup window features.
1313
/// </summary>
14+
/// <exclude />
1415
public ref class PopupFeatures : IPopupFeatures
1516
{
1617
private:
1718
const CefPopupFeatures* _popupFeatures;
1819

1920
public:
21+
/// <summary>
22+
/// Constructor.
23+
/// </summary>
24+
/// <param name="popupFeatures">The popup features.</param>
2025
PopupFeatures(const CefPopupFeatures* popupFeatures)
2126
{
2227
_popupFeatures = popupFeatures;
@@ -98,4 +103,4 @@ namespace CefSharp
98103
void set(List<String^>^ value) { _popupFeatures->dialog = value; }
99104
}*/
100105
};
101-
}
106+
}

CefSharp.Core/PostData.h

Lines changed: 54 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ using namespace System::Collections::ObjectModel;
1717

1818
namespace CefSharp
1919
{
20+
/// <summary>
21+
/// Form Post Data
22+
/// </summary>
23+
/// <seealso cref="T:IPostData"/>
2024
public ref class PostData : public IPostData, public CefWrapper
2125
{
2226
MCefRefPtr<CefPostData> _postData;
@@ -29,11 +33,17 @@ namespace CefSharp
2933

3034
}
3135

36+
/// <summary>
37+
/// Finalizer.
38+
/// </summary>
3239
!PostData()
3340
{
3441
_postData = nullptr;
3542
}
3643

44+
/// <summary>
45+
/// Destructor.
46+
/// </summary>
3747
~PostData()
3848
{
3949
this->!PostData();
@@ -52,12 +62,30 @@ namespace CefSharp
5262
_disposed = true;
5363
}
5464

65+
/// <summary>
66+
/// Throw exception if Readonly
67+
/// </summary>
68+
/// <exception cref="Exception">Thrown when an exception error condition occurs.</exception>
69+
void ThrowIfReadOnly()
70+
{
71+
if (IsReadOnly)
72+
{
73+
throw gcnew Exception(gcnew String(L"This IPostDataWrapper is readonly and cannot be modified."));
74+
}
75+
}
76+
5577
public:
78+
/// <summary>
79+
/// Default constructor.
80+
/// </summary>
5681
PostData()
5782
{
5883
_postData = CefPostData::Create();
5984
}
6085

86+
/// <summary>
87+
/// Returns true if this object is read-only.
88+
/// </summary>
6189
virtual property bool IsReadOnly
6290
{
6391
bool get()
@@ -68,6 +96,9 @@ namespace CefSharp
6896
}
6997
}
7098

99+
/// <summary>
100+
/// Retrieve the post data elements.
101+
/// </summary>
71102
virtual property IList<IPostDataElement^>^ Elements
72103
{
73104
IList<IPostDataElement^>^ get()
@@ -99,6 +130,11 @@ namespace CefSharp
99130
}
100131
}
101132

133+
/// <summary>
134+
/// Add the specified <see cref="IPostDataElement"/>.
135+
/// </summary>
136+
/// <param name="element">element to be added.</param>
137+
/// <returns>Returns true if the add succeeds.</returns>
102138
virtual bool AddElement(IPostDataElement^ element)
103139
{
104140
ThrowIfDisposed();
@@ -121,6 +157,11 @@ namespace CefSharp
121157
return _postData->AddElement(elementWrapper);
122158
}
123159

160+
/// <summary>
161+
/// Remove the specified <see cref="IPostDataElement"/>.
162+
/// </summary>
163+
/// <param name="element">element to be removed.</param>
164+
/// <returns> Returns true if the add succeeds.</returns>
124165
virtual bool RemoveElement(IPostDataElement^ element)
125166
{
126167
ThrowIfDisposed();
@@ -142,6 +183,9 @@ namespace CefSharp
142183
return _postData->RemoveElement(elementWrapper);
143184
}
144185

186+
/// <summary>
187+
/// Remove all existing post data elements.
188+
/// </summary>
145189
virtual void RemoveElements()
146190
{
147191
ThrowIfDisposed();
@@ -151,13 +195,23 @@ namespace CefSharp
151195
_postData->RemoveElements();
152196
}
153197

198+
/// <summary>
199+
/// Create a new <see cref="IPostDataElement"/> instance
200+
/// </summary>
201+
/// <returns>PostDataElement</returns>
154202
virtual IPostDataElement^ CreatePostDataElement()
155203
{
156204
auto element = CefPostDataElement::Create();
157205

158206
return gcnew PostDataElement(element);
159207
}
160208

209+
/// <summary>
210+
/// Returns true if the underlying POST data includes elements that are not
211+
/// represented by this IPostData object (for example, multi-part file upload
212+
/// data). Modifying IPostData objects with excluded elements may result in
213+
/// the request failing.
214+
/// </summary>
161215
virtual property bool HasExcludedElements
162216
{
163217
bool get()
@@ -168,14 +222,6 @@ namespace CefSharp
168222
}
169223
}
170224

171-
void ThrowIfReadOnly()
172-
{
173-
if (IsReadOnly)
174-
{
175-
throw gcnew Exception(gcnew String(L"This IPostDataWrapper is readonly and cannot be modified."));
176-
}
177-
}
178-
179225
operator CefRefPtr<CefPostData>()
180226
{
181227
if (this == nullptr)

CefSharp/Callback/IJavascriptCallback.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public interface IJavascriptCallback : IDisposable
2727
/// <summary>
2828
/// Execute the javascript callback
2929
/// </summary>
30+
/// <param name="timeout">timeout</param>
3031
/// <param name="parms">param array of objects</param>
3132
/// <returns>JavascriptResponse</returns>
3233
Task<JavascriptResponse> ExecuteWithTimeoutAsync(TimeSpan? timeout, params object[] parms);

CefSharp/Callback/IResourceReadCallback.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
namespace CefSharp.Callback
88
{
99
/// <summary>
10-
/// Callback for asynchronous continuation of <see cref="IResourceHandler.Read(System.IO.Stream, int, out int, IResourceReadCallback)"/>.
10+
/// Callback for asynchronous continuation of <see cref="IResourceHandler.Read"/>.
1111
/// </summary>
1212
public interface IResourceReadCallback : IDisposable
1313
{
1414
/// <summary>
15-
/// Callback for asynchronous continuation of <see cref="IResourceHandler.Read(System.IO.Stream, int, out int, IResourceReadCallback)"/>. If bytesRead == 0
15+
/// Callback for asynchronous continuation of <see cref="IResourceHandler.Read"/>. If bytesRead == 0
1616
/// the response will be considered complete.
1717
/// </summary>
1818
/// <param name="bytesRead">
1919
/// If bytesRead == 0 the response will be considered complete.
20-
/// If bytesRead &gt; 0 then <see cref="IResourceHandler.Read(System.IO.Stream, int, out int, IResourceReadCallback)"/> will be called again until the request is complete (based on either the
20+
/// If bytesRead &gt; 0 then <see cref="IResourceHandler.Read"/> will be called again until the request is complete (based on either the
2121
/// result or the expected content length). If bytesRead &lt; 0 then the
2222
/// request will fail and the bytesRead value will be treated as the error
2323
/// code.

0 commit comments

Comments
 (0)