| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 InstrumentingAgents* instrumentingAgentsFor(Node*); | 116 InstrumentingAgents* instrumentingAgentsFor(Node*); |
| 117 InstrumentingAgents* instrumentingAgentsFor(WorkerGlobalScope*); | 117 InstrumentingAgents* instrumentingAgentsFor(WorkerGlobalScope*); |
| 118 | 118 |
| 119 // Helper for the one above. | 119 // Helper for the one above. |
| 120 InstrumentingAgents* instrumentingAgentsForNonDocumentContext(ExecutionContext*)
; | 120 InstrumentingAgents* instrumentingAgentsForNonDocumentContext(ExecutionContext*)
; |
| 121 | 121 |
| 122 } // namespace InspectorInstrumentation | 122 } // namespace InspectorInstrumentation |
| 123 | 123 |
| 124 namespace InstrumentationEvents { | 124 namespace InstrumentationEvents { |
| 125 extern const char PaintSetup[]; | 125 extern const char PaintSetup[]; |
| 126 extern const char PaintLayer[]; | |
| 127 extern const char RasterTask[]; | 126 extern const char RasterTask[]; |
| 128 extern const char Paint[]; | 127 extern const char Paint[]; |
| 129 extern const char Layer[]; | 128 extern const char Layer[]; |
| 130 extern const char BeginFrame[]; | 129 extern const char BeginFrame[]; |
| 131 extern const char UpdateLayer[]; | |
| 132 }; | 130 }; |
| 133 | 131 |
| 134 namespace InstrumentationEventArguments { | 132 namespace InstrumentationEventArguments { |
| 135 extern const char LayerId[]; | 133 extern const char LayerId[]; |
| 136 extern const char LayerTreeId[]; | 134 extern const char LayerTreeId[]; |
| 137 extern const char NodeId[]; | |
| 138 extern const char PageId[]; | 135 extern const char PageId[]; |
| 139 }; | 136 }; |
| 140 | 137 |
| 141 namespace InspectorInstrumentation { | 138 namespace InspectorInstrumentation { |
| 142 | 139 |
| 143 inline InstrumentingAgents* instrumentingAgentsFor(ExecutionContext* context) | 140 inline InstrumentingAgents* instrumentingAgentsFor(ExecutionContext* context) |
| 144 { | 141 { |
| 145 if (!context) | 142 if (!context) |
| 146 return 0; | 143 return 0; |
| 147 return context->isDocument() ? instrumentingAgentsFor(*toDocument(context))
: instrumentingAgentsForNonDocumentContext(context); | 144 return context->isDocument() ? instrumentingAgentsFor(*toDocument(context))
: instrumentingAgentsForNonDocumentContext(context); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 } // namespace WebCore | 186 } // namespace WebCore |
| 190 | 187 |
| 191 // This file will soon be generated | 188 // This file will soon be generated |
| 192 #include "InspectorInstrumentationInl.h" | 189 #include "InspectorInstrumentationInl.h" |
| 193 | 190 |
| 194 #include "InspectorInstrumentationCustomInl.h" | 191 #include "InspectorInstrumentationCustomInl.h" |
| 195 | 192 |
| 196 #include "InspectorOverridesInl.h" | 193 #include "InspectorOverridesInl.h" |
| 197 | 194 |
| 198 #endif // !defined(InspectorInstrumentation_h) | 195 #endif // !defined(InspectorInstrumentation_h) |
| OLD | NEW |