NPAPI:BrowserZoomLevelQuery: Difference between revisions

Re-order description to emphasize the important points first. Also NPN_SetWindow -> NPP_SetWindow
(Change variable name again)
(Re-order description to emphasize the important points first. Also NPN_SetWindow -> NPP_SetWindow)
Line 22: Line 22:
</pre>
</pre>


This can be retrieved via NPN_GetValue, and will return a double
This value represents the current CSS zoom level of the browser. It will be sent to plugins via NPP_SetValue when the value changes. It can also be retrieved via NPN_GetValue. Since changing CSS zoom levels updates the window properties, this value can be re-queried during NPP_SetWindow or other window property update calls, to see if
representing the current CSS zoom level of the browser. Since changing CSS
a zoom change has been made.
zoom levels updates the window properties, this value can be re-queried
during NPN_SetWindow or other window property update calls, to see if
a zoom change has been made. It will also be sent via NPP_SetValue so that
plugins can be notified when it changes.


== Relevant Bugs ==
== Relevant Bugs ==


[https://bugzilla.mozilla.org/show_bug.cgi?id=1171182 Bug 1171182 - Implement browser zoom query in NPAPI]
[https://bugzilla.mozilla.org/show_bug.cgi?id=1171182 Bug 1171182 - Implement browser zoom query in NPAPI]
Confirmed users, Bureaucrats and Sysops emeriti
1,680

edits