Lines Matching refs:plugin

43  *     template expects each plugin's format to match the following structure to
54 * identifier: 'plugin-name',
57 * path: '/blahblah/blahblah/MyCrappyPlugin.plugin',
60 * description: 'My crappy plugin',
72 * path: '/tmp/MyFirst.plugin',
75 * description: 'My first plugin',
84 * path: '/foobar/baz/YourGreatPlugin.plugin',
87 * description: 'Your great plugin',
96 * path: '/foobiz/bar/HisGreatPlugin.plugin',
99 * description: 'His great plugin',
126 var links = document.getElementsByClassName('disable-plugin-link');
133 links = document.getElementsByClassName('enable-plugin-link');
167 var labels = document.getElementsByClassName('plugin-details-label');
194 * @param {HTMLElement} node The HTML element for the plugin being changed.
195 * @param {boolean} enable Whether to enable or disable the plugin.
196 * @param {boolean} isGroup True if we're enabling/disabling a plugin group,
197 * rather than a single plugin.
200 // Tell the C++ PluginsDOMHandler to enable/disable the plugin.
230 * @param {Object} plugin An object containing the information about a plugin.
232 * @return {boolean} Whether the plugin's version should be displayed.
234 function shouldDisplayPluginVersion(plugin) {
235 return !!plugin.version && plugin.version != '0';
239 * @param {Object} plugin An object containing the information about a plugin.
241 * @return {boolean} Whether the plugin's description should be displayed.
243 function shouldDisplayPluginDescription(plugin) {
246 return plugin.description &&
247 plugin.description != plugin.name &&
248 plugin.description != plugin.version &&
249 plugin.description != 'Version ' + plugin.version &&
250 plugin.description != plugin.name + ' ' + plugin.version;
254 * @param {Object} plugin An object containing the information about a plugin.
256 * @return {boolean} Whether the plugin is enabled.
258 function isPluginEnabled(plugin) {
259 return plugin.enabledMode == 'enabledByUser' ||
260 plugin.enabledMode == 'enabledByPolicy';
263 // Unfortunately, we don't have notifications for plugin (list) status changes