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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 1021083003: [DevTools] Pause input events in WebFrameWidgetImpl while debugging. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: typo Created 5 years, 9 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 | « Source/web/WebViewImpl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 8a2abf74f1cd0fa7e36178bafbd67ddbc50ed2bb..2518a458d541cbe69a138dc1729310ca89dbfa7f 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -378,6 +378,13 @@ void WebViewImpl::setSpellCheckClient(WebSpellCheckClient* spellCheckClient)
m_spellCheckClient = spellCheckClient;
}
+// static
+HashSet<WebViewImpl*>& WebViewImpl::allInstances()
+{
+ DEFINE_STATIC_LOCAL(HashSet<WebViewImpl*>, allInstances, ());
+ return allInstances;
+}
+
WebViewImpl::WebViewImpl(WebViewClient* client)
: m_client(client)
, m_spellCheckClient(0)
@@ -462,6 +469,8 @@ WebViewImpl::WebViewImpl(WebViewClient* client)
initializeLayerTreeView();
m_devToolsEmulator = adoptPtr(new DevToolsEmulator(this));
+
+ allInstances().add(this);
}
WebViewImpl::~WebViewImpl()
@@ -1685,6 +1694,10 @@ void WebViewImpl::close()
if (m_devToolsAgent)
m_devToolsAgent->willBeDestroyed();
+ WebDevToolsAgentImpl::webViewImplClosed(this);
+ ASSERT(allInstances().contains(this));
+ allInstances().remove(this);
+
if (m_page) {
// Initiate shutdown for the entire frameset. This will cause a lot of
// notifications to be sent.
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698