Chromium Embedded Framework (CEF)
135.0.1+gd336310+chromium-135.0.7049.3
|
Class used to implement a custom resource bundle interface. More...
#include "include/cef_resource_bundle_handler.h"
Public Types | |
typedef cef_scale_factor_t | ScaleFactor |
Public Member Functions | |
virtual bool | GetLocalizedString (int string_id, CefString &string)=0 |
Called to retrieve a localized translation for the specified |string_id|. More... | |
virtual bool | GetDataResource (int resource_id, void *&data, size_t &data_size)=0 |
Called to retrieve data for the specified scale independent |resource_id|. More... | |
virtual bool | GetDataResourceForScale (int resource_id, ScaleFactor scale_factor, void *&data, size_t &data_size)=0 |
Called to retrieve data for the specified |resource_id| nearest the scale factor |scale_factor|. More... | |
![]() | |
virtual void | AddRef () const =0 |
Called to increment the reference count for the object. More... | |
virtual bool | Release () const =0 |
Called to decrement the reference count for the object. More... | |
virtual bool | HasOneRef () const =0 |
Returns true if the reference count is 1. More... | |
virtual bool | HasAtLeastOneRef () const =0 |
Returns true if the reference count is at least 1. More... | |
Additional Inherited Members | |
![]() | |
virtual | ~CefBaseRefCounted () |
Class used to implement a custom resource bundle interface.
See CefSettings for additional options related to resource bundle loading. The methods of this class may be called on multiple threads.
|
pure virtual |
Called to retrieve data for the specified scale independent |resource_id|.
To provide the resource data set |data| and |data_size| to the data pointer and size respectively and return true. To use the default resource data return false. The resource data will not be copied and must remain resident in memory. Use the cef_id_for_pack_resource_name() function for version-safe mapping of resource IDR names from cef_pack_resources.h to version-specific numerical |resource_id| values.
|
pure virtual |
Called to retrieve data for the specified |resource_id| nearest the scale factor |scale_factor|.
To provide the resource data set |data| and |data_size| to the data pointer and size respectively and return true. To use the default resource data return false. The resource data will not be copied and must remain resident in memory. Use the cef_id_for_pack_resource_name() function for version-safe mapping of resource IDR names from cef_pack_resources.h to version-specific numerical |resource_id| values.
|
pure virtual |
Called to retrieve a localized translation for the specified |string_id|.
To provide the translation set |string| to the translation string and return true. To use the default translation return false. Use the cef_id_for_pack_string_name() function for version-safe mapping of string IDS names from cef_pack_strings.h to version-specific numerical |string_id| values.