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/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/css/CSSSelector.h" | 9 #include "core/css/CSSSelector.h" |
10 #include "platform/EventTracer.h" | 10 #include "platform/EventTracer.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 class LayoutImage; | 37 class LayoutImage; |
38 class LayoutObject; | 38 class LayoutObject; |
39 class ResourceRequest; | 39 class ResourceRequest; |
40 class ResourceResponse; | 40 class ResourceResponse; |
41 class StyleChangeReasonForTracing; | 41 class StyleChangeReasonForTracing; |
42 class StyleImage; | 42 class StyleImage; |
43 class TracedValue; | 43 class TracedValue; |
44 class WorkerThread; | 44 class WorkerThread; |
45 class XMLHttpRequest; | 45 class XMLHttpRequest; |
46 | 46 |
| 47 using InvalidationSetVector = WillBeHeapVector<RefPtrWillBeMember<InvalidationSe
t>, 8>; |
| 48 |
47 class InspectorLayoutEvent { | 49 class InspectorLayoutEvent { |
48 STATIC_ONLY(InspectorLayoutEvent); | 50 STATIC_ONLY(InspectorLayoutEvent); |
49 public: | 51 public: |
50 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> beginData(FrameView*
); | 52 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> beginData(FrameView*
); |
51 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> endData(LayoutObject
* rootForThisLayout); | 53 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> endData(LayoutObject
* rootForThisLayout); |
52 }; | 54 }; |
53 | 55 |
54 class InspectorScheduleStyleInvalidationTrackingEvent { | 56 class InspectorScheduleStyleInvalidationTrackingEvent { |
55 STATIC_ONLY(InspectorScheduleStyleInvalidationTrackingEvent); | 57 STATIC_ONLY(InspectorScheduleStyleInvalidationTrackingEvent); |
56 public: | 58 public: |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 static const char ElementHasPendingInvalidationList[]; | 92 static const char ElementHasPendingInvalidationList[]; |
91 static const char InvalidateCustomPseudo[]; | 93 static const char InvalidateCustomPseudo[]; |
92 static const char InvalidationSetMatchedAttribute[]; | 94 static const char InvalidationSetMatchedAttribute[]; |
93 static const char InvalidationSetMatchedClass[]; | 95 static const char InvalidationSetMatchedClass[]; |
94 static const char InvalidationSetMatchedId[]; | 96 static const char InvalidationSetMatchedId[]; |
95 static const char InvalidationSetMatchedTagName[]; | 97 static const char InvalidationSetMatchedTagName[]; |
96 static const char PreventStyleSharingForParent[]; | 98 static const char PreventStyleSharingForParent[]; |
97 | 99 |
98 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(Element&, const
char* reason); | 100 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(Element&, const
char* reason); |
99 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> selectorPart(Element
&, const char* reason, const InvalidationSet&, const String&); | 101 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> selectorPart(Element
&, const char* reason, const InvalidationSet&, const String&); |
100 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> invalidationList(Ele
ment&, const WillBeHeapVector<RefPtrWillBeMember<InvalidationSet>>&); | 102 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> invalidationList(Ele
ment&, const InvalidationSetVector&); |
101 | 103 |
102 private: | 104 private: |
103 static PassRefPtr<TracedValue> fillCommonPart(Element&, const char* reason); | 105 static PassRefPtr<TracedValue> fillCommonPart(Element&, const char* reason); |
104 }; | 106 }; |
105 | 107 |
106 #define TRACE_STYLE_INVALIDATOR_INVALIDATION(element, reason) \ | 108 #define TRACE_STYLE_INVALIDATOR_INVALIDATION(element, reason) \ |
107 TRACE_EVENT_INSTANT1( \ | 109 TRACE_EVENT_INSTANT1( \ |
108 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"), \ | 110 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"), \ |
109 "StyleInvalidatorInvalidationTracking", \ | 111 "StyleInvalidatorInvalidationTracking", \ |
110 TRACE_EVENT_SCOPE_THREAD, \ | 112 TRACE_EVENT_SCOPE_THREAD, \ |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> endData(const HitTes
tRequest&, const HitTestLocation&, const HitTestResult&); | 390 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> endData(const HitTes
tRequest&, const HitTestLocation&, const HitTestResult&); |
389 }; | 391 }; |
390 | 392 |
391 CORE_EXPORT String toHexString(const void* p); | 393 CORE_EXPORT String toHexString(const void* p); |
392 CORE_EXPORT void setCallStack(TracedValue*); | 394 CORE_EXPORT void setCallStack(TracedValue*); |
393 | 395 |
394 } // namespace blink | 396 } // namespace blink |
395 | 397 |
396 | 398 |
397 #endif // !defined(InspectorTraceEvents_h) | 399 #endif // !defined(InspectorTraceEvents_h) |
OLD | NEW |