| 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/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 namespace InspectorLayoutEvent { | 58 namespace InspectorLayoutEvent { |
| 59 std::unique_ptr<TracedValue> beginData(FrameView*); | 59 std::unique_ptr<TracedValue> beginData(FrameView*); |
| 60 std::unique_ptr<TracedValue> endData(LayoutObject* rootForThisLayout); | 60 std::unique_ptr<TracedValue> endData(LayoutObject* rootForThisLayout); |
| 61 } | 61 } |
| 62 | 62 |
| 63 namespace InspectorScheduleStyleInvalidationTrackingEvent { | 63 namespace InspectorScheduleStyleInvalidationTrackingEvent { |
| 64 extern const char Attribute[]; | 64 extern const char Attribute[]; |
| 65 extern const char Class[]; | 65 extern const char Class[]; |
| 66 extern const char Id[]; | 66 extern const char Id[]; |
| 67 extern const char Pseudo[]; | 67 extern const char Pseudo[]; |
| 68 extern const char RuleSet[]; |
| 68 | 69 |
| 69 std::unique_ptr<TracedValue> attributeChange(Element&, | 70 std::unique_ptr<TracedValue> attributeChange(Element&, |
| 70 const InvalidationSet&, | 71 const InvalidationSet&, |
| 71 const QualifiedName&); | 72 const QualifiedName&); |
| 72 std::unique_ptr<TracedValue> classChange(Element&, | 73 std::unique_ptr<TracedValue> classChange(Element&, |
| 73 const InvalidationSet&, | 74 const InvalidationSet&, |
| 74 const AtomicString&); | 75 const AtomicString&); |
| 75 std::unique_ptr<TracedValue> idChange(Element&, | 76 std::unique_ptr<TracedValue> idChange(Element&, |
| 76 const InvalidationSet&, | 77 const InvalidationSet&, |
| 77 const AtomicString&); | 78 const AtomicString&); |
| 78 std::unique_ptr<TracedValue> pseudoChange(Element&, | 79 std::unique_ptr<TracedValue> pseudoChange(Element&, |
| 79 const InvalidationSet&, | 80 const InvalidationSet&, |
| 80 CSSSelector::PseudoType); | 81 CSSSelector::PseudoType); |
| 82 std::unique_ptr<TracedValue> ruleSetInvalidation(ContainerNode&, |
| 83 const InvalidationSet&); |
| 81 } // namespace InspectorScheduleStyleInvalidationTrackingEvent | 84 } // namespace InspectorScheduleStyleInvalidationTrackingEvent |
| 82 | 85 |
| 83 #define TRACE_SCHEDULE_STYLE_INVALIDATION(element, invalidationSet, \ | 86 #define TRACE_SCHEDULE_STYLE_INVALIDATION(element, invalidationSet, \ |
| 84 changeType, ...) \ | 87 changeType, ...) \ |
| 85 TRACE_EVENT_INSTANT1( \ | 88 TRACE_EVENT_INSTANT1( \ |
| 86 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"), \ | 89 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"), \ |
| 87 "ScheduleStyleInvalidationTracking", TRACE_EVENT_SCOPE_THREAD, "data", \ | 90 "ScheduleStyleInvalidationTracking", TRACE_EVENT_SCOPE_THREAD, "data", \ |
| 88 InspectorScheduleStyleInvalidationTrackingEvent::changeType( \ | 91 InspectorScheduleStyleInvalidationTrackingEvent::changeType( \ |
| 89 (element), (invalidationSet), __VA_ARGS__)); | 92 (element), (invalidationSet), ##__VA_ARGS__)); |
| 90 | 93 |
| 91 namespace InspectorStyleRecalcInvalidationTrackingEvent { | 94 namespace InspectorStyleRecalcInvalidationTrackingEvent { |
| 92 std::unique_ptr<TracedValue> data(Node*, const StyleChangeReasonForTracing&); | 95 std::unique_ptr<TracedValue> data(Node*, const StyleChangeReasonForTracing&); |
| 93 } | 96 } |
| 94 | 97 |
| 95 String descendantInvalidationSetToIdString(const InvalidationSet&); | 98 String descendantInvalidationSetToIdString(const InvalidationSet&); |
| 96 | 99 |
| 97 namespace InspectorStyleInvalidatorInvalidateEvent { | 100 namespace InspectorStyleInvalidatorInvalidateEvent { |
| 98 extern const char ElementHasPendingInvalidationList[]; | 101 extern const char ElementHasPendingInvalidationList[]; |
| 99 extern const char InvalidateCustomPseudo[]; | 102 extern const char InvalidateCustomPseudo[]; |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 namespace InspectorInstrumentedAPIEvent { | 387 namespace InspectorInstrumentedAPIEvent { |
| 385 std::unique_ptr<TracedValue> data(const String&); | 388 std::unique_ptr<TracedValue> data(const String&); |
| 386 } | 389 } |
| 387 | 390 |
| 388 CORE_EXPORT String toHexString(const void* p); | 391 CORE_EXPORT String toHexString(const void* p); |
| 389 CORE_EXPORT void setCallStack(TracedValue*); | 392 CORE_EXPORT void setCallStack(TracedValue*); |
| 390 | 393 |
| 391 } // namespace blink | 394 } // namespace blink |
| 392 | 395 |
| 393 #endif // !defined(InspectorTraceEvents_h) | 396 #endif // !defined(InspectorTraceEvents_h) |
| OLD | NEW |