blob: 8b8e6a4da819a9abcb8fdbea0be9b25f48adec78 [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
*/
requireClass ../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, [])
}