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

Unified Diff: chrome/browser/debugger/debugger_window.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/debugger/debugger_window.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/debugger/debugger_window.cc
===================================================================
--- chrome/browser/debugger/debugger_window.cc (revision 15515)
+++ chrome/browser/debugger/debugger_window.cc (working copy)
@@ -24,20 +24,17 @@
DebuggerWindow::~DebuggerWindow() {
}
-bool DebuggerWindow::DoesDebuggerExist() {
+DebuggerHost* DebuggerWindow::GetAnyExistingDebugger() {
DebuggerWrapper* wrapper = g_browser_process->debugger_wrapper();
if (!wrapper)
- return false;
- return wrapper->GetDebugger() != NULL;
+ return NULL;
+ return wrapper->GetDebugger();
}
void DebuggerWindow::Show(TabContents* tab) {
#ifndef CHROME_DEBUGGER_DISABLED
- if (window_) {
- window_->Show();
- view_->OnShow();
+ if (ShowWindow())
return;
- }
view_ = new DebuggerView(this);
window_ = views::Window::CreateChromeWindow(NULL, gfx::Rect(), this);
window_->Show();
@@ -137,6 +134,17 @@
}
}
+bool DebuggerWindow::ShowWindow() {
+#ifndef CHROME_DEBUGGER_DISABLED
+ if (window_) {
+ window_->Show();
+ view_->OnShow();
+ return true;
+ }
+#endif
+ return false;
+}
+
///////////////////////////////////////////////////////////////////
// views::WindowDelegate methods
« no previous file with comments | « chrome/browser/debugger/debugger_window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698