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

Unified Diff: webkit/glue/inspector_client_impl.cc

Issue 113836: DevTools: introduce bound object on the agent side. (Closed) Base URL: svn://chrome-svn/chrome/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 | « webkit/glue/devtools/tools_agent.h ('k') | webkit/glue/webdevtoolsagent_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/inspector_client_impl.cc
===================================================================
--- webkit/glue/inspector_client_impl.cc (revision 16977)
+++ webkit/glue/inspector_client_impl.cc (working copy)
@@ -49,6 +49,9 @@
}
Page* WebInspectorClient::createPage() {
+ if (inspected_web_view_->GetWebDevToolsAgentImpl())
+ return NULL;
+
WebCore::Page* page;
if (inspector_web_view_ != NULL) {
@@ -98,6 +101,9 @@
}
void WebInspectorClient::showWindow() {
+ if (inspected_web_view_->GetWebDevToolsAgentImpl())
+ return;
+
InspectorController* inspector = inspected_web_view_->page()->inspectorController();
inspector->setWindowVisible(true);
@@ -108,6 +114,9 @@
}
void WebInspectorClient::closeWindow() {
+ if (inspected_web_view_->GetWebDevToolsAgentImpl())
+ return;
+
inspector_web_view_ = NULL;
hideHighlight();
@@ -117,6 +126,9 @@
}
bool WebInspectorClient::windowVisible() {
+ if (inspected_web_view_->GetWebDevToolsAgentImpl())
+ return false;
+
if (inspector_web_view_ != NULL) {
Page* page = inspector_web_view_->page();
ASSERT(page != NULL);
« no previous file with comments | « webkit/glue/devtools/tools_agent.h ('k') | webkit/glue/webdevtoolsagent_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698