diff --git a/extensions/venkman/Makefile.in b/extensions/venkman/Makefile.in new file mode 100644 index 00000000000..1c83587c771 --- /dev/null +++ b/extensions/venkman/Makefile.in @@ -0,0 +1,45 @@ +# +# The contents of this file are subject to the Mozilla Public License +# Version 1.1 (the "License"); you may not use this file except in +# compliance with the License. You may obtain a copy of the License at +# http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Original Code is The JavaScript Debugger +# +# The Initial Developer of the Original Code is +# Netscape Communications Corporation +# Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. +# +# Alternatively, the contents of this file may be used under the +# terms of the GNU Public License (the "GPL"), in which case the +# provisions of the GPL are applicable instead of those above. +# If you wish to allow use of your version of this file only +# under the terms of the GPL and not to allow others to use your +# version of this file under the MPL, indicate your decision by +# deleting the provisions above and replace them with the notice +# and other provisions required by the GPL. If you do not delete +# the provisions above, a recipient may use your version of this +# file under either the MPL or the GPL. +# +# Contributor(s): +# Robert Ginda, , original author +# + +DEPTH = ../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +DIRS = resources src idl + +include $(topsrcdir)/config/rules.mk + + diff --git a/extensions/venkman/idl/Makefile.in b/extensions/venkman/idl/Makefile.in new file mode 100644 index 00000000000..e69de29bb2d diff --git a/extensions/venkman/idl/jsdIDebuggerService.idl b/extensions/venkman/idl/jsdIDebuggerService.idl new file mode 100644 index 00000000000..d4c0700cbef --- /dev/null +++ b/extensions/venkman/idl/jsdIDebuggerService.idl @@ -0,0 +1,130 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is mozilla.org code + * + * The Initial Developer of the Original Code is + * Netscape Communications Corporation + * Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * + * Alternatively, the contents of this file may be used under the + * terms of the GNU Public License (the "GPL"), in which case the + * provisions of the GPL are applicable instead of those above. + * If you wish to allow use of your version of this file only + * under the terms of the GPL and not to allow others to use your + * version of this file under the MPL, indicate your decision by + * deleting the provisions above and replace them with the notice + * and other provisions required by the GPL. If you do not delete + * the provisions above, a recipient may use your version of this + * file under either the MPL or the GPL. + * + * Contributor(s): + * + * + */ + +#include "nsISupports.idl" + +%{ C++ +#include "jsdebug.h" +%} + +[ptr] native JSDContext(JSDContext); +[ptr] native JSDScript(JSDScript); +[ptr] native JSDThreadState(JSDThreadState); + +/* +[scriptable, uuid(e7c8ea2c-1dd1-11b2-9242-f2768e04e92e)] +interface jsdIHandle : nsISupports +{ + [noscript] readonly attribute voidPtr data; +}; +*/ + +[scriptable, uuid(a2dd25a4-1dd1-11b2-bda6-ed525acd4c35)] +interface jsdIContext : nsISupports +{ + [noscript] readonly attribute JSDContext JSDContext; +}; + +[scriptable, uuid(d500e8b8-1dd1-11b2-89a1-cdf55d91cbbd)] +interface jsdIObject : nsISupports +{}; + +[scriptable, uuid(b8816e56-1dd1-11b2-81dc-8ba99a833d9e)] +interface jsdIProperty : nsISupports +{}; + +[scriptable, uuid(a38f65ca-1dd1-11b2-95d5-ff2947e9c920)] +interface jsdIScript : nsISupports +{ + [noscript] readonly attribute JSDScript JSDScript; + + readonly attribute boolean isActive; + readonly attribute wstring fileName; + readonly attribute wstring functionName; + readonly attribute unsigned long baseLineNumber; + readonly attribute unsigned long lineExtent; +}; + +[scriptable, uuid(a47adad2-1dd1-11b2-b9e9-8e67a47beca5)] +interface jsdISourceText : nsISupports +{}; + +[scriptable, uuid(b6d50784-1dd1-11b2-a932-882246c6fe45)] +interface jsdIStackFrameInfo : nsISupports +{}; + +[scriptable, uuid(b6d1c006-1dd1-11b2-b9d8-b4d1ccfb74d8)] +interface jsdIThreadState : nsISupports +{ + [noscript] readonly attribute JSDThreadState JSDThreadState; +}; + +[scriptable, uuid(b7964304-1dd1-11b2-ba20-cf4205772e9d)] +interface jsdIValue : nsISupports +{}; + +[scriptable, uuid(ae89a7e2-1dd1-11b2-8c2f-af82086291a5)] +interface jsdIScriptHook : nsISupports +{ + void onScriptHook (in jsdIContext aCx, in jsdIScript aScript, + in boolean aCreating); + +}; + +[scriptable, uuid(9a7b6ad0-1dd1-11b2-a789-fcfae96356a2)] +interface jsdIExecutionHook : nsISupports +{ + const unsigned long HOOK_RETURN_HOOK_ERROR = 0; + const unsigned long HOOK_RETURN_CONTINUE = 1; + const unsigned long HOOK_RETURN_ABORT = 2; + const unsigned long HOOK_RETURN_RET_WITH_VAL = 3; + const unsigned long HOOK_RETURN_THROW_WITH_VAL = 4; + const unsigned long HOOK_RETURN_CONTINUE_THROW = 5; + + unsigned long onExecutionHook (in jsdIContext aCx, + in jsdIThreadState aThreadState, + in unsigned long aType, out nsISupports rval); +}; + +[scriptable, uuid(01be7f9a-1dd2-11b2-9d55-aaf919b27c73)] +interface jsdIDebuggerService : nsISupports +{ + void init (); + + attribute jsdIScriptHook scriptHook; + attribute jsdIExecutionHook interruptHook; + +}; + diff --git a/extensions/venkman/idl/makefile.win b/extensions/venkman/idl/makefile.win new file mode 100644 index 00000000000..e69de29bb2d diff --git a/extensions/venkman/makefile.win b/extensions/venkman/makefile.win new file mode 100644 index 00000000000..99e102a001c --- /dev/null +++ b/extensions/venkman/makefile.win @@ -0,0 +1,40 @@ +# +# The contents of this file are subject to the Mozilla Public License +# Version 1.1 (the "License"); you may not use this file except in +# compliance with the License. You may obtain a copy of the License at +# http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Original Code is The JavaScript Debugger +# +# The Initial Developer of the Original Code is +# Netscape Communications Corporation +# Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. +# +# Alternatively, the contents of this file may be used under the +# terms of the GNU Public License (the "GPL"), in which case the +# provisions of the GPL are applicable instead of those above. +# If you wish to allow use of your version of this file only +# under the terms of the GPL and not to allow others to use your +# version of this file under the MPL, indicate your decision by +# deleting the provisions above and replace them with the notice +# and other provisions required by the GPL. If you do not delete +# the provisions above, a recipient may use your version of this +# file under either the MPL or the GPL. +# +# Contributor(s): +# Robert Ginda, , original author +# + +DEPTH = ..\.. + +include <$(DEPTH)\config\config.mak> + +DIRS = resources src idl + +include <$(DEPTH)\config\rules.mak> diff --git a/extensions/venkman/resources/Makefile.in b/extensions/venkman/resources/Makefile.in new file mode 100644 index 00000000000..3ca57787328 --- /dev/null +++ b/extensions/venkman/resources/Makefile.in @@ -0,0 +1,46 @@ +# +# The contents of this file are subject to the Mozilla Public License +# Version 1.1 (the "License"); you may not use this file except in +# compliance with the License. You may obtain a copy of the License at +# http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Original Code is The JavaScript Debugger +# +# The Initial Developer of the Original Code is +# Netscape Communications Corporation +# Portions created by Netscape are +# Copyright (C) 1998 Netscape Communications Corporation. +# +# Alternatively, the contents of this file may be used under the +# terms of the GNU Public License (the "GPL"), in which case the +# provisions of the GPL are applicable instead of those above. +# If you wish to allow use of your version of this file only +# under the terms of the GPL and not to allow others to use your +# version of this file under the MPL, indicate your decision by +# deleting the provisions above and replace them with the notice +# and other provisions required by the GPL. If you do not delete +# the provisions above, a recipient may use your version of this +# file under either the MPL or the GPL. +# +# Contributor(s): +# Robert Ginda, , original author +# + +DEPTH = ../../.. +topsrcdir = @top_srcdir@ +srcdir = @srcdir@ +VPATH = @srcdir@ + +include $(DEPTH)/config/autoconf.mk + +include $(topsrcdir)/config/rules.mk + +chrome:: + @$(REGCHROME) content venkman venkman.jar + @$(REGCHROME) skin modern/venkman venkman.jar + @$(REGCHROME) locale en-US/venkman venkman.jar diff --git a/extensions/venkman/resources/content/command-manager.js b/extensions/venkman/resources/content/command-manager.js new file mode 100644 index 00000000000..cfadf85ff95 --- /dev/null +++ b/extensions/venkman/resources/content/command-manager.js @@ -0,0 +1,89 @@ +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * + * The contents of this file are subject to the Mozilla Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is JSIRC Library + * + * The Initial Developer of the Original Code is New Dimensions Consulting, + * Inc. Portions created by New Dimensions Consulting, Inc. are + * Copyright (C) 1999 New Dimenstions Consulting, Inc. All + * Rights Reserved. + * + * Contributor(s): + * + * + * Contributor(s): + * Robert Ginda, rginda@ndcico.com, original author + */ + +function CCommandManager () +{ + + this.commands = new Array(); + +} + +CCommandManager.prototype.add = +function cmgr_add (name, func, usage, help) +{ + function compare (a, b) + { + if (a.name == b.name) + return 0; + else + if (a.name > b.name) + return 1; + else + return -1; + } + + this.commands.push ({name: name, func: func, usage: usage, help: help}); + this.commands = this.commands.sort(compare); + +} + +CCommandManager.prototype.list = +function cmgr_list (partialName) +{ + /* returns array of command objects which look like |partialName|, or + * all commands if |partialName| is not specified */ + + if ((typeof partialName == "undefined") || + (String(partialName) == "")) + return this.commands; + + var ary = new Array(); + + for (var i in this.commands) + { + if (this.commands[i].name.indexOf(partialName) == 0) + if (partialName.length == this.commands[i].name.length) + /* exact match */ + return [this.commands[i]]; + else + ary.push (this.commands[i]); + } + + return ary; + +} + +CCommandManager.prototype.listNames = +function cmgr_listnames (partialName) +{ + var cmds = this.list(partialName); + var cmdNames = new Array(); + + for (var c in cmds) + cmdNames.push (cmds[c].name); + + return cmdNames.sort(); +} diff --git a/extensions/venkman/resources/content/contents.rdf b/extensions/venkman/resources/content/contents.rdf new file mode 100644 index 00000000000..6c3b4c9306e --- /dev/null +++ b/extensions/venkman/resources/content/contents.rdf @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + chrome://venkman/content/venkman-overlay.xul + + diff --git a/extensions/venkman/resources/content/html-consts.js b/extensions/venkman/resources/content/html-consts.js new file mode 100644 index 00000000000..d402599f5e5 --- /dev/null +++ b/extensions/venkman/resources/content/html-consts.js @@ -0,0 +1,46 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is The JavaScript Debugger + * + * The Initial Developer of the Original Code is + * Netscape Communications Corporation + * Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * + * Alternatively, the contents of this file may be used under the + * terms of the GNU Public License (the "GPL"), in which case the + * provisions of the GPL are applicable instead of those above. + * If you wish to allow use of your version of this file only + * under the terms of the GPL and not to allow others to use your + * version of this file under the MPL, indicate your decision by + * deleting the provisions above and replace them with the notice + * and other provisions required by the GPL. If you do not delete + * the provisions above, a recipient may use your version of this + * file under either the MPL or the GPL. + * + * Contributor(s): + * Robert Ginda, , original author + * + */ + +const NS_XHTML = "http://www.w3.org/1999/xhtml"; + +const HTML_BR = "html:br"; +const HTML_IMG = "html:img"; +const HTML_SPAN = "html:span"; +const HTML_TABLE = "html:table"; +const HTML_TBODY = "html:tbody"; +const HTML_TD = "html:td"; +const HTML_TH = "html:th"; +const HTML_TR = "html:tr"; + diff --git a/extensions/venkman/resources/content/venkman-commands.js b/extensions/venkman/resources/content/venkman-commands.js new file mode 100644 index 00000000000..0b6292cbd70 --- /dev/null +++ b/extensions/venkman/resources/content/venkman-commands.js @@ -0,0 +1,50 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is The JavaScript Debugger + * + * The Initial Developer of the Original Code is + * Netscape Communications Corporation + * Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * + * Alternatively, the contents of this file may be used under the + * terms of the GNU Public License (the "GPL"), in which case the + * provisions of the GPL are applicable instead of those above. + * If you wish to allow use of your version of this file only + * under the terms of the GPL and not to allow others to use your + * version of this file under the MPL, indicate your decision by + * deleting the provisions above and replace them with the notice + * and other provisions required by the GPL. If you do not delete + * the provisions above, a recipient may use your version of this + * file under either the MPL or the GPL. + * + * Contributor(s): + * Robert Ginda, , original author + * + */ + +function initCommands(commandObject) +{ + + console.commands = new CCommandManager(); + + function add (name, func, usage, help) + { + console.commands.add (name, func, usage, help); + } + + add ("quit", "onInputQuit", "", + "Close this window."); + +} + diff --git a/extensions/venkman/resources/content/venkman-debugger.js b/extensions/venkman/resources/content/venkman-debugger.js new file mode 100644 index 00000000000..eb1ddbd9b8d --- /dev/null +++ b/extensions/venkman/resources/content/venkman-debugger.js @@ -0,0 +1,63 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is The JavaScript Debugger + * + * The Initial Developer of the Original Code is + * Netscape Communications Corporation + * Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * + * Alternatively, the contents of this file may be used under the + * terms of the GNU Public License (the "GPL"), in which case the + * provisions of the GPL are applicable instead of those above. + * If you wish to allow use of your version of this file only + * under the terms of the GPL and not to allow others to use your + * version of this file under the MPL, indicate your decision by + * deleting the provisions above and replace them with the notice + * and other provisions required by the GPL. If you do not delete + * the provisions above, a recipient may use your version of this + * file under either the MPL or the GPL. + * + * Contributor(s): + * Robert Ginda, , original author + * + */ + +var dbg; + +const JSD_CTRID = "@mozilla.org/js/jsd/debugger-service;1"; +const jsdIDebuggerService = Components.interfaces.jsdIDebuggerService; +const jsdIExecutionHook = Components.interfaces.jsdIExecutionHook; + +var scriptHooker = new Object(); +scriptHooker.onScriptHook = +function sh_scripthook (cx, script, creating) +{ + dd ("onScriptHook (" + cx + ", " + script + " " + creating + ")"); +} + +var interruptHooker = new Object(); +interruptHooker.onExecutionHook = +function ih_exehook (cx, state, type, rv) +{ + dd ("onInterruptHook (" + cx + ", " + state + ", " + type + ")"); + return jsdIExecutionHook.HOOK_RETURN_CONTINUE; +} + +function initDebugger() +{ + dbg = Components.classes[JSD_CTRID].getService(jsdIDebuggerService); + dbg.init(); + dbg.scriptHook = scriptHooker; + dbg.interruptHook = interruptHooker; +} diff --git a/extensions/venkman/resources/content/venkman-handlers.js b/extensions/venkman/resources/content/venkman-handlers.js new file mode 100644 index 00000000000..3a306dba873 --- /dev/null +++ b/extensions/venkman/resources/content/venkman-handlers.js @@ -0,0 +1,196 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is The JavaScript Debugger + * + * The Initial Developer of the Original Code is + * Netscape Communications Corporation + * Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * + * Alternatively, the contents of this file may be used under the + * terms of the GNU Public License (the "GPL"), in which case the + * provisions of the GPL are applicable instead of those above. + * If you wish to allow use of your version of this file only + * under the terms of the GPL and not to allow others to use your + * version of this file under the MPL, indicate your decision by + * deleting the provisions above and replace them with the notice + * and other provisions required by the GPL. If you do not delete + * the provisions above, a recipient may use your version of this + * file under either the MPL or the GPL. + * + * Contributor(s): + * Robert Ginda, , original author + * + */ + +/* Alphabetical order, please. */ + +console.onLoad = +function con_load (e) +{ + dd ("Application venkman, 'JavaScript Debugger' loaded."); + + init(); + + display ("testing 1 2 3", "TEST"); + display ("{ line1\n line2\nline3 }", "TEST"); + display ("testing 1 2 3", "TEST"); + +} + +console.onInputCommand = +function con_icommand (e) +{ + + var ary = console.commands.list (e.command); + + switch (ary.length) + { + case 0: + display ("Unknown command ``" + e.command + "''.", "ERROR"); + break; + + case 1: + if (typeof console[ary[0].func] == "undefined") + display ("Sorry, ``" + ary[0].name + + "'' has not been implemented.", "ERROR"); + else + { + e.commandEntry = ary[0]; + if (!console[ary[0].func](e)) + display ("USAGE" + ary[0].name + " " + ary[0].usage, + "USAGE"); + } + break; + + default: + display ("Ambiguous command: ``" + e.command + "''", "ERROR"); + var str = ""; + for (var i in ary) + str += str ? ", " + ary[i].name : ary[i].name; + display (ary.length + " commands match: " + str, "ERROR"); + } + +} + +console.onInputCompleteLine = +function con_icline (e) +{ + if (console._inputHistory[0] != e.line) + console._inputHistory.unshift (e.line); + + if (console._inputHistory.length > console.prefs["input.history.max"]) + console._inputHistory.pop(); + + console._lastHistoryReferenced = -1; + console._incompleteLine = ""; + + if (e.line[0] == console.prefs["input.commandchar"]) + { /* starts with a '/', look up the command */ + var ary = e.line.substr(1, e.line.length).match (/(\S+)? ?(.*)/); + var command = ary[1]; + + e.command = command; + e.inputData = ary[2] ? stringTrim(ary[2]) : ""; + e.line = e.line; + console.onInputCommand (e); + } + else /* no command character */ + { + e.inputData = e.line; + console.onInputEval (e); + } + +} + +console.onInputEval = +function con_ieval (e) +{ + try + { + display (e.inputData, "EVAL-IN"); + var rv = String(console.doEval (e.inputData)); + display (rv, "EVAL-OUT"); + } + catch (ex) + { + var str = ""; + + if ("name" in ex && "fileName" in ex && "lineNumber" in ex && + "message" in ex) + /* if it looks like a normal exception, print all the bits */ + str = ex.name + ": " + ex.fileName + ", line " + ex.lineNumber + + ": " + ex.message; + else + /* otherwise, just convert to a string */ + str = String(ex); + + display (str, "ERROR"); + } + + return true; +} + +console.onSingleLineKeypress = +function con_slkeypress (e) +{ + switch (e.keyCode) + { + case 13: + if (!e.target.value) + return; + + ev = new Object(); + ev.keyEvent = e; + ev.line = e.target.value; + console.onInputCompleteLine (ev); + e.target.value = ""; + break; + + case 38: /* up */ + if (console._lastHistoryReferenced < + console._inputHistory.length - 1) + e.target.value = + console._inputHistory[++console._lastHistoryReferenced]; + break; + + case 40: /* down */ + if (console._lastHistoryReferenced > 0) + e.target.value = + console._inputHistory[--console._lastHistoryReferenced]; + else + { + console._lastHistoryReferenced = -1; + e.target.value = console._incompleteLine; + } + + break; + + default: + console._incompleteLine = e.target.value; + break; + } +} + +console.onUnload = +function con_unload (e) +{ + dd ("Application venkman, 'JavaScript Debugger' unloaded."); +} + +window.onresize = +function () +{ + console.scrollDown(); +} + diff --git a/extensions/venkman/resources/content/venkman-output-window.html b/extensions/venkman/resources/content/venkman-output-window.html new file mode 100644 index 00000000000..bc8a4d5ab42 --- /dev/null +++ b/extensions/venkman/resources/content/venkman-output-window.html @@ -0,0 +1,6 @@ + + + +
+ diff --git a/extensions/venkman/resources/content/venkman-overlay.js b/extensions/venkman/resources/content/venkman-overlay.js new file mode 100644 index 00000000000..6451f006728 --- /dev/null +++ b/extensions/venkman/resources/content/venkman-overlay.js @@ -0,0 +1,40 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * + * The contents of this file are subject to the Mozilla Public License + * Version 1.1 (the "License"); you may not use this file except in + * compliance with the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is The JavaScript Debugger + * + * The Initial Developer of the Original Code is + * Netscape Communications Corporation + * Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. + * + * Alternatively, the contents of this file may be used under the + * terms of the GNU Public License (the "GPL"), in which case the + * provisions of the GPL are applicable instead of those above. + * If you wish to allow use of your version of this file only + * under the terms of the GPL and not to allow others to use your + * version of this file under the MPL, indicate your decision by + * deleting the provisions above and replace them with the notice + * and other provisions required by the GPL. If you do not delete + * the provisions above, a recipient may use your version of this + * file under either the MPL or the GPL. + * + * Contributor(s): + * Robert Ginda, , original author + * + */ + + +function start_venkman() +{ + toOpenWindowByType("mozapp:venkman", "chrome://venkman/content/venkman.xul"); +} diff --git a/extensions/venkman/resources/content/venkman-overlay.xul b/extensions/venkman/resources/content/venkman-overlay.xul new file mode 100644 index 00000000000..dd845f084f3 --- /dev/null +++ b/extensions/venkman/resources/content/venkman-overlay.xul @@ -0,0 +1,64 @@ + + + + + + + + + + + + + +