Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(636)

Unified Diff: chrome/browser/debugger/debugger_view.h

Issue 92116: Stop debugger by escape key. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/debugger/debugger_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/debugger/debugger_view.h
===================================================================
--- chrome/browser/debugger/debugger_view.h (revision 14268)
+++ chrome/browser/debugger/debugger_view.h (working copy)
@@ -24,7 +24,7 @@
class DebuggerView : public views::View,
public TabContentsDelegate {
public:
- DebuggerView();
+ explicit DebuggerView(DebuggerWindow* window);
virtual ~DebuggerView();
// Output a line of text to the debugger view
@@ -81,9 +81,13 @@
// Note that this method will take ownership of body.
void SendEventToPage(const std::wstring& name, Value* body);
+ // Handles escape key and close the debug window.
+ virtual bool AcceleratorPressed(const views::Accelerator& accelerator);
+
private:
void ExecuteJavascript(const std::string& js);
+ DebuggerWindow* window_;
ChromeFont font_;
WebContents* web_contents_;
TabContentsContainerView* web_container_;
« no previous file with comments | « no previous file | chrome/browser/debugger/debugger_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698