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

Unified Diff: Source/WebCore/inspector/InspectorCanvasInstrumentation.h

Issue 13646003: DevTools: Remove ENABLE(INSPECTOR) and ENABLE(JAVASCRIPT_DEBUGGER) from the code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: comments addressed Created 7 years, 8 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/WebCore/inspector/InspectorCanvasAgent.cpp ('k') | Source/WebCore/inspector/InspectorClient.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/inspector/InspectorCanvasInstrumentation.h
diff --git a/Source/WebCore/inspector/InspectorCanvasInstrumentation.h b/Source/WebCore/inspector/InspectorCanvasInstrumentation.h
index aee1a822a77041566684a6892617c7a36251ebbe..ee750aa09ad76982a1c077b409cf10eed9210616 100644
--- a/Source/WebCore/inspector/InspectorCanvasInstrumentation.h
+++ b/Source/WebCore/inspector/InspectorCanvasInstrumentation.h
@@ -41,30 +41,20 @@ namespace WebCore {
ScriptObject InspectorInstrumentation::wrapCanvas2DRenderingContextForInstrumentation(Document* document, const ScriptObject& context)
{
-#if ENABLE(INSPECTOR)
if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocument(document)) {
if (InspectorCanvasAgent* canvasAgent = instrumentingAgents->inspectorCanvasAgent())
return canvasAgent->wrapCanvas2DRenderingContextForInstrumentation(context);
}
-#else
- UNUSED_PARAM(document);
- UNUSED_PARAM(context);
-#endif
return ScriptObject();
}
#if ENABLE(WEBGL)
ScriptObject InspectorInstrumentation::wrapWebGLRenderingContextForInstrumentation(Document* document, const ScriptObject& glContext)
{
-#if ENABLE(INSPECTOR)
if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocument(document)) {
if (InspectorCanvasAgent* canvasAgent = instrumentingAgents->inspectorCanvasAgent())
return canvasAgent->wrapWebGLRenderingContextForInstrumentation(glContext);
}
-#else
- UNUSED_PARAM(document);
- UNUSED_PARAM(glContext);
-#endif
return ScriptObject();
}
#endif // ENABLE(WEBGL)
« no previous file with comments | « Source/WebCore/inspector/InspectorCanvasAgent.cpp ('k') | Source/WebCore/inspector/InspectorClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698