mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 20:07:30 +09:00
Telemetry: Remove stubs and related code
This commit is contained in:
parent
10053448d6
commit
aea50f182f
134 changed files with 68 additions and 3422 deletions
|
|
@ -1,39 +0,0 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* vim: set ts=2 et sw=2 tw=80: */
|
||||
/* 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/. */
|
||||
|
||||
#ifndef A11Y_STATISTICS_H_
|
||||
#define A11Y_STATISTICS_H_
|
||||
|
||||
#include "mozilla/Telemetry.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace a11y {
|
||||
namespace statistics {
|
||||
|
||||
inline void A11yInitialized()
|
||||
{ /* STUB */ }
|
||||
|
||||
inline void A11yConsumers(uint32_t aConsumer)
|
||||
{ /* STUB */ }
|
||||
|
||||
/**
|
||||
* Report that ISimpleDOM* has been used.
|
||||
*/
|
||||
inline void ISimpleDOMUsed()
|
||||
{ /* STUB */ }
|
||||
|
||||
/**
|
||||
* Report that IAccessibleTable has been used.
|
||||
*/
|
||||
inline void IAccessibleTableUsed()
|
||||
{ /* STUB */ }
|
||||
|
||||
} // namespace statistics
|
||||
} // namespace a11y
|
||||
} // namespace mozilla
|
||||
|
||||
#endif
|
||||
|
||||
|
|
@ -32,7 +32,6 @@
|
|||
#include "RootAccessibleWrap.h"
|
||||
#endif
|
||||
#include "States.h"
|
||||
#include "Statistics.h"
|
||||
#include "TextLeafAccessibleWrap.h"
|
||||
#include "TreeWalker.h"
|
||||
#include "xpcAccessibleApplication.h"
|
||||
|
|
@ -1288,8 +1287,6 @@ nsAccessibilityService::Init()
|
|||
if (XRE_IsParentProcess())
|
||||
PlatformInit();
|
||||
|
||||
statistics::A11yInitialized();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
#include "AccessibleWrap.h"
|
||||
#include "IUnknownImpl.h"
|
||||
#include "Statistics.h"
|
||||
#include "TableAccessible.h"
|
||||
|
||||
#include "nsCOMPtr.h"
|
||||
|
|
@ -32,7 +31,6 @@ ia2AccessibleTable::QueryInterface(REFIID iid, void** ppv)
|
|||
*ppv = nullptr;
|
||||
|
||||
if (IID_IAccessibleTable == iid) {
|
||||
statistics::IAccessibleTableUsed();
|
||||
*ppv = static_cast<IAccessibleTable*>(this);
|
||||
(reinterpret_cast<IUnknown*>(*ppv))->AddRef();
|
||||
return S_OK;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
#include "Compatibility.h"
|
||||
|
||||
#include "nsWinUtils.h"
|
||||
#include "Statistics.h"
|
||||
|
||||
#include "mozilla/Preferences.h"
|
||||
|
||||
|
|
@ -52,8 +51,6 @@ uint32_t Compatibility::sConsumers = Compatibility::UNKNOWN;
|
|||
void
|
||||
Compatibility::Init()
|
||||
{
|
||||
// Note we collect some AT statistics/telemetry here for convenience.
|
||||
|
||||
HMODULE jawsHandle = ::GetModuleHandleW(L"jhook");
|
||||
if (jawsHandle)
|
||||
sConsumers |= (IsModuleVersionLessThan(jawsHandle, 8, 2173)) ?
|
||||
|
|
@ -92,15 +89,6 @@ Compatibility::Init()
|
|||
if (sConsumers != Compatibility::UNKNOWN)
|
||||
sConsumers ^= Compatibility::UNKNOWN;
|
||||
|
||||
// Gather telemetry
|
||||
uint32_t temp = sConsumers;
|
||||
for (int i = 0; temp; i++) {
|
||||
if (temp & 0x1)
|
||||
statistics::A11yConsumers(i);
|
||||
|
||||
temp >>= 1;
|
||||
}
|
||||
|
||||
// Turn off new tab switching for Jaws and WE.
|
||||
if (sConsumers & (JAWS | OLDJAWS | WE)) {
|
||||
// Check to see if the pref for disallowing CtrlTab is already set. If so,
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@
|
|||
#include "Role.h"
|
||||
#include "RootAccessible.h"
|
||||
#include "sdnDocAccessible.h"
|
||||
#include "Statistics.h"
|
||||
|
||||
#include "nsIDocShell.h"
|
||||
#include "nsIInterfaceRequestorUtils.h"
|
||||
|
|
@ -36,7 +35,6 @@ DocAccessibleWrap::~DocAccessibleWrap()
|
|||
|
||||
IMPL_IUNKNOWN_QUERY_HEAD(DocAccessibleWrap)
|
||||
if (aIID == IID_ISimpleDOMDocument) {
|
||||
statistics::ISimpleDOMUsed();
|
||||
*aInstancePtr = static_cast<ISimpleDOMDocument*>(new sdnDocAccessible(this));
|
||||
static_cast<IUnknown*>(*aInstancePtr)->AddRef();
|
||||
return S_OK;
|
||||
|
|
|
|||
|
|
@ -7,13 +7,11 @@
|
|||
#include "TextLeafAccessibleWrap.h"
|
||||
|
||||
#include "sdnTextAccessible.h"
|
||||
#include "Statistics.h"
|
||||
|
||||
using namespace mozilla::a11y;
|
||||
|
||||
IMPL_IUNKNOWN_QUERY_HEAD(TextLeafAccessibleWrap)
|
||||
if (aIID == IID_ISimpleDOMText) {
|
||||
statistics::ISimpleDOMUsed();
|
||||
*aInstancePtr = static_cast<ISimpleDOMText*>(new sdnTextAccessible(this));
|
||||
static_cast<IUnknown*>(*aInstancePtr)->AddRef();
|
||||
return S_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue