Tag 13401 API version

This commit is contained in:
Marshall Greenblatt
2025-03-10 11:52:56 -04:00
parent 549e8fe05c
commit cda47aaff4
5 changed files with 23 additions and 17 deletions

View File

@ -35,8 +35,14 @@
"linux": "ea2106b5bc012c25d735521e0c7fb719d433ea4a", "linux": "ea2106b5bc012c25d735521e0c7fb719d433ea4a",
"mac": "ba5ab71db4f9447f19eb7b1943024981c88064dd", "mac": "ba5ab71db4f9447f19eb7b1943024981c88064dd",
"windows": "6ab74b90e88b7397aab9911baac5484f12466eef" "windows": "6ab74b90e88b7397aab9911baac5484f12466eef"
},
"13401": {
"comment": "Added March 10, 2025.",
"linux": "b14bee2c0fd250da67faea421f620b58e5dea9a2",
"mac": "b54732b528bc2669481ec0cf17c7b97b033720b9",
"windows": "751255204f006b8b883a8baf552a2da792f8aa44"
} }
}, },
"last": "13400", "last": "13401",
"min": "13300" "min": "13300"
} }

View File

@ -66,13 +66,13 @@ class CefPreferenceRegistrar : public CefBaseScoped {
CefRefPtr<CefValue> default_value) = 0; CefRefPtr<CefValue> default_value) = 0;
}; };
#if CEF_API_ADDED(CEF_NEXT) #if CEF_API_ADDED(13401)
/// ///
/// Implemented by the client to observe preference changes and registered via /// Implemented by the client to observe preference changes and registered via
/// CefPreferenceManager::AddPreferenceObserver. The methods of this class will /// CefPreferenceManager::AddPreferenceObserver. The methods of this class will
/// be called on the browser process UI thread. /// be called on the browser process UI thread.
/// ///
/*--cef(source=client,added=next)--*/ /*--cef(source=client,added=13401)--*/
class CefPreferenceObserver : public virtual CefBaseRefCounted { class CefPreferenceObserver : public virtual CefBaseRefCounted {
public: public:
/// ///
@ -92,7 +92,7 @@ class CefPreferenceObserver : public virtual CefBaseRefCounted {
/*--cef(source=library,no_debugct_check)--*/ /*--cef(source=library,no_debugct_check)--*/
class CefPreferenceManager : public virtual CefBaseRefCounted { class CefPreferenceManager : public virtual CefBaseRefCounted {
public: public:
#if CEF_API_ADDED(CEF_NEXT) #if CEF_API_ADDED(13401)
/// ///
/// Returns the current Chrome Variations configuration (combination of field /// Returns the current Chrome Variations configuration (combination of field
/// trials and chrome://flags) as equivalent command-line switches /// trials and chrome://flags) as equivalent command-line switches
@ -104,7 +104,7 @@ class CefPreferenceManager : public virtual CefBaseRefCounted {
/// `disable_fieldtrial_testing_config=true` GN flag). This method must be /// `disable_fieldtrial_testing_config=true` GN flag). This method must be
/// called on the browser process UI thread. /// called on the browser process UI thread.
/// ///
/*--cef(added=next)--*/ /*--cef(added=13401)--*/
static void GetChromeVariationsAsSwitches(std::vector<CefString>& switches); static void GetChromeVariationsAsSwitches(std::vector<CefString>& switches);
/// ///
@ -118,7 +118,7 @@ class CefPreferenceManager : public virtual CefBaseRefCounted {
/// `disable_fieldtrial_testing_config=true` GN flag). This method must be /// `disable_fieldtrial_testing_config=true` GN flag). This method must be
/// called on the browser process UI thread. /// called on the browser process UI thread.
/// ///
/*--cef(added=next)--*/ /*--cef(added=13401)--*/
static void GetChromeVariationsAsStrings(std::vector<CefString>& strings); static void GetChromeVariationsAsStrings(std::vector<CefString>& strings);
#endif #endif
@ -179,7 +179,7 @@ class CefPreferenceManager : public virtual CefBaseRefCounted {
CefRefPtr<CefValue> value, CefRefPtr<CefValue> value,
CefString& error) = 0; CefString& error) = 0;
#if CEF_API_ADDED(CEF_NEXT) #if CEF_API_ADDED(13401)
/// ///
/// Add an observer for preference changes. |name| is the name of the /// Add an observer for preference changes. |name| is the name of the
/// preference to observe. If |name| is empty then all preferences will /// preference to observe. If |name| is empty then all preferences will
@ -188,7 +188,7 @@ class CefPreferenceManager : public virtual CefBaseRefCounted {
/// registered until the returned Registration object is destroyed. This /// registered until the returned Registration object is destroyed. This
/// method must be called on the browser process UI thread. /// method must be called on the browser process UI thread.
/// ///
/*--cef(optional_param=name,added=next)--*/ /*--cef(optional_param=name,added=13401)--*/
virtual CefRefPtr<CefRegistration> AddPreferenceObserver( virtual CefRefPtr<CefRegistration> AddPreferenceObserver(
const CefString& name, const CefString& name,
CefRefPtr<CefPreferenceObserver> observer) = 0; CefRefPtr<CefPreferenceObserver> observer) = 0;

View File

@ -67,13 +67,13 @@ class CefResolveCallback : public virtual CefBaseRefCounted {
const std::vector<CefString>& resolved_ips) = 0; const std::vector<CefString>& resolved_ips) = 0;
}; };
#if CEF_API_ADDED(CEF_NEXT) #if CEF_API_ADDED(13401)
/// ///
/// Implemented by the client to observe content and website setting changes and /// Implemented by the client to observe content and website setting changes and
/// registered via CefRequestContext::AddSettingObserver. The methods of this /// registered via CefRequestContext::AddSettingObserver. The methods of this
/// class will be called on the browser process UI thread. /// class will be called on the browser process UI thread.
/// ///
/*--cef(source=client,added=next)--*/ /*--cef(source=client,added=13401)--*/
class CefSettingObserver : public virtual CefBaseRefCounted { class CefSettingObserver : public virtual CefBaseRefCounted {
public: public:
/// ///
@ -314,13 +314,13 @@ class CefRequestContext : public CefPreferenceManager {
cef_content_setting_types_t content_type, cef_content_setting_types_t content_type,
cef_content_setting_values_t value) = 0; cef_content_setting_values_t value) = 0;
#if CEF_API_ADDED(CEF_NEXT) #if CEF_API_ADDED(13401)
/// ///
/// Add an observer for content and website setting changes. The observer will /// Add an observer for content and website setting changes. The observer will
/// remain registered until the returned Registration object is destroyed. /// remain registered until the returned Registration object is destroyed.
/// This method must be called on the browser process UI thread. /// This method must be called on the browser process UI thread.
/// ///
/*--cef(added=next)--*/ /*--cef(added=13401)--*/
virtual CefRefPtr<CefRegistration> AddSettingObserver( virtual CefRefPtr<CefRegistration> AddSettingObserver(
CefRefPtr<CefSettingObserver> observer) = 0; CefRefPtr<CefSettingObserver> observer) = 0;
#endif #endif

View File

@ -62,7 +62,7 @@ CefRefPtr<CefRegistration>
CefGlobalPreferenceManagerImpl::AddPreferenceObserver( CefGlobalPreferenceManagerImpl::AddPreferenceObserver(
const CefString& name, const CefString& name,
CefRefPtr<CefPreferenceObserver> observer) { CefRefPtr<CefPreferenceObserver> observer) {
CEF_API_REQUIRE_ADDED(CEF_NEXT); CEF_API_REQUIRE_ADDED(13401);
CEF_REQUIRE_UIT_RETURN(nullptr); CEF_REQUIRE_UIT_RETURN(nullptr);
return CefContext::Get()->GetPrefRegistrar()->AddObserver(name, observer); return CefContext::Get()->GetPrefRegistrar()->AddObserver(name, observer);
} }
@ -70,7 +70,7 @@ CefGlobalPreferenceManagerImpl::AddPreferenceObserver(
// static // static
void CefPreferenceManager::GetChromeVariationsAsSwitches( void CefPreferenceManager::GetChromeVariationsAsSwitches(
std::vector<CefString>& switches) { std::vector<CefString>& switches) {
CEF_API_REQUIRE_ADDED(CEF_NEXT); CEF_API_REQUIRE_ADDED(13401);
// Verify that the context is in a valid state. // Verify that the context is in a valid state.
if (!CONTEXT_STATE_VALID()) { if (!CONTEXT_STATE_VALID()) {
@ -98,7 +98,7 @@ void CefPreferenceManager::GetChromeVariationsAsSwitches(
// static // static
void CefPreferenceManager::GetChromeVariationsAsStrings( void CefPreferenceManager::GetChromeVariationsAsStrings(
std::vector<CefString>& strings) { std::vector<CefString>& strings) {
CEF_API_REQUIRE_ADDED(CEF_NEXT); CEF_API_REQUIRE_ADDED(13401);
// Verify that the context is in a valid state. // Verify that the context is in a valid state.
if (!CONTEXT_STATE_VALID()) { if (!CONTEXT_STATE_VALID()) {

View File

@ -464,7 +464,7 @@ bool CefRequestContextImpl::SetPreference(const CefString& name,
CefRefPtr<CefRegistration> CefRequestContextImpl::AddPreferenceObserver( CefRefPtr<CefRegistration> CefRequestContextImpl::AddPreferenceObserver(
const CefString& name, const CefString& name,
CefRefPtr<CefPreferenceObserver> observer) { CefRefPtr<CefPreferenceObserver> observer) {
CEF_API_REQUIRE_ADDED(CEF_NEXT); CEF_API_REQUIRE_ADDED(13401);
if (!VerifyBrowserContext()) { if (!VerifyBrowserContext()) {
return nullptr; return nullptr;
} }
@ -608,7 +608,7 @@ void CefRequestContextImpl::SetContentSetting(
CefRefPtr<CefRegistration> CefRequestContextImpl::AddSettingObserver( CefRefPtr<CefRegistration> CefRequestContextImpl::AddSettingObserver(
CefRefPtr<CefSettingObserver> observer) { CefRefPtr<CefSettingObserver> observer) {
CEF_API_REQUIRE_ADDED(CEF_NEXT); CEF_API_REQUIRE_ADDED(13401);
if (!VerifyBrowserContext()) { if (!VerifyBrowserContext()) {
return nullptr; return nullptr;
} }