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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 23 matching lines...) Expand all
34 #include "InspectorCanvasAgent.h" 34 #include "InspectorCanvasAgent.h"
35 #include "InspectorInstrumentation.h" 35 #include "InspectorInstrumentation.h"
36 #include "InstrumentingAgents.h" 36 #include "InstrumentingAgents.h"
37 #include "ScriptObject.h" 37 #include "ScriptObject.h"
38 #include <wtf/UnusedParam.h> 38 #include <wtf/UnusedParam.h>
39 39
40 namespace WebCore { 40 namespace WebCore {
41 41
42 ScriptObject InspectorInstrumentation::wrapCanvas2DRenderingContextForInstrument ation(Document* document, const ScriptObject& context) 42 ScriptObject InspectorInstrumentation::wrapCanvas2DRenderingContextForInstrument ation(Document* document, const ScriptObject& context)
43 { 43 {
44 #if ENABLE(INSPECTOR)
45 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) { 44 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) {
46 if (InspectorCanvasAgent* canvasAgent = instrumentingAgents->inspectorCa nvasAgent()) 45 if (InspectorCanvasAgent* canvasAgent = instrumentingAgents->inspectorCa nvasAgent())
47 return canvasAgent->wrapCanvas2DRenderingContextForInstrumentation(c ontext); 46 return canvasAgent->wrapCanvas2DRenderingContextForInstrumentation(c ontext);
48 } 47 }
49 #else
50 UNUSED_PARAM(document);
51 UNUSED_PARAM(context);
52 #endif
53 return ScriptObject(); 48 return ScriptObject();
54 } 49 }
55 50
56 #if ENABLE(WEBGL) 51 #if ENABLE(WEBGL)
57 ScriptObject InspectorInstrumentation::wrapWebGLRenderingContextForInstrumentati on(Document* document, const ScriptObject& glContext) 52 ScriptObject InspectorInstrumentation::wrapWebGLRenderingContextForInstrumentati on(Document* document, const ScriptObject& glContext)
58 { 53 {
59 #if ENABLE(INSPECTOR)
60 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) { 54 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForDocumen t(document)) {
61 if (InspectorCanvasAgent* canvasAgent = instrumentingAgents->inspectorCa nvasAgent()) 55 if (InspectorCanvasAgent* canvasAgent = instrumentingAgents->inspectorCa nvasAgent())
62 return canvasAgent->wrapWebGLRenderingContextForInstrumentation(glCo ntext); 56 return canvasAgent->wrapWebGLRenderingContextForInstrumentation(glCo ntext);
63 } 57 }
64 #else
65 UNUSED_PARAM(document);
66 UNUSED_PARAM(glContext);
67 #endif
68 return ScriptObject(); 58 return ScriptObject();
69 } 59 }
70 #endif // ENABLE(WEBGL) 60 #endif // ENABLE(WEBGL)
71 61
72 } // namespace WebCore 62 } // namespace WebCore
73 63
74 #endif // !defined(InspectorCanvasInstrumentation_h) 64 #endif // !defined(InspectorCanvasInstrumentation_h)
OLDNEW
« 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