blob: 6eebf463ec23d46c9f2652283ffc0d78cf3d083e [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) 2010, 2011 IBM Corporation
*/
requireClass ../common/Weinre
requireClass ../common/Callback
requireClass ./Console
//-----------------------------------------------------------------------------
class WeinreTargetEventsImpl
//-----------------------------------------------------------------------------
method connectionCreated(/*string*/ clientId, /*string*/ targetId)
var message = "weinre: target " + targetId + " connected to client " + clientId
console.log(message)
var oldValue = Console.useRemote(true)
if (!oldValue) {
console.log(message)
}
Weinre.showNotImplemented()
Weinre.target.setDocument()
//-----------------------------------------------------------------------------
method connectionDestroyed(/*string*/ clientId, /*string*/ targetId)
var message = "weinre: target " + targetId + " disconnected from client " + clientId
console.log(message)
var oldValue = Console.useRemote(false)
if (oldValue) {
console.log(message)
}
//-----------------------------------------------------------------------------
method sendCallback(/*int*/ callbackId, /*any*/ result)
Callback.invoke(callbackId, result)