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/Presentation.jsm');
|
||||
|
||||
Logger.info('enable');
|
||||
Logger.info('Enabled');
|
||||
|
||||
for each (let mm in Utils.AllMessageManagers) {
|
||||
this._addMessageListeners(mm);
|
||||
@ -145,7 +145,7 @@ this.AccessFu = {
|
||||
|
||||
this._enabled = false;
|
||||
|
||||
Logger.info('disable');
|
||||
Logger.info('Disabled');
|
||||
|
||||
Utils.win.document.removeChild(this.stylesheet.get());
|
||||
|
||||
@ -524,9 +524,8 @@ var Output = {
|
||||
|
||||
for (let action of aActions) {
|
||||
let window = Utils.win;
|
||||
Logger.info('tts.' + action.method,
|
||||
'"' + action.data + '"',
|
||||
JSON.stringify(action.options));
|
||||
Logger.debug('tts.' + action.method, '"' + action.data + '"',
|
||||
JSON.stringify(action.options));
|
||||
|
||||
if (!action.options.enqueue && this.webspeechEnabled) {
|
||||
window.speechSynthesis.cancel();
|
||||
@ -715,8 +714,8 @@ var Input = {
|
||||
|
||||
_handleGesture: function _handleGesture(aGesture) {
|
||||
let gestureName = aGesture.type + aGesture.touches.length;
|
||||
Logger.info('Gesture', aGesture.type,
|
||||
'(fingers: ' + aGesture.touches.length + ')');
|
||||
Logger.debug('Gesture', aGesture.type,
|
||||
'(fingers: ' + aGesture.touches.length + ')');
|
||||
|
||||
switch (gestureName) {
|
||||
case 'dwell1':
|
||||
|
@ -46,7 +46,7 @@ this.EventManager.prototype = {
|
||||
start: function start() {
|
||||
try {
|
||||
if (!this._started) {
|
||||
Logger.info('EventManager.start', Utils.MozBuildApp);
|
||||
Logger.debug('EventManager.start');
|
||||
|
||||
this._started = true;
|
||||
|
||||
@ -73,7 +73,7 @@ this.EventManager.prototype = {
|
||||
if (!this._started) {
|
||||
return;
|
||||
}
|
||||
Logger.info('EventManager.stop', Utils.MozBuildApp);
|
||||
Logger.debug('EventManager.stop');
|
||||
AccessibilityEventObserver.removeListener(this);
|
||||
try {
|
||||
this.webProgress.removeProgressListener(this);
|
||||
|
@ -46,7 +46,7 @@ this.TouchAdapter = {
|
||||
SYNTH_ID: -1,
|
||||
|
||||
start: function TouchAdapter_start() {
|
||||
Logger.info('TouchAdapter.start');
|
||||
Logger.debug('TouchAdapter.start');
|
||||
|
||||
this._touchPoints = {};
|
||||
this._dwellTimeout = 0;
|
||||
@ -64,7 +64,7 @@ this.TouchAdapter = {
|
||||
},
|
||||
|
||||
stop: function TouchAdapter_stop() {
|
||||
Logger.info('TouchAdapter.stop');
|
||||
Logger.debug('TouchAdapter.stop');
|
||||
|
||||
let target = Utils.win;
|
||||
|
||||
|
@ -92,6 +92,7 @@ var AccessFuTest = {
|
||||
finish: function AccessFuTest_finish() {
|
||||
// Disable the console service logging.
|
||||
Logger.test = false;
|
||||
Logger.logLevel = Logger.INFO;
|
||||
AccessFu.doneCallback = function doneCallback() {
|
||||
// This is being called once AccessFu has been shut down.
|
||||
// Detach AccessFu from everything it attached itself to.
|
||||
@ -136,6 +137,7 @@ var AccessFuTest = {
|
||||
AccessFu.readyCallback = function readyCallback() {
|
||||
// Enable logging to the console service.
|
||||
Logger.test = true;
|
||||
Logger.logLevel = Logger.DEBUG;
|
||||
// This is being called once accessibility has been turned on.
|
||||
|
||||
if (AccessFuTest._waitForExplicitFinish) {
|
||||
|
Loading…
Reference in New Issue
Block a user