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

@ -66,13 +66,13 @@ class CefPreferenceRegistrar : public CefBaseScoped {
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
/// CefPreferenceManager::AddPreferenceObserver. The methods of this class will
/// be called on the browser process UI thread.
///
/*--cef(source=client,added=next)--*/
/*--cef(source=client,added=13401)--*/
class CefPreferenceObserver : public virtual CefBaseRefCounted {
public:
///
@ -92,7 +92,7 @@ class CefPreferenceObserver : public virtual CefBaseRefCounted {
/*--cef(source=library,no_debugct_check)--*/
class CefPreferenceManager : public virtual CefBaseRefCounted {
public:
#if CEF_API_ADDED(CEF_NEXT)
#if CEF_API_ADDED(13401)
///
/// Returns the current Chrome Variations configuration (combination of field
/// 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
/// called on the browser process UI thread.
///
/*--cef(added=next)--*/
/*--cef(added=13401)--*/
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
/// called on the browser process UI thread.
///
/*--cef(added=next)--*/
/*--cef(added=13401)--*/
static void GetChromeVariationsAsStrings(std::vector<CefString>& strings);
#endif
@ -179,7 +179,7 @@ class CefPreferenceManager : public virtual CefBaseRefCounted {
CefRefPtr<CefValue> value,
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
/// 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
/// 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(
const CefString& name,
CefRefPtr<CefPreferenceObserver> observer) = 0;