summaryrefslogtreecommitdiffstats
path: root/chrome/browser/debugger/debugger_view.h
diff options
context:
space:
mode:
authorsgjesse@chromium.org <sgjesse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-03 14:04:49 +0000
committersgjesse@chromium.org <sgjesse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-03 14:04:49 +0000
commit6012ad27a7c289d27bbff436bf6affd62a00a18a (patch)
tree88c98a791b774107499c4229ef4b3c046f3aba2e /chrome/browser/debugger/debugger_view.h
parent1b25616475b3f7ac67d8c3e2d2d04adcc4ddaab5 (diff)
downloadchromium_src-6012ad27a7c289d27bbff436bf6affd62a00a18a.zip
chromium_src-6012ad27a7c289d27bbff436bf6affd62a00a18a.tar.gz
chromium_src-6012ad27a7c289d27bbff436bf6affd62a00a18a.tar.bz2
Copy of http://codereview.chromium.org/13003 created by yury.semikhatsky@gmail.com for final commit.
Review URL: http://codereview.chromium.org/13092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6286 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/debugger/debugger_view.h')
-rw-r--r--chrome/browser/debugger/debugger_view.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/debugger/debugger_view.h b/chrome/browser/debugger/debugger_view.h
index 5a7f775..9603777 100644
--- a/chrome/browser/debugger/debugger_view.h
+++ b/chrome/browser/debugger/debugger_view.h
@@ -18,6 +18,7 @@
class DebuggerView;
class DebuggerWindow;
class TabContentsContainerView;
+class Value;
class WebContents;
class DebuggerView : public views::View,
@@ -38,9 +39,6 @@ class DebuggerView : public views::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 views::View:
@@ -81,6 +79,10 @@ class DebuggerView : public views::View,
virtual void UpdateTargetURL(TabContents* source, const GURL& url) {}
virtual bool CanBlur() const { return false; }
+ // To pass messages from DebuggerHost to debugger UI.
+ // Note that this method will take ownership of body.
+ void SendEventToPage(const std::wstring& name, Value* body);
+
private:
void ExecuteJavascript(const std::string& js);
@@ -88,6 +90,7 @@ class DebuggerView : public views::View,
WebContents* web_contents_;
TabContentsContainerView* web_container_;
std::vector<std::wstring> pending_output_;
+ std::vector<std::string> pending_events_;
bool output_ready_;
DISALLOW_EVIL_CONSTRUCTORS(DebuggerView);