Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 3.3578.1860.g36610bd
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefResourceBundleHandler

CefBaseRefCounted
   |
   +--CefResourceBundleHandler

   in cef_resource_bundle_handler.h

class CefResourceBundleHandler
extends 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.


Inner Classes, Typedefs, and Enums
typedef CefResourceBundleHandler::ScaleFactor
          
 
Method Summary
 virtual bool GetDataResource( int resource_id, void*& data, size_t& data_size )= 0
          Called to retrieve data for the specified scale independent |resource_id|.
 virtual bool GetDataResourceForScale( int resource_id, CefResourceBundleHandler::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|.
 virtual bool GetLocalizedString( int string_id, CefString& string )= 0
          Called to retrieve a localized translation for the specified |string_id|.
   
Methods inherited from class CefBaseRefCounted
AddRef, Release, HasOneRef, HasAtLeastOneRef
 

Method Detail

GetDataResource

public virtual bool GetDataResource( int resource_id, void*& data, size_t& data_size )= 0;
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

public virtual bool GetDataResourceForScale( int resource_id, CefResourceBundleHandler::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|. 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

public virtual bool GetLocalizedString( int string_id, CefString& string )= 0;
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.

 Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 3.3578.1860.g36610bd
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Chromium Embedded Framework (CEF) Copyright © 2016 Marshall A. Greenblatt