Bug 728905 - telemetry ZoomText, YouDao Dictionary and Kazaguru, r=tbsaunde, f=surkov
authorMark Capella <markcapella@twcny.rr.com>
Sun, 26 Feb 2012 11:15:55 +0900
changeset 87753 a32cc7faa71a3943e147defdf39ca6f59b943ac4
parent 87752 c916138691f5e8c096e063ffabb37f9c5e84f9a8
child 87754 fe5f655829e1641fa4944ab52d05813fc8a1d622
push id22143
push userphilringnalda@gmail.com
push dateSun, 26 Feb 2012 23:12:35 +0000
treeherdermozilla-central@b98fc24ac54b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstbsaunde
bugs728905
milestone13.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 728905 - telemetry ZoomText, YouDao Dictionary and Kazaguru, r=tbsaunde, f=surkov
accessible/src/msaa/Compatibility.cpp
accessible/src/msaa/Compatibility.h
toolkit/components/telemetry/TelemetryHistograms.h
--- a/accessible/src/msaa/Compatibility.cpp
+++ b/accessible/src/msaa/Compatibility.cpp
@@ -112,16 +112,26 @@ Compatibility::Init()
     statistics::A11yConsumers(SEROTEK);
 
   if (::GetModuleHandleW(L"nvdaHelperRemote"))
     statistics::A11yConsumers(NVDA);
 
   if (::GetModuleHandleW(L"OsmHooks"))
     statistics::A11yConsumers(COBRA);
 
+  if (::GetModuleHandleW(L"WebFinderRemote"))
+    statistics::A11yConsumers(ZOOMTEXT);
+
+  if (::GetModuleHandleW(L"Kazahook"))
+    statistics::A11yConsumers(KAZAGURU);
+
+  if (::GetModuleHandleW(L"TextExtractorImpl32") ||
+      ::GetModuleHandleW(L"TextExtractorImpl64"))
+    statistics::A11yConsumers(YOUDAO);
+
   // Turn off new tab switching for Jaws and WE.
   if (sMode & JAWSMode || sMode & WEMode) {
     // Check to see if the pref for disallowing CtrlTab is already set. If so,
     // bail out (respect the user settings). If not, set it.
     if (!Preferences::HasUserValue("browser.ctrlTab.disallowForScreenReaders"))
       Preferences::SetBool("browser.ctrlTab.disallowForScreenReaders", true);
   }
 }
--- a/accessible/src/msaa/Compatibility.h
+++ b/accessible/src/msaa/Compatibility.h
@@ -102,17 +102,20 @@ private:
    */
   enum {
     NVDA = 0,
     JAWS = 1,
     OLDJAWS = 2,
     WE = 3,
     DOLPHIN = 4,
     SEROTEK = 5,
-    COBRA = 6
+    COBRA = 6,
+    ZOOMTEXT = 7,
+    KAZAGURU = 8,
+    YOUDAO = 9
   };
 
 private:
   static PRUint32 sMode;
 };
 
 } // a11y namespace
 } // mozilla namespace
--- a/toolkit/components/telemetry/TelemetryHistograms.h
+++ b/toolkit/components/telemetry/TelemetryHistograms.h
@@ -51,17 +51,17 @@
 
 /* Convenience macro for BOOLEAN histograms. */
 #define HISTOGRAM_BOOLEAN(id, message) HISTOGRAM(id, 0, 1, 2, BOOLEAN, message)
 
 /**
  * a11y telemetry
  */
 HISTOGRAM_BOOLEAN(A11Y_INSTANTIATED, "has accessibility support been instantiated")
-HISTOGRAM(A11Y_CONSUMERS, 1, 6, 7, LINEAR, "Accessibility client by enum id")
+HISTOGRAM(A11Y_CONSUMERS, 1, 9, 10, LINEAR, "Accessibility client by enum id")
 HISTOGRAM_BOOLEAN(A11Y_ISIMPLEDOM_USAGE, "have the ISimpleDOM* accessibility interfaces been used")
 HISTOGRAM_BOOLEAN(A11Y_IATABLE_USAGE, "has the IAccessibleTable accessibility interface been used")
 HISTOGRAM_BOOLEAN(A11Y_XFORMS_USAGE, "has XForms accessibility been instantiated")
 
 /**
  * Cycle collector telemetry
  */
 HISTOGRAM(CYCLE_COLLECTOR, 1, 10000, 50, EXPONENTIAL, "Time spent on one cycle collection (ms)")