Chromium Embedded Framework (CEF)  135.0.1+gd336310+chromium-135.0.7049.3
cef_id_mappers.h File Reference

Macros

#define CEF_DECLARE_PACK_RESOURCE_ID(name)    static const int name = cef_id_for_pack_resource_name(#name)
 Helper for declaring a static IDR variable. More...
 
#define CEF_DECLARE_PACK_STRING_ID(name)    static const int name = cef_id_for_pack_string_name(#name)
 Helper for declaring a static IDS variable. More...
 
#define CEF_DECLARE_COMMAND_ID(name)    static const int name = cef_id_for_command_id_name(#name)
 Helper for declaring a static IDC variable. More...
 

Functions

CEF_EXPORT int cef_id_for_pack_resource_name (const char *name)
 Returns the numeric ID value for an IDR |name| from cef_pack_resources.h or -1 if |name| is unrecognized by the current CEF/Chromium build. More...
 
CEF_EXPORT int cef_id_for_pack_string_name (const char *name)
 Returns the numeric ID value for an IDS |name| from cef_pack_strings.h or -1 if |name| is unrecognized by the current CEF/Chromium build. More...
 
CEF_EXPORT int cef_id_for_command_id_name (const char *name)
 Returns the numeric ID value for an IDC |name| from cef_command_ids.h or -1 if |name| is unrecognized by the current CEF/Chromium build. More...
 

Macro Definition Documentation

◆ CEF_DECLARE_COMMAND_ID

#define CEF_DECLARE_COMMAND_ID (   name)     static const int name = cef_id_for_command_id_name(#name)

Helper for declaring a static IDC variable.

◆ CEF_DECLARE_PACK_RESOURCE_ID

#define CEF_DECLARE_PACK_RESOURCE_ID (   name)     static const int name = cef_id_for_pack_resource_name(#name)

Helper for declaring a static IDR variable.

◆ CEF_DECLARE_PACK_STRING_ID

#define CEF_DECLARE_PACK_STRING_ID (   name)     static const int name = cef_id_for_pack_string_name(#name)

Helper for declaring a static IDS variable.

Function Documentation

◆ cef_id_for_command_id_name()

CEF_EXPORT int cef_id_for_command_id_name ( const char *  name)

Returns the numeric ID value for an IDC |name| from cef_command_ids.h or -1 if |name| is unrecognized by the current CEF/Chromium build.

This function provides version-safe mapping of command IDC names to version-specific numeric ID values. Numeric ID values are likely to change across CEF/Chromium versions but names generally remain the same.

◆ cef_id_for_pack_resource_name()

CEF_EXPORT int cef_id_for_pack_resource_name ( const char *  name)

Returns the numeric ID value for an IDR |name| from cef_pack_resources.h or -1 if |name| is unrecognized by the current CEF/Chromium build.

This function provides version-safe mapping of resource IDR names to version-specific numeric ID values. Numeric ID values are likely to change across CEF/Chromium versions but names generally remain the same.

◆ cef_id_for_pack_string_name()

CEF_EXPORT int cef_id_for_pack_string_name ( const char *  name)

Returns the numeric ID value for an IDS |name| from cef_pack_strings.h or -1 if |name| is unrecognized by the current CEF/Chromium build.

This function provides version-safe mapping of string IDS names to version-specific numeric ID values. Numeric ID values are likely to change across CEF/Chromium versions but names generally remain the same.