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

Unified Diff: content/browser/debugger/devtools_window.cc

Issue 7257002: DevTools: handle docked window close in DevToolsWindow, not DevToolsManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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 | « content/browser/debugger/devtools_window.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/debugger/devtools_window.cc
diff --git a/content/browser/debugger/devtools_window.cc b/content/browser/debugger/devtools_window.cc
index 1b3ad5e19f1c38ddacad39a9b72df677a7c137d4..96af885f9f1587603778cc1df3a1c31e296c6411 100644
--- a/content/browser/debugger/devtools_window.cc
+++ b/content/browser/debugger/devtools_window.cc
@@ -221,6 +221,12 @@ void DevToolsWindow::SetDocked(bool docked) {
Show(DEVTOOLS_TOGGLE_ACTION_NONE);
}
+void DevToolsWindow::Close() {
+ DCHECK(docked_);
+ NotifyCloseListener();
+ InspectedTabClosing();
+}
+
RenderViewHost* DevToolsWindow::GetRenderViewHost() {
return tab_contents_->render_view_host();
}
« no previous file with comments | « content/browser/debugger/devtools_window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698