mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update include/ comments to Doxygen formatting (see issue #3384)
See related guidelines in the issue.
This commit is contained in:
@ -40,14 +40,14 @@ extern "C" {
|
||||
#endif // __cplusplus
|
||||
|
||||
///
|
||||
// Load the CEF library at the specified |path|. Returns true (1) on
|
||||
// success and false (0) on failure.
|
||||
/// Load the CEF library at the specified |path|. Returns true (1) on
|
||||
/// success and false (0) on failure.
|
||||
///
|
||||
int cef_load_library(const char* path);
|
||||
|
||||
///
|
||||
// Unload the CEF library that was previously loaded. Returns true (1)
|
||||
// on success and false (0) on failure.
|
||||
/// Unload the CEF library that was previously loaded. Returns true (1)
|
||||
/// on success and false (0) on failure.
|
||||
///
|
||||
int cef_unload_library(void);
|
||||
|
||||
@ -57,42 +57,46 @@ int cef_unload_library(void);
|
||||
#if defined(OS_MAC)
|
||||
|
||||
///
|
||||
// Scoped helper for loading and unloading the CEF framework library at
|
||||
// runtime from the expected location in the app bundle. Loading at runtime
|
||||
// instead of linking directly is a requirement of the macOS sandbox
|
||||
// implementation.
|
||||
//
|
||||
// Example usage in the main process:
|
||||
//
|
||||
// #include "include/wrapper/cef_library_loader.h"
|
||||
//
|
||||
// int main(int argc, char* argv[]) {
|
||||
// // Dynamically load the CEF framework library.
|
||||
// CefScopedLibraryLoader library_loader;
|
||||
// if (!library_loader.LoadInMain())
|
||||
// return 1;
|
||||
//
|
||||
// // Continue with CEF initialization...
|
||||
// }
|
||||
//
|
||||
// Example usage in the helper process:
|
||||
//
|
||||
// #include "include/cef_sandbox_mac.h"
|
||||
// #include "include/wrapper/cef_library_loader.h"
|
||||
//
|
||||
// int main(int argc, char* argv[]) {
|
||||
// // Initialize the macOS sandbox for this helper process.
|
||||
// CefScopedSandboxContext sandbox_context;
|
||||
// if (!sandbox_context.Initialize(argc, argv))
|
||||
// return 1;
|
||||
//
|
||||
// // Dynamically load the CEF framework library.
|
||||
// CefScopedLibraryLoader library_loader;
|
||||
// if (!library_loader.LoadInHelper())
|
||||
// return 1;
|
||||
//
|
||||
// // Continue with CEF initialization...
|
||||
// }
|
||||
/// Scoped helper for loading and unloading the CEF framework library at
|
||||
/// runtime from the expected location in the app bundle. Loading at runtime
|
||||
/// instead of linking directly is a requirement of the macOS sandbox
|
||||
/// implementation.
|
||||
///
|
||||
/// Example usage in the main process:
|
||||
///
|
||||
/// <pre>
|
||||
/// #include "include/wrapper/cef_library_loader.h"
|
||||
///
|
||||
/// int main(int argc, char* argv[]) {
|
||||
/// // Dynamically load the CEF framework library.
|
||||
/// CefScopedLibraryLoader library_loader;
|
||||
/// if (!library_loader.LoadInMain())
|
||||
/// return 1;
|
||||
///
|
||||
/// // Continue with CEF initialization...
|
||||
/// }
|
||||
/// </pre>
|
||||
///
|
||||
/// Example usage in the helper process:
|
||||
///
|
||||
/// <pre>
|
||||
/// #include "include/cef_sandbox_mac.h"
|
||||
/// #include "include/wrapper/cef_library_loader.h"
|
||||
///
|
||||
/// int main(int argc, char* argv[]) {
|
||||
/// // Initialize the macOS sandbox for this helper process.
|
||||
/// CefScopedSandboxContext sandbox_context;
|
||||
/// if (!sandbox_context.Initialize(argc, argv))
|
||||
/// return 1;
|
||||
///
|
||||
/// // Dynamically load the CEF framework library.
|
||||
/// CefScopedLibraryLoader library_loader;
|
||||
/// if (!library_loader.LoadInHelper())
|
||||
/// return 1;
|
||||
///
|
||||
/// // Continue with CEF initialization...
|
||||
/// }
|
||||
/// </pre>
|
||||
///
|
||||
class CefScopedLibraryLoader {
|
||||
public:
|
||||
@ -104,16 +108,16 @@ class CefScopedLibraryLoader {
|
||||
~CefScopedLibraryLoader();
|
||||
|
||||
///
|
||||
// Load the CEF framework in the main process from the expected app
|
||||
// bundle location relative to the executable. Returns true if the
|
||||
// load succeeds.
|
||||
/// Load the CEF framework in the main process from the expected app
|
||||
/// bundle location relative to the executable. Returns true if the
|
||||
/// load succeeds.
|
||||
///
|
||||
bool LoadInMain() { return Load(false); }
|
||||
|
||||
///
|
||||
// Load the CEF framework in the helper process from the expected app
|
||||
// bundle location relative to the executable. Returns true if the
|
||||
// load succeeds.
|
||||
/// Load the CEF framework in the helper process from the expected app
|
||||
/// bundle location relative to the executable. Returns true if the
|
||||
/// load succeeds.
|
||||
///
|
||||
bool LoadInHelper() { return Load(true); }
|
||||
|
||||
|
Reference in New Issue
Block a user