Confirmed users, Bureaucrats and Sysops emeriti
1,680
edits
(Created page with "= Status = Under consideration. = Contributors = * Last modified: March 28, 2011 * Authors: Josh Aas (Mozilla Corporation) = Overview = This specification will allow plugin...") |
|||
Line 14: | Line 14: | ||
= Specification = | = Specification = | ||
A new variable, <code>NPPVpluginUsesDOMForCursorBool</code>, will be added to control whether or not the plugin wishes to control the cursor via the DOM. If the browser does not support DOM cursors for plugins then an error (<code>NPERR_GENERIC_ERROR</code> recommended) should be returned from <code>NPN_SetValue</code>. | A new variable, <code>NPPVpluginUsesDOMForCursorBool</code> (value = 22), will be added to control whether or not the plugin wishes to control the cursor via the DOM. If the browser does not support DOM cursors for plugins then an error (<code>NPERR_GENERIC_ERROR</code> recommended) should be returned from <code>NPN_SetValue</code>. | ||
If the plugin is able to successfully set <code>NPPVpluginUsesDOMForCursorBool</code> to <code>true</code> then the following code can be used to set the cursor via the DOM: | If the plugin is able to successfully set <code>NPPVpluginUsesDOMForCursorBool</code> to <code>true</code> then the following code can be used to set the cursor via the DOM: |