mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 717506 - telemetry for xforms use, r=surkov, tbsaunde
This commit is contained in:
parent
82ebb6f238
commit
2b74d8316f
@ -22,6 +22,7 @@
|
||||
*
|
||||
* Contributor(s):
|
||||
* Trevor Saunders <trev.saunders@gmail.com> (original author)
|
||||
* Andrzej Skalski <askalski@mozilla.com>
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
@ -47,7 +48,7 @@ namespace a11y {
|
||||
namespace statistics {
|
||||
|
||||
inline void A11yInitialized()
|
||||
{ Telemetry::Accumulate(Telemetry::A11Y_INSTANTIATED, true); }
|
||||
{ Telemetry::Accumulate(Telemetry::A11Y_INSTANTIATED, 1); }
|
||||
|
||||
inline void A11yConsumers(PRUint32 aConsumer)
|
||||
{ Telemetry::Accumulate(Telemetry::A11Y_CONSUMERS, aConsumer); }
|
||||
@ -70,6 +71,12 @@ namespace statistics {
|
||||
inline void IAccessibleTableUsed()
|
||||
{ Telemetry::Accumulate(Telemetry::IACCESSIBLE_TABLE_USAGE, 1); }
|
||||
|
||||
/**
|
||||
* Report that XForms accessibility has been instantiated.
|
||||
*/
|
||||
inline void XFormsAccessibleUsed()
|
||||
{ Telemetry::Accumulate(Telemetry::XFORMS_ACCESSIBLE_USED, 1); }
|
||||
|
||||
} // namespace statistics
|
||||
} // namespace a11y
|
||||
} // namespace mozilla
|
||||
|
@ -43,6 +43,7 @@
|
||||
#include "nsTextEquivUtils.h"
|
||||
#include "Role.h"
|
||||
#include "States.h"
|
||||
#include "Statistics.h"
|
||||
|
||||
#include "nscore.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
@ -70,6 +71,7 @@ nsXFormsAccessibleBase::nsXFormsAccessibleBase()
|
||||
if (NS_FAILED(rv))
|
||||
NS_WARNING("No XForms utility service.");
|
||||
}
|
||||
statistics::XFormsAccessibleUsed();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -59,6 +59,7 @@ HISTOGRAM_BOOLEAN(A11Y_INSTANTIATED, "has accessibility support been instantiate
|
||||
HISTOGRAM(A11Y_CONSUMERS, 1, 6, 7, LINEAR, "Accessibility client by enum id")
|
||||
HISTOGRAM_BOOLEAN(ISIMPLE_DOM_USAGE, "have the ISimpleDOM* accessibility interfaces been used")
|
||||
HISTOGRAM_BOOLEAN(IACCESSIBLE_TABLE_USAGE, "has the IAccessibleTable accessibility interface been used")
|
||||
HISTOGRAM_BOOLEAN(XFORMS_ACCESSIBLE_USED, "has XForms accessibility been instantiated")
|
||||
|
||||
/**
|
||||
* Cycle collector telemetry
|
||||
|
Loading…
Reference in New Issue
Block a user