blob: 9964c5a3d0f14c8f7e9e7384e32492d3da7c7b0a [file] [log] [blame]
/*
* weinre is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
*
* Copyright (c) 2011 IBM Corporation
*/
require ../common/Weinre
//-----------------------------------------------------------------------------
class WiConsoleImpl
this.messagesEnabled = true
//-----------------------------------------------------------------------------
method setConsoleMessagesEnabled(/*boolean*/ enabled, callback)
var oldValue = this.messagesEnabled
this.messagesEnabled = enabled
if (callback) {
Weinre.WeinreTargetCommands.sendClientCallback(callback, [oldValue])
}
//-----------------------------------------------------------------------------
method clearConsoleMessages(callback)
Weinre.wi.ConsoleNotify.consoleMessagesCleared()
if (callback) {
Weinre.WeinreTargetCommands.sendClientCallback(callback, [])
}
//-----------------------------------------------------------------------------
method setMonitoringXHREnabled(/*boolean*/ enabled, callback)
if (callback) {
Weinre.WeinreTargetCommands.sendClientCallback(callback, [])
}