| 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 "core/css/CSSSelector.h" | 8 #include "core/css/CSSSelector.h" |
| 9 #include "platform/EventTracer.h" | 9 #include "platform/EventTracer.h" |
| 10 #include "platform/TraceEvent.h" | 10 #include "platform/TraceEvent.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 "data", \ | 101 "data", \ |
| 102 InspectorStyleInvalidatorInvalidateEvent::data((element), (InspectorStyl
eInvalidatorInvalidateEvent::reason))) | 102 InspectorStyleInvalidatorInvalidateEvent::data((element), (InspectorStyl
eInvalidatorInvalidateEvent::reason))) |
| 103 | 103 |
| 104 #define TRACE_STYLE_INVALIDATOR_INVALIDATION_SELECTORPART(element, reason, inval
idationSet, singleSelectorPart) \ | 104 #define TRACE_STYLE_INVALIDATOR_INVALIDATION_SELECTORPART(element, reason, inval
idationSet, singleSelectorPart) \ |
| 105 TRACE_EVENT_INSTANT1( \ | 105 TRACE_EVENT_INSTANT1( \ |
| 106 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"), \ | 106 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"), \ |
| 107 "StyleInvalidatorInvalidationTracking", \ | 107 "StyleInvalidatorInvalidationTracking", \ |
| 108 "data", \ | 108 "data", \ |
| 109 InspectorStyleInvalidatorInvalidateEvent::selectorPart((element), (Inspe
ctorStyleInvalidatorInvalidateEvent::reason), (invalidationSet), (singleSelector
Part))) | 109 InspectorStyleInvalidatorInvalidateEvent::selectorPart((element), (Inspe
ctorStyleInvalidatorInvalidateEvent::reason), (invalidationSet), (singleSelector
Part))) |
| 110 | 110 |
| 111 // From a web developer's perspective: what caused this layout? This is strictly |
| 112 // for tracing. Blink logic must not depend on these. |
| 113 namespace LayoutInvalidationReason { |
| 114 extern const char Unknown[]; |
| 115 extern const char SizeChanged[]; |
| 116 extern const char AncestorMoved[]; |
| 117 extern const char StyleChange[]; |
| 118 extern const char DomChanged[]; |
| 119 extern const char TextChanged[]; |
| 120 extern const char PrintingChanged[]; |
| 121 extern const char AttributeChanged[]; |
| 122 extern const char ColumnsChanged[]; |
| 123 extern const char ChildAnonymousBlockChanged[]; |
| 124 extern const char AnonymousBlockChange[]; |
| 125 extern const char Fullscreen[]; |
| 126 extern const char ChildChanged[]; |
| 127 extern const char ListValueChange[]; |
| 128 extern const char ImageChanged[]; |
| 129 extern const char LineBoxesChanged[]; |
| 130 extern const char SliderValueChanged[]; |
| 131 extern const char AncestorMarginCollapsing[]; |
| 132 extern const char FieldsetChanged[]; |
| 133 extern const char TextAutosizing[]; |
| 134 extern const char SvgResourceInvalidated[]; |
| 135 } |
| 136 |
| 137 // LayoutInvalidationReasonForTracing is strictly for tracing. Blink logic must |
| 138 // not depend on this value. |
| 139 typedef const char LayoutInvalidationReasonForTracing[]; |
| 140 |
| 111 class InspectorLayoutInvalidationTrackingEvent { | 141 class InspectorLayoutInvalidationTrackingEvent { |
| 112 public: | 142 public: |
| 113 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const LayoutObj
ect*); | 143 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const LayoutObj
ect*, LayoutInvalidationReasonForTracing); |
| 114 }; | 144 }; |
| 115 | 145 |
| 116 class InspectorPaintInvalidationTrackingEvent { | 146 class InspectorPaintInvalidationTrackingEvent { |
| 117 public: | 147 public: |
| 118 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const LayoutObj
ect* renderer, const LayoutObject* paintContainer); | 148 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const LayoutObj
ect* renderer, const LayoutObject* paintContainer); |
| 119 }; | 149 }; |
| 120 | 150 |
| 121 class InspectorSendRequestEvent { | 151 class InspectorSendRequestEvent { |
| 122 public: | 152 public: |
| 123 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(unsigned long i
dentifier, LocalFrame*, const ResourceRequest&); | 153 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(unsigned long i
dentifier, LocalFrame*, const ResourceRequest&); |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 | 324 |
| 295 class InspectorAnimationStateEvent { | 325 class InspectorAnimationStateEvent { |
| 296 public: | 326 public: |
| 297 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const Animation
Player&); | 327 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const Animation
Player&); |
| 298 }; | 328 }; |
| 299 | 329 |
| 300 } // namespace blink | 330 } // namespace blink |
| 301 | 331 |
| 302 | 332 |
| 303 #endif // !defined(InspectorTraceEvents_h) | 333 #endif // !defined(InspectorTraceEvents_h) |
| OLD | NEW |