|
Chromium Embedded Framework (CEF)
141.0.5+gfe26daa+chromium-141.0.7390.55
|
Class used for retrieving resources from the resource bundle (*.pak) files loaded by CEF during startup or via the CefResourceBundleHandler returned from CefApp::GetResourceBundleHandler. More...
#include "include/cef_resource_bundle.h"
Public Types | |
| typedef cef_scale_factor_t | ScaleFactor |
Public Member Functions | |
| virtual CefString | GetLocalizedString (int string_id)=0 |
| Returns the localized string for the specified |string_id| or an empty string if the value is not found. More... | |
| virtual CefRefPtr< CefBinaryValue > | GetDataResource (int resource_id)=0 |
| Returns a CefBinaryValue containing the decompressed contents of the specified scale independent |resource_id| or NULL if not found. More... | |
| virtual CefRefPtr< CefBinaryValue > | GetDataResourceForScale (int resource_id, ScaleFactor scale_factor)=0 |
| Returns a CefBinaryValue containing the decompressed contents of the specified |resource_id| nearest the scale factor |scale_factor| or NULL if not found. 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... | |
Static Public Member Functions | |
| static CefRefPtr< CefResourceBundle > | GetGlobal () |
| Returns the global resource bundle instance. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from CefBaseRefCounted | |
| virtual | ~CefBaseRefCounted () |
Class used for retrieving resources from the resource bundle (*.pak) files loaded by CEF during startup or via the CefResourceBundleHandler returned from CefApp::GetResourceBundleHandler.
See CefSettings for additional options related to resource bundle loading. The methods of this class may be called on any thread unless otherwise indicated.
|
pure virtual |
Returns a CefBinaryValue containing the decompressed contents of the specified scale independent |resource_id| or NULL if not found.
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 |
Returns a CefBinaryValue containing the decompressed contents of the specified |resource_id| nearest the scale factor |scale_factor| or NULL if not found.
Use a |scale_factor| value of SCALE_FACTOR_NONE for scale independent resources or call GetDataResource instead. 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.
|
static |
Returns the global resource bundle instance.
|
pure virtual |
Returns the localized string for the specified |string_id| or an empty string if the value is not found.
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.