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