Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
DOM nodes basicaly working again
  • Loading branch information
pmuellr committed Feb 11, 2011
1 parent 848ad64 commit 4ffaa0f6bd4a80f6a9bd09c45e8218a41e66d643
Show file tree
Hide file tree
Showing 43 changed files with 728 additions and 71 deletions.
@@ -107,11 +107,17 @@ def splitInspectorInterfaces(module):
log("Inspector method %s does not have a 'domain' extended attribute" % (method["name"]))
continue

intfName = "Wi" + method["extendedAttributes"]["domain"]
intfName = method["extendedAttributes"]["domain"]

if "notify" in method["extendedAttributes"]:
intfName += "Notify"

for parameter in method["parameters"]:
if "out" not in parameter:
log("Inspector method %s has an unexpected non-out parameter %s" % (method["name"], parameter["name"]))
else:
del parameter["out"]

intf = newInterfaces.get(intfName)
if not intf:
intf = {
@@ -0,0 +1,48 @@
/*
* 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
*/

package com.phonegap.weinre.server;

import java.io.IOException;
import java.util.List;

import org.apache.wink.json4j.JSONArray;


public abstract class BasicService {

public static String lastActivePanelName;

/**
*
*/
public BasicService() {
super();
}

/**
*
*/
public String getInterfaceName() {
return getClass().getSimpleName();
}

/**
* forwards all requests to connected peers
*/
public void __doesNotUnderstand(Channel channel, String methodName, JSONArray args) throws IOException {
Connector connector = channel.getConnector();
if (null == connector) return;

List<Connector> connections = connector.getConnections();

for (Connector connection: connections) {
connection.getChannel().sendEvent(getInterfaceName(), methodName, args.toArray());
}
}

}
@@ -122,7 +122,7 @@ private void handleMessages() throws InterruptedException {
@SuppressWarnings({ "rawtypes", "unchecked" })
private void serviceMethodInvoker(Channel channel, String intfName, String methodName, JSONArray argsJSON) {
Object service;
String methodSignature = intfName + "." + methodName + "()";
String methodSignature = intfName + "." + methodName + "(" + argsJSON.toString() + ")";

Main.debug(channel.getName() + ": recv " + methodSignature);

@@ -0,0 +1,18 @@
/*
* 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
*/

package com.phonegap.weinre.server.service;

import com.phonegap.weinre.server.BasicService;

public class ApplicationCache extends BasicService {

public ApplicationCache() {
super();
}

}
@@ -0,0 +1,18 @@
/*
* 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
*/

package com.phonegap.weinre.server.service;

import com.phonegap.weinre.server.BasicService;

public class ApplicationCacheNotify extends BasicService {

public ApplicationCacheNotify() {
super();
}

}
@@ -0,0 +1,18 @@
/*
* 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
*/

package com.phonegap.weinre.server.service;

import com.phonegap.weinre.server.BasicService;

public class BrowserDebugger extends BasicService {

public BrowserDebugger() {
super();
}

}
@@ -0,0 +1,18 @@
/*
* 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
*/

package com.phonegap.weinre.server.service;

import com.phonegap.weinre.server.BasicService;

public class CSS extends BasicService {

public CSS() {
super();
}

}
@@ -0,0 +1,18 @@
/*
* 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
*/

package com.phonegap.weinre.server.service;

import com.phonegap.weinre.server.BasicService;

public class Console extends BasicService {

public Console() {
super();
}

}
@@ -0,0 +1,18 @@
/*
* 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
*/

package com.phonegap.weinre.server.service;

import com.phonegap.weinre.server.BasicService;

public class ConsoleNotify extends BasicService {

public ConsoleNotify() {
super();
}

}
@@ -0,0 +1,18 @@
/*
* 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
*/

package com.phonegap.weinre.server.service;

import com.phonegap.weinre.server.BasicService;

public class DOM extends BasicService {

public DOM() {
super();
}

}
@@ -0,0 +1,18 @@
/*
* 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
*/

package com.phonegap.weinre.server.service;

import com.phonegap.weinre.server.BasicService;

public class DOMNotify extends BasicService {

public DOMNotify() {
super();
}

}
@@ -0,0 +1,18 @@
/*
* 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
*/

package com.phonegap.weinre.server.service;

import com.phonegap.weinre.server.BasicService;

public class DOMStorage extends BasicService {

public DOMStorage() {
super();
}

}
@@ -0,0 +1,18 @@
/*
* 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
*/

package com.phonegap.weinre.server.service;

import com.phonegap.weinre.server.BasicService;

public class DOMStorageNotify extends BasicService {

public DOMStorageNotify() {
super();
}

}
@@ -0,0 +1,18 @@
/*
* 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
*/

package com.phonegap.weinre.server.service;

import com.phonegap.weinre.server.BasicService;

public class Database extends BasicService {

public Database() {
super();
}

}
@@ -0,0 +1,18 @@
/*
* 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
*/

package com.phonegap.weinre.server.service;

import com.phonegap.weinre.server.BasicService;

public class DatabaseNotify extends BasicService {

public DatabaseNotify() {
super();
}

}
@@ -0,0 +1,18 @@
/*
* 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
*/

package com.phonegap.weinre.server.service;

import com.phonegap.weinre.server.BasicService;

public class Debugger extends BasicService {

public Debugger() {
super();
}

}
@@ -0,0 +1,18 @@
/*
* 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
*/

package com.phonegap.weinre.server.service;

import com.phonegap.weinre.server.BasicService;

public class DebuggerNotify extends BasicService {

public DebuggerNotify() {
super();
}

}
@@ -0,0 +1,18 @@
/*
* 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
*/

package com.phonegap.weinre.server.service;

import com.phonegap.weinre.server.BasicService;

public class FileSystem extends BasicService {

public FileSystem() {
super();
}

}
@@ -0,0 +1,18 @@
/*
* 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
*/

package com.phonegap.weinre.server.service;

import com.phonegap.weinre.server.BasicService;

public class FileSystemNotify extends BasicService {

public FileSystemNotify() {
super();
}

}
@@ -0,0 +1,18 @@
/*
* 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
*/

package com.phonegap.weinre.server.service;

import com.phonegap.weinre.server.BasicService;

public class InjectedScript extends BasicService {

public InjectedScript() {
super();
}

}

0 comments on commit 4ffaa0f

Please sign in to comment.