Chromium Code Reviews
DescriptionAdd support for dynamically registering and loading plugins built as part of the application. For instance, consider a medical viewing application where the complete user interface is an embedded browser window. An internal plugin is embedded in the browser window for viewing medical scan images. The plugin depends on the medical viewing application (cannot function independently), and so we compile both the viewing application and the plugin into a single executable.
Example C++ usage:
PluginVersionInfo info;
info.path = L"medical_viewing_plugin";
info.product_name = L"Medical Viewing Plugin";
info.file_description = L"Medical viewing application plugin";
info.file_version = L"1, 0, 0, 1";
info.mime_types = L"application/x-medical-viewing-plugin";
info.file_extensions = L"*";
info.np_getentrypoints = my_np_getentrypoints;
info.np_initialize = my_np_initialize;
info.np_shutdown = my_np_shutdown;
// Register the plugin information
NPAPI::PluginLib::RegisterInternalPlugin(info);
// Load the plugin so that it's available to the client
NPAPI::PluginList::Singleton()->LoadPlugin(info.path);
Example HTML usage:
<embed type="application/x-medical-viewing-plugin" width=600 height=600>
Patch Set 1 #
Total comments: 4
Patch Set 2 : '' #
Messages
Total messages: 12 (0 generated)
|
|||||||||||||||||||||||||||||||||||||