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

Side by Side Diff: chrome/browser/debugger/debugger_window.h

Issue 115050: Enabled Ctrl+Shift+L for POPUP and APP windows.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/debugger/debugger_io.h ('k') | chrome/browser/debugger/debugger_window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_WINDOW_H__ 5 #ifndef CHROME_BROWSER_DEBUGGER_DEBUGGER_WINDOW_H__
6 #define CHROME_BROWSER_DEBUGGER_DEBUGGER_WINDOW_H__ 6 #define CHROME_BROWSER_DEBUGGER_DEBUGGER_WINDOW_H__
7 7
8 #include "chrome/browser/debugger/debugger_io.h" 8 #include "chrome/browser/debugger/debugger_io.h"
9 #include "chrome/views/window/window.h" 9 #include "chrome/views/window/window.h"
10 #include "chrome/views/window/window_delegate.h" 10 #include "chrome/views/window/window_delegate.h"
11 11
12 class DebuggerHost;
12 class DebuggerView; 13 class DebuggerView;
13 class ListValue; 14 class ListValue;
14 class TabContents; 15 class TabContents;
15 16
16 class DebuggerWindow : public DebuggerInputOutput, 17 class DebuggerWindow : public DebuggerInputOutput,
17 public views::WindowDelegate { 18 public views::WindowDelegate {
18 public: 19 public:
19 DebuggerWindow(); 20 DebuggerWindow();
20 virtual ~DebuggerWindow(); 21 virtual ~DebuggerWindow();
21 22
22 // returns true if a debugger has already been instantiated 23 // returns true if a debugger has already been instantiated
23 static bool DoesDebuggerExist(); 24 static DebuggerHost* GetAnyExistingDebugger();
24 25
25 // Show the window 26 // Show the window
26 void Show(TabContents* tab); 27 void Show(TabContents* tab);
27 28
28 // overrides from DebuggerInputOutput 29 // overrides from DebuggerInputOutput
29 virtual void Output(const std::wstring& out); 30 virtual void Output(const std::wstring& out);
30 virtual void OutputLine(const std::wstring& out); 31 virtual void OutputLine(const std::wstring& out);
31 virtual void OutputPrompt(const std::wstring& prompt); 32 virtual void OutputPrompt(const std::wstring& prompt);
32 virtual void Output(const std::string& out); 33 virtual void Output(const std::string& out);
33 virtual void OutputLine(const std::string& out); 34 virtual void OutputLine(const std::string& out);
34 virtual void OutputPrompt(const std::string& prompt); 35 virtual void OutputPrompt(const std::string& prompt);
35 virtual void Start(DebuggerHost* debugger); 36 virtual void Start(DebuggerHost* debugger);
36 virtual void SetDebuggerReady(bool ready); 37 virtual void SetDebuggerReady(bool ready);
37 virtual void SetDebuggerBreak(bool brk); 38 virtual void SetDebuggerBreak(bool brk);
39 virtual bool ShowWindow();
38 40
39 // Note that this method will take ownership of argv. 41 // Note that this method will take ownership of argv.
40 virtual void CallFunctionInPage(const std::wstring& name, 42 virtual void CallFunctionInPage(const std::wstring& name,
41 ListValue* argv); 43 ListValue* argv);
42 44
43 // views::WindowDelegate methods: 45 // views::WindowDelegate methods:
44 virtual std::wstring GetWindowTitle() const; 46 virtual std::wstring GetWindowTitle() const;
45 virtual void WindowClosing(); 47 virtual void WindowClosing();
46 virtual bool CanResize() const; 48 virtual bool CanResize() const;
47 virtual views::View* GetContentsView(); 49 virtual views::View* GetContentsView();
48 50
49 private: 51 private:
50 views::Window* window_; 52 views::Window* window_;
51 DebuggerView* view_; 53 DebuggerView* view_;
52 54
53 bool debugger_ready_; 55 bool debugger_ready_;
54 bool debugger_break_; 56 bool debugger_break_;
55 57
56 DISALLOW_EVIL_CONSTRUCTORS(DebuggerWindow); 58 DISALLOW_EVIL_CONSTRUCTORS(DebuggerWindow);
57 }; 59 };
58 60
59 #endif // CHROME_BROWSER_DEBUGGER_DEBUGGER_WINDOW_H__ 61 #endif // CHROME_BROWSER_DEBUGGER_DEBUGGER_WINDOW_H__
OLDNEW
« no previous file with comments | « chrome/browser/debugger/debugger_io.h ('k') | chrome/browser/debugger/debugger_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698