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 #ifndef CHROME_BROWSER_DEBUGGER_DEBUGGER_IO_H_ | 5 #ifndef CHROME_BROWSER_DEBUGGER_DEBUGGER_IO_H_ |
6 #define CHROME_BROWSER_DEBUGGER_DEBUGGER_IO_H_ | 6 #define CHROME_BROWSER_DEBUGGER_DEBUGGER_IO_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 // entered and true when a response to that command has been received | 38 // entered and true when a response to that command has been received |
39 virtual void SetDebuggerReady(bool ready) {} | 39 virtual void SetDebuggerReady(bool ready) {} |
40 // called by debugger debugger - brk is false when the web page being debugged | 40 // called by debugger debugger - brk is false when the web page being debugged |
41 // is running, and true when the page is stopped at a breakpoint | 41 // is running, and true when the page is stopped at a breakpoint |
42 virtual void SetDebuggerBreak(bool brk) {} | 42 virtual void SetDebuggerBreak(bool brk) {} |
43 | 43 |
44 // sends message to debugger UI page in order to invoke JS function in it | 44 // sends message to debugger UI page in order to invoke JS function in it |
45 virtual void CallFunctionInPage(const std::wstring& name, | 45 virtual void CallFunctionInPage(const std::wstring& name, |
46 ListValue* argv) {} | 46 ListValue* argv) {} |
47 | 47 |
| 48 // Shows the debugger UI and returns true if it has any. |
| 49 virtual bool ShowWindow() { return false; } |
| 50 |
48 protected: | 51 protected: |
49 DebuggerHost* debugger_; | 52 DebuggerHost* debugger_; |
50 | 53 |
51 private: | 54 private: |
52 DISALLOW_COPY_AND_ASSIGN(DebuggerInputOutput); | 55 DISALLOW_COPY_AND_ASSIGN(DebuggerInputOutput); |
53 }; | 56 }; |
54 | 57 |
55 #endif // CHROME_BROWSER_DEBUGGER_DEBUGGER_IO_H_ | 58 #endif // CHROME_BROWSER_DEBUGGER_DEBUGGER_IO_H_ |
OLD | NEW |