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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp

Issue 2687623002: DevTools: Support breakpoints on canvas context creation (Closed)
Patch Set: Created 3 years, 10 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
Index: third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
index afdd56be051ffd73acec5121a38e97b126721eed..05e4a4372df607d5c3f9f79fb81c7921da75a5ff 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
@@ -63,6 +63,7 @@ static const char webglErrorFiredEventName[] = "webglErrorFired";
static const char webglWarningFiredEventName[] = "webglWarningFired";
static const char webglErrorNameProperty[] = "webglErrorName";
static const char scriptBlockedByCSPEventName[] = "scriptBlockedByCSP";
+static const char canvasContextCreatedEventName[] = "canvasContextCreated";
namespace DOMDebuggerAgentState {
static const char eventListenerBreakpoints[] = "eventListenerBreakpoints";
@@ -774,6 +775,11 @@ void InspectorDOMDebuggerAgent::willSendXMLHttpOrFetchNetworkRequest(
toV8InspectorStringView(json));
}
+void InspectorDOMDebuggerAgent::didCreateCanvasContext() {
+ pauseOnNativeEventIfNeeded(
+ preparePauseOnNativeEventData(canvasContextCreatedEventName, 0), true);
+}
+
void InspectorDOMDebuggerAgent::didAddBreakpoint() {
if (m_state->booleanProperty(DOMDebuggerAgentState::enabled, false))
return;

Powered by Google App Engine
This is Rietveld 408576698