2011-08-11 04:01:27 -07: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 04:12:37 -07: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 04:01:27 -07:00
|
|
|
|
|
|
|
#ifndef A11Y_STATISTICS_H_
|
|
|
|
#define A11Y_STATISTICS_H_
|
|
|
|
|
|
|
|
#include "mozilla/Telemetry.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace a11y {
|
|
|
|
namespace statistics {
|
|
|
|
|
|
|
|
inline void A11yInitialized()
|
2012-03-23 13:32:18 -07:00
|
|
|
{ Telemetry::Accumulate(Telemetry::A11Y_INSTANTIATED_FLAG, true); }
|
2011-08-11 04:01:27 -07:00
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
inline void A11yConsumers(uint32_t aConsumer)
|
2012-01-20 09:26:22 -08:00
|
|
|
{ Telemetry::Accumulate(Telemetry::A11Y_CONSUMERS, aConsumer); }
|
|
|
|
|
2011-08-17 10:43:20 -07:00
|
|
|
/**
|
|
|
|
* Report that ISimpleDOM* has been used.
|
|
|
|
*/
|
|
|
|
inline void ISimpleDOMUsed()
|
2012-03-23 13:32:18 -07:00
|
|
|
{ Telemetry::Accumulate(Telemetry::A11Y_ISIMPLEDOM_USAGE_FLAG, true); }
|
2011-08-17 10:43:20 -07:00
|
|
|
|
2011-09-15 20:39:15 -07:00
|
|
|
/**
|
|
|
|
* Report that IAccessibleTable has been used.
|
|
|
|
*/
|
|
|
|
inline void IAccessibleTableUsed()
|
2012-03-23 13:32:18 -07:00
|
|
|
{ Telemetry::Accumulate(Telemetry::A11Y_IATABLE_USAGE_FLAG, true); }
|
2011-09-15 20:39:15 -07:00
|
|
|
|
2011-08-11 04:01:27 -07:00
|
|
|
} // namespace statistics
|
|
|
|
} // namespace a11y
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|