| 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" |
| 11 #include "platform/TraceEvent.h" | 11 #include "platform/TraceEvent.h" |
| 12 #include "platform/TracedValue.h" | 12 #include "platform/TracedValue.h" |
| 13 #include "platform/heap/Handle.h" | 13 #include "platform/heap/Handle.h" |
| 14 #include "wtf/Forward.h" | 14 #include "wtf/Forward.h" |
| 15 #include "wtf/Functional.h" | 15 #include "wtf/Functional.h" |
| 16 #include <memory> | 16 #include <memory> |
| 17 | 17 |
| 18 namespace v8 { | 18 namespace v8 { |
| 19 class Function; | 19 class Function; |
| 20 template<typename T> class Local; | 20 template<typename T> class Local; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace WTF { | 23 namespace WTF { |
| 24 class TextPosition; | 24 class TextPosition; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace blink { | 27 namespace blink { |
| 28 class Animation; | 28 class Animation; |
| 29 class CSSStyleSheetResource; | 29 class CSSStyleSheetResource; |
| 30 class InvalidationSet; | 30 class ContainerNode; |
| 31 class Document; | 31 class Document; |
| 32 class Element; | 32 class Element; |
| 33 class Event; | 33 class Event; |
| 34 class ExecutionContext; | 34 class ExecutionContext; |
| 35 class FrameView; | 35 class FrameView; |
| 36 class GraphicsLayer; | 36 class GraphicsLayer; |
| 37 class HitTestLocation; | 37 class HitTestLocation; |
| 38 class HitTestRequest; | 38 class HitTestRequest; |
| 39 class HitTestResult; | 39 class HitTestResult; |
| 40 class ImageResource; | 40 class ImageResource; |
| 41 class InvalidationSet; |
| 41 class KURL; | 42 class KURL; |
| 42 class PaintLayer; | 43 class PaintLayer; |
| 43 class LayoutRect; | 44 class LayoutRect; |
| 44 class LocalFrame; | 45 class LocalFrame; |
| 45 class Node; | 46 class Node; |
| 47 class Page; |
| 46 class QualifiedName; | 48 class QualifiedName; |
| 47 class Page; | |
| 48 class LayoutImage; | 49 class LayoutImage; |
| 49 class LayoutObject; | 50 class LayoutObject; |
| 50 class ResourceRequest; | 51 class ResourceRequest; |
| 51 class ResourceResponse; | 52 class ResourceResponse; |
| 52 class StyleChangeReasonForTracing; | 53 class StyleChangeReasonForTracing; |
| 53 class StyleImage; | 54 class StyleImage; |
| 54 class WorkerThread; | 55 class WorkerThread; |
| 55 class XMLHttpRequest; | 56 class XMLHttpRequest; |
| 56 | 57 |
| 57 enum ResourceLoadPriority : int; | 58 enum ResourceLoadPriority : int; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 extern const char ElementHasPendingInvalidationList[]; | 92 extern const char ElementHasPendingInvalidationList[]; |
| 92 extern const char InvalidateCustomPseudo[]; | 93 extern const char InvalidateCustomPseudo[]; |
| 93 extern const char InvalidationSetMatchedAttribute[]; | 94 extern const char InvalidationSetMatchedAttribute[]; |
| 94 extern const char InvalidationSetMatchedClass[]; | 95 extern const char InvalidationSetMatchedClass[]; |
| 95 extern const char InvalidationSetMatchedId[]; | 96 extern const char InvalidationSetMatchedId[]; |
| 96 extern const char InvalidationSetMatchedTagName[]; | 97 extern const char InvalidationSetMatchedTagName[]; |
| 97 extern const char PreventStyleSharingForParent[]; | 98 extern const char PreventStyleSharingForParent[]; |
| 98 | 99 |
| 99 std::unique_ptr<TracedValue> data(Element&, const char* reason); | 100 std::unique_ptr<TracedValue> data(Element&, const char* reason); |
| 100 std::unique_ptr<TracedValue> selectorPart(Element&, const char* reason, const In
validationSet&, const String&); | 101 std::unique_ptr<TracedValue> selectorPart(Element&, const char* reason, const In
validationSet&, const String&); |
| 101 std::unique_ptr<TracedValue> invalidationList(Element&, const Vector<RefPtr<Inva
lidationSet>>&); | 102 std::unique_ptr<TracedValue> invalidationList(ContainerNode&, const Vector<RefPt
r<InvalidationSet>>&); |
| 102 } // namespace InspectorStyleInvalidatorInvalidateEvent | 103 } // namespace InspectorStyleInvalidatorInvalidateEvent |
| 103 | 104 |
| 104 #define TRACE_STYLE_INVALIDATOR_INVALIDATION(element, reason) \ | 105 #define TRACE_STYLE_INVALIDATOR_INVALIDATION(element, reason) \ |
| 105 TRACE_EVENT_INSTANT1( \ | 106 TRACE_EVENT_INSTANT1( \ |
| 106 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"), \ | 107 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"), \ |
| 107 "StyleInvalidatorInvalidationTracking", \ | 108 "StyleInvalidatorInvalidationTracking", \ |
| 108 TRACE_EVENT_SCOPE_THREAD, \ | 109 TRACE_EVENT_SCOPE_THREAD, \ |
| 109 "data", \ | 110 "data", \ |
| 110 InspectorStyleInvalidatorInvalidateEvent::data((element), (InspectorStyl
eInvalidatorInvalidateEvent::reason))) | 111 InspectorStyleInvalidatorInvalidateEvent::data((element), (InspectorStyl
eInvalidatorInvalidateEvent::reason))) |
| 111 | 112 |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 std::unique_ptr<TracedValue> endData(const HitTestRequest&, const HitTestLocatio
n&, const HitTestResult&); | 342 std::unique_ptr<TracedValue> endData(const HitTestRequest&, const HitTestLocatio
n&, const HitTestResult&); |
| 342 } | 343 } |
| 343 | 344 |
| 344 CORE_EXPORT String toHexString(const void* p); | 345 CORE_EXPORT String toHexString(const void* p); |
| 345 CORE_EXPORT void setCallStack(TracedValue*); | 346 CORE_EXPORT void setCallStack(TracedValue*); |
| 346 | 347 |
| 347 } // namespace blink | 348 } // namespace blink |
| 348 | 349 |
| 349 | 350 |
| 350 #endif // !defined(InspectorTraceEvents_h) | 351 #endif // !defined(InspectorTraceEvents_h) |
| OLD | NEW |