/// // create the 'example' global object if it doesn't already exist. /// if (!example) /// example = {}; /// // create the 'example.test' global object if it doesn't already exist. /// if (!example.test) /// example.test = {}; /// (function() { /// // Define the function 'example.test.myfunction'. /// example.test.myfunction = function() { /// // Call CefV8Handler::Execute() with the function name 'MyFunction' /// // and no arguments. /// native function MyFunction(); /// return MyFunction(); /// }; /// // Define the getter function for parameter 'example.test.myparam'. /// example.test.__defineGetter__('myparam', function() { /// // Call CefV8Handler::Execute() with the function name 'GetMyParam' /// // and no arguments. /// native function GetMyParam(); /// return GetMyParam(); /// }); /// // Define the setter function for parameter 'example.test.myparam'. /// example.test.__defineSetter__('myparam', function(b) { /// // Call CefV8Handler::Execute() with the function name 'SetMyParam' /// // and a single argument. /// native function SetMyParam(); /// if(b) SetMyParam(b); /// }); /// /// // Extension definitions can also contain normal JavaScript variables /// // and functions. /// var myint = 0; /// example.test.increment = function() { /// myint += 1; /// return myint; /// }; /// })(); ////// /// Example usage in the page:
/// // Call the function. /// example.test.myfunction(); /// // Set the parameter. /// example.test.myparam = value; /// // Get the parameter. /// value = example.test.myparam; /// // Call another function. /// example.test.increment(); //////
/// # Comments start with a hash character and must be on their own line. /// /// [Config] /// ProductName=/// /// Config section: /// /// If "ProductName" and/or "ProductVersion" are set then the specified values /// will be included in the crash dump metadata. On macOS if these values are /// set to NULL then they will be retrieved from the Info.plist file using the /// "CFBundleName" and "CFBundleShortVersionString" keys respectively. /// /// If "AppName" is set on Windows then crash report information (metrics, /// database and dumps) will be stored locally on disk under the /// "C:\Users\[CurrentUser]\AppData\Local\[AppName]\User Data" folder. On other /// platforms the cef_settings_t.root_cache_path value will be used. /// /// If "ExternalHandler" is set on Windows then the specified exe will be /// launched as the crashpad-handler instead of re-launching the main process /// exe. The value can be an absolute path or a path relative to the main exe /// directory. On Linux the cef_settings_t.browser_subprocess_path value will be /// used. On macOS the existing subprocess app bundle will be used. /// /// If "BrowserCrashForwardingEnabled" is set to true (1) on macOS then browser /// process crashes will be forwarded to the system crash reporter. This results /// in the crash UI dialog being displayed to the user and crash reports being /// logged under "~/Library/Logs/DiagnosticReports". Forwarding of crash reports /// from non-browser processes and Debug builds is always disabled. /// /// If "ServerURL" is set then crashes will be uploaded as a multi-part POST /// request to the specified URL. Otherwise, reports will only be stored locally /// on disk. /// /// If "RateLimitEnabled" is set to true (1) then crash report uploads will be /// rate limited as follows: /// 1. If "MaxUploadsPerDay" is set to a positive value then at most the /// specified number of crashes will be uploaded in each 24 hour period. /// 2. If crash upload fails due to a network or server error then an /// incremental backoff delay up to a maximum of 24 hours will be applied /// for retries. /// 3. If a backoff delay is applied and "MaxUploadsPerDay" is > 1 then the /// "MaxUploadsPerDay" value will be reduced to 1 until the client is /// restarted. This helps to avoid an upload flood when the network or /// server error is resolved. /// Rate limiting is not supported on Linux. /// /// If "MaxDatabaseSizeInMb" is set to a positive value then crash report /// storage on disk will be limited to that size in megabytes. For example, on /// Windows each dump is about 600KB so a "MaxDatabaseSizeInMb" value of 20 /// equates to about 34 crash reports stored on disk. Not supported on Linux. /// /// If "MaxDatabaseAgeInDays" is set to a positive value then crash reports /// older than the specified age in days will be deleted. Not supported on /// Linux. /// /// CrashKeys section: /// /// A maximum of 26 crash keys of each size can be specified for use by the /// application. Crash key values will be truncated based on the specified size /// (small = 64 bytes, medium = 256 bytes, large = 1024 bytes). The value of /// crash keys can be set from any thread or process using the /// CefSetCrashKeyValue function. These key/value pairs will be sent to the /// crash server along with the crash dump file. ////// ProductVersion= /// AppName= /// ExternalHandler= /// BrowserCrashForwardingEnabled= /// ServerURL= /// RateLimitEnabled= /// MaxUploadsPerDay= /// MaxDatabaseSizeInMb= /// MaxDatabaseAgeInDays= /// /// [CrashKeys] /// my_key1= /// my_key2= ///