Chromium Embedded Framework (CEF)  109.0.1+gcd5e37a+chromium-109.0.5414.8
CefResourceBundleHandler Class Referenceabstract

Class used to implement a custom resource bundle interface. More...

#include "include/cef_resource_bundle_handler.h"

Inheritance diagram for CefResourceBundleHandler:
CefBaseRefCounted

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...
 
- Public Member Functions inherited from CefBaseRefCounted
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

- Protected Member Functions inherited from CefBaseRefCounted
virtual ~CefBaseRefCounted ()
 

Detailed Description

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.

Member Typedef Documentation

◆ ScaleFactor

Member Function Documentation

◆ GetDataResource()

virtual bool CefResourceBundleHandler::GetDataResource ( int  resource_id,
void *&  data,
size_t &  data_size 
)
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. Include cef_pack_resources.h for a listing of valid resource ID values.

◆ GetDataResourceForScale()

virtual bool CefResourceBundleHandler::GetDataResourceForScale ( int  resource_id,
ScaleFactor  scale_factor,
void *&  data,
size_t &  data_size 
)
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. Include cef_pack_resources.h for a listing of valid resource ID values.

◆ GetLocalizedString()

virtual bool CefResourceBundleHandler::GetLocalizedString ( int  string_id,
CefString string 
)
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. Include cef_pack_strings.h for a listing of valid string ID values.


The documentation for this class was generated from the following file: