You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CefSharp.Core.Runtime/Cef.h
+53
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,37 @@ namespace CefSharp
125
125
}
126
126
}
127
127
128
+
/// <summary>
129
+
/// API version that will be compiled client-side. The experimental (unversioned)
130
+
/// API is selected by default. Clients can set the CEF_API_VERSION value in
131
+
/// their project configuration to configure an explicit API version. Unlike
132
+
/// the experimental API, explicit API versions are back/forward compatible with
133
+
/// a specific range of CEF versions.
134
+
/// </summary>
135
+
static property int ApiVersion
136
+
{
137
+
intget()
138
+
{
139
+
return CEF_API_VERSION;
140
+
}
141
+
}
142
+
143
+
/// <summary>
144
+
/// API hashes for the selected CEF_API_VERSION. API hashes are created for
145
+
/// each version by analyzing CEF header files for C API type definitions. The
146
+
/// hash value will change when header files are modified in a way that may
147
+
/// cause binary incompatibility with other builds.
148
+
/// </summary>
149
+
static property String^ ApiHashPlatform
150
+
{
151
+
String^ get()
152
+
{
153
+
auto hash = CEF_API_HASH_PLATFORM;
154
+
155
+
return gcnew String(hash);
156
+
}
157
+
}
158
+
128
159
/// <summary>Gets a value that indicates the Chromium version currently being used.</summary>
129
160
/// <value>The Chromium version.</value>
130
161
static property String^ ChromiumVersion
@@ -149,6 +180,28 @@ namespace CefSharp
149
180
}
150
181
}
151
182
183
+
/// <summary>
184
+
/// Configures the CEF API version and returns API hashes for the libcef
185
+
/// library. The entry parameter describes which hash value will be returned:
186
+
///
187
+
/// 0 - CEF_API_HASH_PLATFORM
188
+
/// 1 - CEF_API_HASH_UNIVERSAL (deprecated, same as CEF_API_HASH_PLATFORM)
189
+
/// 2 - CEF_COMMIT_HASH (from cef_version.h)
190
+
///
191
+
/// </summary>
192
+
/// <param name="version">parameter should be CEF_API_VERSION and any changes to this value will be ignored after the first call to this method.</param>
193
+
/// <param name="entry">The entry parameter describes which hash value will be returned:</param>
194
+
/// <returns>
195
+
/// returns API hashes for the libcef library.
196
+
/// The returned string is owned by the library and should not be freed.
197
+
/// </returns>
198
+
static String^ ApiHash(int version, int entry)
199
+
{
200
+
auto response = cef_api_hash(version, entry);
201
+
202
+
return gcnew String(response);
203
+
}
204
+
152
205
/// <summary>
153
206
/// Parse the specified url into its component parts.
154
207
/// Uses a GURL to parse the Url. GURL is Google's URL parsing library.
Copy file name to clipboardexpand all lines: CefSharp.Core/Cef.cs
+58
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,30 @@ public static string CefVersion
81
81
get{returnCore.Cef.CefVersion;}
82
82
}
83
83
84
+
/// <summary>
85
+
/// API version that will be compiled client-side. The experimental (unversioned)
86
+
/// API is selected by default. Clients can set the CEF_API_VERSION value in
87
+
/// their project configuration to configure an explicit API version. Unlike
88
+
/// the experimental API, explicit API versions are back/forward compatible with
89
+
/// a specific range of CEF versions.
90
+
/// </summary>
91
+
publicstaticintApiVersion
92
+
{
93
+
get{returnCore.Cef.ApiVersion;}
94
+
}
95
+
96
+
97
+
/// <summary>
98
+
/// API hashes for the selected CEF_API_VERSION. API hashes are created for
99
+
/// each version by analyzing CEF header files for C API type definitions. The
100
+
/// hash value will change when header files are modified in a way that may
101
+
/// cause binary incompatibility with other builds.
102
+
/// </summary>
103
+
publicstaticstringApiHashPlatform
104
+
{
105
+
get{returnCore.Cef.ApiHashPlatform;}
106
+
}
107
+
84
108
/// <summary>Gets a value that indicates the Chromium version currently being used.</summary>
85
109
/// <value>The Chromium version.</value>
86
110
publicstaticstringChromiumVersion
@@ -97,6 +121,40 @@ public static string CefCommitHash
97
121
get{returnCore.Cef.CefCommitHash;}
98
122
}
99
123
124
+
/// <summary>
125
+
/// Configures the CEF API version and returns API hashes for the libcef
126
+
/// library. Defaults to CEF_API_HASH_PLATFORM
127
+
/// </summary>
128
+
/// <param name="version">parameter should be CEF_API_VERSION and any changes to this value will be ignored after the first call to this method.</param>
129
+
/// <returns>
130
+
/// returns API hashes for the libcef library.
131
+
/// The returned string is owned by the library and should not be freed.
132
+
/// </returns>
133
+
publicstaticstringApiHash(intversion)
134
+
{
135
+
returnApiHash(version,0);
136
+
}
137
+
138
+
/// <summary>
139
+
/// Configures the CEF API version and returns API hashes for the libcef
140
+
/// library. The entry parameter describes which hash value will be returned:
141
+
///
142
+
/// 0 - CEF_API_HASH_PLATFORM
143
+
/// 1 - CEF_API_HASH_UNIVERSAL (deprecated, same as CEF_API_HASH_PLATFORM)
144
+
/// 2 - CEF_COMMIT_HASH (from cef_version.h)
145
+
///
146
+
/// </summary>
147
+
/// <param name="version">parameter should be CEF_API_VERSION and any changes to this value will be ignored after the first call to this method.</param>
148
+
/// <param name="entry">The entry parameter describes which hash value will be returned:</param>
149
+
/// <returns>
150
+
/// returns API hashes for the libcef library.
151
+
/// The returned string is owned by the library and should not be freed.
152
+
/// </returns>
153
+
publicstaticstringApiHash(intversion,intentry)
154
+
{
155
+
returnCore.Cef.ApiHash(version,entry);
156
+
}
157
+
100
158
/// <summary>
101
159
/// Parse the specified url into its component parts.
102
160
/// Uses a GURL to parse the Url. GURL is Google's URL parsing library.
0 commit comments