OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef InspectorTraceEvents_h | 5 #ifndef InspectorTraceEvents_h |
6 #define InspectorTraceEvents_h | 6 #define InspectorTraceEvents_h |
7 | 7 |
8 #include "platform/EventTracer.h" | 8 #include "platform/EventTracer.h" |
9 #include "platform/TraceEvent.h" | 9 #include "platform/TraceEvent.h" |
10 #include "wtf/Forward.h" | 10 #include "wtf/Forward.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class Document; | 14 class Document; |
15 class Event; | 15 class Event; |
16 class ExecutionContext; | 16 class ExecutionContext; |
17 class FrameView; | 17 class FrameView; |
18 class GraphicsContext; | 18 class GraphicsContext; |
19 class GraphicsLayer; | 19 class GraphicsLayer; |
20 class KURL; | 20 class KURL; |
21 class LayoutRect; | 21 class LayoutRect; |
22 class LocalFrame; | 22 class LocalFrame; |
| 23 class RenderImage; |
| 24 class RenderLayer; |
23 class RenderObject; | 25 class RenderObject; |
24 class RenderImage; | |
25 class ResourceRequest; | 26 class ResourceRequest; |
26 class ResourceResponse; | 27 class ResourceResponse; |
27 class ScriptSourceCode; | 28 class ScriptSourceCode; |
28 class ScriptCallStack; | 29 class ScriptCallStack; |
29 class WorkerThread; | 30 class WorkerThread; |
30 class XMLHttpRequest; | 31 class XMLHttpRequest; |
31 | 32 |
32 class InspectorLayoutEvent { | 33 class InspectorLayoutEvent { |
33 public: | 34 public: |
34 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> beginData(FrameView*
); | 35 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> beginData(FrameView*
); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 class InspectorXhrReadyStateChangeEvent { | 94 class InspectorXhrReadyStateChangeEvent { |
94 public: | 95 public: |
95 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(ExecutionContex
t*, XMLHttpRequest*); | 96 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(ExecutionContex
t*, XMLHttpRequest*); |
96 }; | 97 }; |
97 | 98 |
98 class InspectorXhrLoadEvent { | 99 class InspectorXhrLoadEvent { |
99 public: | 100 public: |
100 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(ExecutionContex
t*, XMLHttpRequest*); | 101 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(ExecutionContex
t*, XMLHttpRequest*); |
101 }; | 102 }; |
102 | 103 |
| 104 class InspectorLayerInvalidationTrackingEvent { |
| 105 public: |
| 106 static const char SquashingLayerGeometryWasUpdated[]; |
| 107 static const char AddedToSquashingLayer[]; |
| 108 static const char RemovedFromSquashingLayer[]; |
| 109 static const char ReflectionLayerChanged[]; |
| 110 static const char NewCompositedLayer[]; |
| 111 static const char AncestorRequiresNewLayer[]; |
| 112 |
| 113 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const RenderLay
er*, const char* reason); |
| 114 }; |
| 115 #define TRACE_LAYER_INVALIDATION(LAYER, REASON) \ |
| 116 TRACE_EVENT_INSTANT1( \ |
| 117 TRACE_DISABLED_BY_DEFAULT("devtools.timeine.invalidationTracking"), \ |
| 118 "LayerInvalidationTracking", \ |
| 119 "data", \ |
| 120 InspectorLayerInvalidationTrackingEvent::data((LAYER), (REASON))) |
| 121 |
103 class InspectorPaintEvent { | 122 class InspectorPaintEvent { |
104 public: | 123 public: |
105 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(RenderObject*,
const LayoutRect& clipRect, const GraphicsLayer*); | 124 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(RenderObject*,
const LayoutRect& clipRect, const GraphicsLayer*); |
106 }; | 125 }; |
107 | 126 |
108 class InspectorPaintImageEvent { | 127 class InspectorPaintImageEvent { |
109 public: | 128 public: |
110 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const RenderIma
ge&); | 129 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const RenderIma
ge&); |
111 }; | 130 }; |
112 | 131 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 | 171 |
153 class InspectorTracingSessionIdForWorkerEvent { | 172 class InspectorTracingSessionIdForWorkerEvent { |
154 public: | 173 public: |
155 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const String& s
essionId, WorkerThread*); | 174 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const String& s
essionId, WorkerThread*); |
156 }; | 175 }; |
157 | 176 |
158 } // namespace blink | 177 } // namespace blink |
159 | 178 |
160 | 179 |
161 #endif // !defined(InspectorTraceEvents_h) | 180 #endif // !defined(InspectorTraceEvents_h) |
OLD | NEW |