2011-08-11 15:01:27 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=2 et sw=2 tw=80: */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2011-08-11 15:01:27 +04:00
|
|
|
|
|
|
|
#ifndef A11Y_STATISTICS_H_
|
|
|
|
#define A11Y_STATISTICS_H_
|
|
|
|
|
|
|
|
#include "mozilla/Telemetry.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace a11y {
|
|
|
|
namespace statistics {
|
|
|
|
|
|
|
|
inline void A11yInitialized() {
|
2012-03-24 00:32:18 +04:00
|
|
|
Telemetry::Accumulate(Telemetry::A11Y_INSTANTIATED_FLAG, true);
|
|
|
|
}
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2012-08-22 19:56:38 +04:00
|
|
|
inline void A11yConsumers(uint32_t aConsumer) {
|
2012-01-20 21:26:22 +04:00
|
|
|
Telemetry::Accumulate(Telemetry::A11Y_CONSUMERS, aConsumer);
|
|
|
|
}
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2011-08-17 21:43:20 +04:00
|
|
|
/**
|
|
|
|
* Report that ISimpleDOM* has been used.
|
|
|
|
*/
|
|
|
|
inline void ISimpleDOMUsed() {
|
2012-03-24 00:32:18 +04:00
|
|
|
Telemetry::Accumulate(Telemetry::A11Y_ISIMPLEDOM_USAGE_FLAG, true);
|
|
|
|
}
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2011-09-16 07:39:15 +04:00
|
|
|
/**
|
|
|
|
* Report that IAccessibleTable has been used.
|
|
|
|
*/
|
|
|
|
inline void IAccessibleTableUsed() {
|
2012-03-24 00:32:18 +04:00
|
|
|
Telemetry::Accumulate(Telemetry::A11Y_IATABLE_USAGE_FLAG, true);
|
|
|
|
}
|
2018-11-30 13:46:48 +03:00
|
|
|
|
2011-08-11 15:01:27 +04:00
|
|
|
} // namespace statistics
|
|
|
|
} // namespace a11y
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif
|