mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 937775 - Make AccessFu logging less verbose by default. r=yzen
This commit is contained in:
parent
da57ce8693
commit
50b9d1d3f6
@ -86,7 +86,7 @@ this.AccessFu = {
|
|||||||
Cu.import('resource://gre/modules/accessibility/TouchAdapter.jsm');
|
Cu.import('resource://gre/modules/accessibility/TouchAdapter.jsm');
|
||||||
Cu.import('resource://gre/modules/accessibility/Presentation.jsm');
|
Cu.import('resource://gre/modules/accessibility/Presentation.jsm');
|
||||||
|
|
||||||
Logger.info('enable');
|
Logger.info('Enabled');
|
||||||
|
|
||||||
for each (let mm in Utils.AllMessageManagers) {
|
for each (let mm in Utils.AllMessageManagers) {
|
||||||
this._addMessageListeners(mm);
|
this._addMessageListeners(mm);
|
||||||
@ -145,7 +145,7 @@ this.AccessFu = {
|
|||||||
|
|
||||||
this._enabled = false;
|
this._enabled = false;
|
||||||
|
|
||||||
Logger.info('disable');
|
Logger.info('Disabled');
|
||||||
|
|
||||||
Utils.win.document.removeChild(this.stylesheet.get());
|
Utils.win.document.removeChild(this.stylesheet.get());
|
||||||
|
|
||||||
@ -524,9 +524,8 @@ var Output = {
|
|||||||
|
|
||||||
for (let action of aActions) {
|
for (let action of aActions) {
|
||||||
let window = Utils.win;
|
let window = Utils.win;
|
||||||
Logger.info('tts.' + action.method,
|
Logger.debug('tts.' + action.method, '"' + action.data + '"',
|
||||||
'"' + action.data + '"',
|
JSON.stringify(action.options));
|
||||||
JSON.stringify(action.options));
|
|
||||||
|
|
||||||
if (!action.options.enqueue && this.webspeechEnabled) {
|
if (!action.options.enqueue && this.webspeechEnabled) {
|
||||||
window.speechSynthesis.cancel();
|
window.speechSynthesis.cancel();
|
||||||
@ -715,8 +714,8 @@ var Input = {
|
|||||||
|
|
||||||
_handleGesture: function _handleGesture(aGesture) {
|
_handleGesture: function _handleGesture(aGesture) {
|
||||||
let gestureName = aGesture.type + aGesture.touches.length;
|
let gestureName = aGesture.type + aGesture.touches.length;
|
||||||
Logger.info('Gesture', aGesture.type,
|
Logger.debug('Gesture', aGesture.type,
|
||||||
'(fingers: ' + aGesture.touches.length + ')');
|
'(fingers: ' + aGesture.touches.length + ')');
|
||||||
|
|
||||||
switch (gestureName) {
|
switch (gestureName) {
|
||||||
case 'dwell1':
|
case 'dwell1':
|
||||||
|
@ -46,7 +46,7 @@ this.EventManager.prototype = {
|
|||||||
start: function start() {
|
start: function start() {
|
||||||
try {
|
try {
|
||||||
if (!this._started) {
|
if (!this._started) {
|
||||||
Logger.info('EventManager.start', Utils.MozBuildApp);
|
Logger.debug('EventManager.start');
|
||||||
|
|
||||||
this._started = true;
|
this._started = true;
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ this.EventManager.prototype = {
|
|||||||
if (!this._started) {
|
if (!this._started) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Logger.info('EventManager.stop', Utils.MozBuildApp);
|
Logger.debug('EventManager.stop');
|
||||||
AccessibilityEventObserver.removeListener(this);
|
AccessibilityEventObserver.removeListener(this);
|
||||||
try {
|
try {
|
||||||
this.webProgress.removeProgressListener(this);
|
this.webProgress.removeProgressListener(this);
|
||||||
|
@ -46,7 +46,7 @@ this.TouchAdapter = {
|
|||||||
SYNTH_ID: -1,
|
SYNTH_ID: -1,
|
||||||
|
|
||||||
start: function TouchAdapter_start() {
|
start: function TouchAdapter_start() {
|
||||||
Logger.info('TouchAdapter.start');
|
Logger.debug('TouchAdapter.start');
|
||||||
|
|
||||||
this._touchPoints = {};
|
this._touchPoints = {};
|
||||||
this._dwellTimeout = 0;
|
this._dwellTimeout = 0;
|
||||||
@ -64,7 +64,7 @@ this.TouchAdapter = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
stop: function TouchAdapter_stop() {
|
stop: function TouchAdapter_stop() {
|
||||||
Logger.info('TouchAdapter.stop');
|
Logger.debug('TouchAdapter.stop');
|
||||||
|
|
||||||
let target = Utils.win;
|
let target = Utils.win;
|
||||||
|
|
||||||
|
@ -92,6 +92,7 @@ var AccessFuTest = {
|
|||||||
finish: function AccessFuTest_finish() {
|
finish: function AccessFuTest_finish() {
|
||||||
// Disable the console service logging.
|
// Disable the console service logging.
|
||||||
Logger.test = false;
|
Logger.test = false;
|
||||||
|
Logger.logLevel = Logger.INFO;
|
||||||
AccessFu.doneCallback = function doneCallback() {
|
AccessFu.doneCallback = function doneCallback() {
|
||||||
// This is being called once AccessFu has been shut down.
|
// This is being called once AccessFu has been shut down.
|
||||||
// Detach AccessFu from everything it attached itself to.
|
// Detach AccessFu from everything it attached itself to.
|
||||||
@ -136,6 +137,7 @@ var AccessFuTest = {
|
|||||||
AccessFu.readyCallback = function readyCallback() {
|
AccessFu.readyCallback = function readyCallback() {
|
||||||
// Enable logging to the console service.
|
// Enable logging to the console service.
|
||||||
Logger.test = true;
|
Logger.test = true;
|
||||||
|
Logger.logLevel = Logger.DEBUG;
|
||||||
// This is being called once accessibility has been turned on.
|
// This is being called once accessibility has been turned on.
|
||||||
|
|
||||||
if (AccessFuTest._waitForExplicitFinish) {
|
if (AccessFuTest._waitForExplicitFinish) {
|
||||||
|
Loading…
Reference in New Issue
Block a user