| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Simple UI for the command-line V8 debugger consisting of a text field for | 5 // Simple UI for the command-line V8 debugger consisting of a text field for |
| 6 // entry and an output view consisting of (potentially wrapped) lines of text. | 6 // entry and an output view consisting of (potentially wrapped) lines of text. |
| 7 | 7 |
| 8 // TODO(erikkay): investigate replacing this with a DHTML interface | 8 // TODO(erikkay): investigate replacing this with a DHTML interface |
| 9 | 9 |
| 10 #ifndef CHROME_BROWSER_DEBUGGER_DEBUGGER_VIEW_H__ | 10 #ifndef CHROME_BROWSER_DEBUGGER_DEBUGGER_VIEW_H__ |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // Note that this method will take ownership of body. | 81 // Note that this method will take ownership of body. |
| 82 void SendEventToPage(const std::wstring& name, Value* body); | 82 void SendEventToPage(const std::wstring& name, Value* body); |
| 83 | 83 |
| 84 // Handles escape key and close the debug window. | 84 // Handles escape key and close the debug window. |
| 85 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); | 85 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); |
| 86 | 86 |
| 87 private: | 87 private: |
| 88 void ExecuteJavascript(const std::string& js); | 88 void ExecuteJavascript(const std::string& js); |
| 89 | 89 |
| 90 DebuggerWindow* window_; | 90 DebuggerWindow* window_; |
| 91 ChromeFont font_; | 91 gfx::Font font_; |
| 92 TabContents* tab_contents_; | 92 TabContents* tab_contents_; |
| 93 TabContentsContainerView* web_container_; | 93 TabContentsContainerView* web_container_; |
| 94 std::vector<std::wstring> pending_output_; | 94 std::vector<std::wstring> pending_output_; |
| 95 std::vector<std::string> pending_events_; | 95 std::vector<std::string> pending_events_; |
| 96 bool output_ready_; | 96 bool output_ready_; |
| 97 | 97 |
| 98 DISALLOW_EVIL_CONSTRUCTORS(DebuggerView); | 98 DISALLOW_EVIL_CONSTRUCTORS(DebuggerView); |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 | 101 |
| 102 #endif // CHROME_BROWSER_DEBUGGER_DEBUGGER_VIEW_H__ | 102 #endif // CHROME_BROWSER_DEBUGGER_DEBUGGER_VIEW_H__ |
| OLD | NEW |