Bug 1165211: Add UseCounter for 'MouseEvent.mozPressure' and deprecate it. r=alchen,smaug

Differential Revision: https://phabricator.services.mozilla.com/D22302

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mirko Brodesser 2019-03-15 08:57:39 +00:00
parent 36b25f6fb1
commit 48b39e6cf7
3 changed files with 4 additions and 0 deletions

View File

@ -50,3 +50,4 @@ DEPRECATED_OPERATION(MozRequestFullScreenDeprecatedPrefix)
DEPRECATED_OPERATION(MozfullscreenchangeDeprecatedPrefix)
DEPRECATED_OPERATION(MozfullscreenerrorDeprecatedPrefix)
DEPRECATED_OPERATION(External_AddSearchProvider)
DEPRECATED_OPERATION(MouseEvent_MozPressure)

View File

@ -372,3 +372,5 @@ MozfullscreenchangeDeprecatedPrefixWarning=onmozfullscreenchange is deprecated.
MozfullscreenerrorDeprecatedPrefixWarning=onmozfullscreenerror is deprecated.
# LOCALIZATION NOTE(External_AddSearchProviderWarning): Do not translate AddSearchProvider.
External_AddSearchProviderWarning=AddSearchProvider is deprecated.
# LOCALIZATION NOTE: Do not translate "MouseEvent.mozPressure" and "PointerEvent.pressure".
MouseEvent_MozPressureWarning=MouseEvent.mozPressure is deprecated. Use PointerEvent.pressure instead.

View File

@ -79,6 +79,7 @@ partial interface MouseEvent
{
// Finger or touch pressure event value
// ranges between 0.0 and 1.0
[Deprecated="MouseEvent_MozPressure"]
readonly attribute float mozPressure;
const unsigned short MOZ_SOURCE_UNKNOWN = 0;