(default)
Class CefResourceBundleHandler
CefBase
|
+--CefResourceBundleHandler
in cef_resource_bundle_handler.h
- class CefResourceBundleHandler
- extends CefBase
Class used to implement a custom resource bundle interface. The methods of
this class may be called on multiple threads.
Method Summary |
virtual bool |
GetDataResource( int resource_id, void*& data, size_t& data_size )= 0
Called to retrieve data for the resource specified by |resource_id|. |
virtual bool |
GetLocalizedString( int message_id, CefString& string )= 0
Called to retrieve a localized translation for the string specified by
|message_id|. |
GetDataResource
public virtual bool GetDataResource( int resource_id, void*& data, size_t& data_size )= 0;
- Called to retrieve data for the resource specified by |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.
WARNING: Be cautious when implementing this method. ID values are auto-
generated when CEF is built and may change between versions. Existing ID
values can be discovered by searching for *_resources.h in the
"obj/global_intermediate" build output directory.
GetLocalizedString
public virtual bool GetLocalizedString( int message_id, CefString& string )= 0;
- Called to retrieve a localized translation for the string specified by
|message_id|. To provide the translation set |string| to the translation
string and return true. To use the default translation return false.
WARNING: Be cautious when implementing this method. ID values are auto-
generated when CEF is built and may change between versions. Existing ID
values can be discovered by searching for *_strings.h in the
"obj/global_intermediate" build output directory.
Chromium Embedded Framework (CEF) Copyright © 2011 Marshall A. Greenblatt