diff options
author | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-31 16:25:09 +0000 |
---|---|---|
committer | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-31 16:25:09 +0000 |
commit | 5ced5eb46be9e6c2d2b72a421d930cee6d7fcf89 (patch) | |
tree | ffccdfbb0ccd8a7f2663d0144e7684c8ffee0194 /chrome/browser/debugger/debugger_shell.h | |
parent | f18953d3c2a4eae2bc33b1eecce96e28f0815a64 (diff) | |
download | chromium_src-5ced5eb46be9e6c2d2b72a421d930cee6d7fcf89.zip chromium_src-5ced5eb46be9e6c2d2b72a421d930cee6d7fcf89.tar.gz chromium_src-5ced5eb46be9e6c2d2b72a421d930cee6d7fcf89.tar.bz2 |
Initial cleanup and refactoring to make debugger UI use DHTML and get rid of the last of its native UI. This is done using a DOMUIHost subclass and a new TabContents type.
This checkin also fixes a few minor issues:
* hitting the keyboard accelerator brings the current debugger window to front
* text is grayed out when in "running" mode rather than "paused"
* up/down arrows have command-line history (transient)
* some text used to get eaten when you first bring up the window ("attached to <tabname>"), this is now handled
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/debugger/debugger_shell.h')
-rw-r--r-- | chrome/browser/debugger/debugger_shell.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/debugger/debugger_shell.h b/chrome/browser/debugger/debugger_shell.h index d7b18b4..cafb8bf 100644 --- a/chrome/browser/debugger/debugger_shell.h +++ b/chrome/browser/debugger/debugger_shell.h @@ -47,7 +47,7 @@ class DebuggerShell : public base::RefCountedThreadSafe<DebuggerShell> { public: DebuggerShell() { - LOG(ERROR) << "Debug Debugger not enabled for KJS"; + LOG(ERROR) << "Debugger not enabled for KJS"; } virtual ~DebuggerShell() {} void Start() {} @@ -83,7 +83,8 @@ class DebuggerShell : public base::RefCountedThreadSafe<DebuggerShell> { // SocketInputOutput callback methods void DidConnect(); - void ProcessCommand(const std::string& data); + void DidDisconnect(); + void ProcessCommand(const std::wstring& data); static v8::Handle<v8::Value> SetDebuggerReady(const v8::Arguments& args, DebuggerShell* debugger); @@ -108,6 +109,8 @@ class DebuggerShell : public base::RefCountedThreadSafe<DebuggerShell> { void PrintLine(const std::string& out); void PrintString(const std::string& out); void PrintPrompt(); + v8::Handle<v8::Value> CompileAndRun(const std::wstring& wstr, + const std::string& filename = ""); v8::Handle<v8::Value> CompileAndRun(const std::string& str, const std::string& filename = ""); @@ -120,7 +123,7 @@ class DebuggerShell : public base::RefCountedThreadSafe<DebuggerShell> { void MessageListener(v8::Handle<v8::Message> message); - // global debugger() function designed to allow command-line processing by + // global shell() function designed to allow command-line processing by // javascript code rather than by this object. static v8::Handle<v8::Value> DelegateSubshell(const v8::Arguments& args); v8::Handle<v8::Value> Subshell(const v8::Arguments& args); |