| 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<DescendantInva
lidationSet>, 8>; |
| 48 |
| 47 class InspectorLayoutEvent { | 49 class InspectorLayoutEvent { |
| 48 public: | 50 public: |
| 49 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> beginData(FrameView*
); | 51 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> beginData(FrameView*
); |
| 50 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> endData(LayoutObject
* rootForThisLayout); | 52 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> endData(LayoutObject
* rootForThisLayout); |
| 51 }; | 53 }; |
| 52 | 54 |
| 53 class InspectorScheduleStyleInvalidationTrackingEvent { | 55 class InspectorScheduleStyleInvalidationTrackingEvent { |
| 54 public: | 56 public: |
| 55 static const char Attribute[]; | 57 static const char Attribute[]; |
| 56 static const char Class[]; | 58 static const char Class[]; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 86 static const char ElementHasPendingInvalidationList[]; | 88 static const char ElementHasPendingInvalidationList[]; |
| 87 static const char InvalidateCustomPseudo[]; | 89 static const char InvalidateCustomPseudo[]; |
| 88 static const char InvalidationSetMatchedAttribute[]; | 90 static const char InvalidationSetMatchedAttribute[]; |
| 89 static const char InvalidationSetMatchedClass[]; | 91 static const char InvalidationSetMatchedClass[]; |
| 90 static const char InvalidationSetMatchedId[]; | 92 static const char InvalidationSetMatchedId[]; |
| 91 static const char InvalidationSetMatchedTagName[]; | 93 static const char InvalidationSetMatchedTagName[]; |
| 92 static const char PreventStyleSharingForParent[]; | 94 static const char PreventStyleSharingForParent[]; |
| 93 | 95 |
| 94 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(Element&, const
char* reason); | 96 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(Element&, const
char* reason); |
| 95 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> selectorPart(Element
&, const char* reason, const DescendantInvalidationSet&, const String&); | 97 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> selectorPart(Element
&, const char* reason, const DescendantInvalidationSet&, const String&); |
| 96 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> invalidationList(Ele
ment&, const WillBeHeapVector<RefPtrWillBeMember<DescendantInvalidationSet> >&); | 98 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> invalidationList(Ele
ment&, const InvalidationSetVector&); |
| 97 | 99 |
| 98 private: | 100 private: |
| 99 static PassRefPtr<TracedValue> fillCommonPart(Element&, const char* reason); | 101 static PassRefPtr<TracedValue> fillCommonPart(Element&, const char* reason); |
| 100 }; | 102 }; |
| 101 | 103 |
| 102 #define TRACE_STYLE_INVALIDATOR_INVALIDATION(element, reason) \ | 104 #define TRACE_STYLE_INVALIDATOR_INVALIDATION(element, reason) \ |
| 103 TRACE_EVENT_INSTANT1( \ | 105 TRACE_EVENT_INSTANT1( \ |
| 104 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"), \ | 106 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"), \ |
| 105 "StyleInvalidatorInvalidationTracking", \ | 107 "StyleInvalidatorInvalidationTracking", \ |
| 106 TRACE_EVENT_SCOPE_THREAD, \ | 108 TRACE_EVENT_SCOPE_THREAD, \ |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> endData(const HitTes
tRequest&, const HitTestLocation&, const HitTestResult&); | 351 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> endData(const HitTes
tRequest&, const HitTestLocation&, const HitTestResult&); |
| 350 }; | 352 }; |
| 351 | 353 |
| 352 CORE_EXPORT String toHexString(const void* p); | 354 CORE_EXPORT String toHexString(const void* p); |
| 353 CORE_EXPORT void setCallStack(TracedValue*); | 355 CORE_EXPORT void setCallStack(TracedValue*); |
| 354 | 356 |
| 355 } // namespace blink | 357 } // namespace blink |
| 356 | 358 |
| 357 | 359 |
| 358 #endif // !defined(InspectorTraceEvents_h) | 360 #endif // !defined(InspectorTraceEvents_h) |
| OLD | NEW |