mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add plugin placeholder and policy support (issue #1708)
- Default plugin loading policy can be specified using the new `--plugin-policy=[allow|block|detect]` command-line flag. - Move CefRequestHandler::OnBeforePluginLoad to CefRequestContextHandler and add a new policy argument that supports different actions (allow, block, detect, disable) on a per-plugin-instance basis. - Add CefContextMenuHandler::RunContextMenu for providing a custom context menu implementation. - Add CefResourceBundleHandler::GetDataResourceForScale for returning scaled resources (issue #1272). - Add CefResourceBundle for retrieving resources from the resource bundle (*.pak) files loaded by CEF during startup or via the CefResourceBundleHandler. - Linux: Fix Debug build IO access warning with CefGetMimeType. - cef_unittests: Move the refcounting implementation from TestHandler to subclasses in order to support interface inheritance from subclasses.
This commit is contained in:
@@ -356,6 +356,52 @@ need to be translated for each locale.-->
|
||||
DirectWrite Font Cache Builder
|
||||
</message>
|
||||
</if>
|
||||
|
||||
<!-- Plugin placeholders. -->
|
||||
<message name="IDS_PLUGIN_HIDE" desc="The tooltip for hiding a blocked plugin, displayed in the click to play UI.">
|
||||
Hide this plugin
|
||||
</message>
|
||||
<message name="IDS_PLUGIN_NOT_SUPPORTED" desc="The placeholder text for an unsupported plugin.">
|
||||
This plugin is not supported.
|
||||
</message>
|
||||
<if expr="is_macosx">
|
||||
<message name="IDS_PLUGIN_BLOCKED" desc="The placeholder text for a blocked plugin.">
|
||||
Control-click to play <ph name="PLUGIN_NAME">$1<ex>Flash</ex></ph>.
|
||||
</message>
|
||||
</if>
|
||||
<if expr="not is_macosx">
|
||||
<message name="IDS_PLUGIN_BLOCKED" desc="The placeholder text for a blocked plugin.">
|
||||
Right-click to play <ph name="PLUGIN_NAME">$1<ex>Flash</ex></ph>.
|
||||
</message>
|
||||
</if>
|
||||
<message name="IDS_PLUGIN_NOT_SUPPORTED_METRO" desc="The placeholder text for a plugin that can't run in Windows Metro mode.">
|
||||
This plugin only works on the desktop.
|
||||
</message>
|
||||
<message name="IDS_PLUGIN_OUTDATED" desc="The placeholder text for an outdated plugin.">
|
||||
<ph name="PLUGIN_NAME">$1<ex>Flash</ex></ph> is out of date.
|
||||
</message>
|
||||
<message name="IDS_PLUGIN_NOT_AUTHORIZED" desc="The placeholder text for a plugin that requires user permission to run.">
|
||||
<ph name="PLUGIN_NAME">$1<ex>Java</ex></ph> needs your permission to run.
|
||||
</message>
|
||||
<message name="IDS_PLUGIN_BLOCKED_BY_POLICY" desc="The placeholder text for a plugin blocked by enterprise policy.">
|
||||
<ph name="PLUGIN_NAME">$1<ex>Flash</ex></ph> is not allowed.
|
||||
</message>
|
||||
<if expr="not use_titlecase">
|
||||
<message name="IDS_CONTENT_CONTEXT_PLUGIN_RUN" desc="The name of the Run command on the blocked plugin context menu">
|
||||
Run this plugin
|
||||
</message>
|
||||
<message name="IDS_CONTENT_CONTEXT_PLUGIN_HIDE" desc="The name of the Hide command on the blocked plugin context menu">
|
||||
Hide this plugin
|
||||
</message>
|
||||
</if>
|
||||
<if expr="use_titlecase">
|
||||
<message name="IDS_CONTENT_CONTEXT_PLUGIN_RUN" desc="In Title Case: The name of the Run command on the blocked plugin context menu">
|
||||
Run This Plugin
|
||||
</message>
|
||||
<message name="IDS_CONTENT_CONTEXT_PLUGIN_HIDE" desc="In Title Case: The name of the Hide command on the blocked plugin context menu">
|
||||
Hide This Plugin
|
||||
</message>
|
||||
</if>
|
||||
</messages>
|
||||
</release>
|
||||
</grit>
|
||||
|
Reference in New Issue
Block a user