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_view.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_view.h')
-rw-r--r-- | chrome/browser/debugger/debugger_view.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/chrome/browser/debugger/debugger_view.h b/chrome/browser/debugger/debugger_view.h index a4ae560..aaa372c 100644 --- a/chrome/browser/debugger/debugger_view.h +++ b/chrome/browser/debugger/debugger_view.h @@ -48,7 +48,7 @@ class WebContents; class DebuggerView : public ChromeViews::View, public TabContentsDelegate { public: - DebuggerView(ChromeViews::TextField::Controller* controller); + DebuggerView(); virtual ~DebuggerView(); // Output a line of text to the debugger view @@ -63,6 +63,11 @@ class DebuggerView : public ChromeViews::View, // Called when the window is being closed. void OnClose(); + // Called when the debugger hits a breakpoint or continues. + void SetDebuggerBreak(bool is_broken); + + void SetOutputViewReady(); + // Overridden from ChromeViews::View: virtual std::string GetClassName() const { return "DebuggerView"; @@ -71,11 +76,13 @@ class DebuggerView : public ChromeViews::View, virtual void Layout(); virtual void Paint(ChromeCanvas* canvas); - // Overridden from TabContentsDelegate: + // Overridden from PageNavigator (TabContentsDelegate's base interface): virtual void OpenURLFromTab(TabContents* source, const GURL& url, WindowOpenDisposition disposition, PageTransition::Type transition); + + // Overridden from TabContentsDelegate: virtual void NavigationStateChanged(const TabContents* source, unsigned changed_flags) {} virtual void ReplaceContents(TabContents* source, @@ -86,7 +93,7 @@ class DebuggerView : public ChromeViews::View, const gfx::Rect& initial_pos, bool user_gesture) {} virtual void ActivateContents(TabContents* contents) {} - virtual void LoadingStateChanged(TabContents* source) {} + virtual void LoadingStateChanged(TabContents* source); virtual void CloseContents(TabContents* source) {} virtual void MoveContents(TabContents* source, const gfx::Rect& pos) {} virtual bool IsPopup(TabContents* source) { return false; } @@ -96,12 +103,14 @@ class DebuggerView : public ChromeViews::View, virtual bool CanBlur() const { return false; } private: + void ExecuteJavascript(const std::string& js); - ChromeViews::TextField* command_text_; DebuggerWindow* window_; ChromeFont font_; WebContents* web_contents_; TabContentsContainerView* web_container_; + std::vector<std::wstring> pending_output_; + bool output_ready_; DISALLOW_EVIL_CONSTRUCTORS(DebuggerView); }; |