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 #include "config.h" | 5 #include "config.h" |
6 #include "core/inspector/InspectorTraceEvents.h" | 6 #include "core/inspector/InspectorTraceEvents.h" |
7 | 7 |
8 #include "bindings/core/v8/ScriptCallStackFactory.h" | 8 #include "bindings/core/v8/ScriptCallStackFactory.h" |
9 #include "bindings/core/v8/ScriptSourceCode.h" | 9 #include "bindings/core/v8/ScriptSourceCode.h" |
10 #include "core/animation/Animation.h" | 10 #include "core/animation/Animation.h" |
11 #include "core/animation/KeyframeEffect.h" | 11 #include "core/animation/KeyframeEffect.h" |
12 #include "core/css/invalidation/DescendantInvalidationSet.h" | 12 #include "core/css/invalidation/DescendantInvalidationSet.h" |
13 #include "core/dom/DOMNodeIds.h" | 13 #include "core/dom/DOMNodeIds.h" |
14 #include "core/dom/StyleChangeReason.h" | 14 #include "core/dom/StyleChangeReason.h" |
15 #include "core/events/Event.h" | 15 #include "core/events/Event.h" |
16 #include "core/fetch/CSSStyleSheetResource.h" | 16 #include "core/fetch/CSSStyleSheetResource.h" |
17 #include "core/frame/FrameView.h" | 17 #include "core/frame/FrameView.h" |
18 #include "core/frame/LocalFrame.h" | 18 #include "core/frame/LocalFrame.h" |
19 #include "core/inspector/IdentifiersFactory.h" | 19 #include "core/inspector/IdentifiersFactory.h" |
20 #include "core/inspector/ScriptCallStack.h" | 20 #include "core/inspector/ScriptCallStack.h" |
21 #include "core/layout/LayoutImage.h" | 21 #include "core/layout/LayoutImage.h" |
22 #include "core/layout/LayoutObject.h" | 22 #include "core/layout/LayoutObject.h" |
23 #include "core/page/Page.h" | 23 #include "core/page/Page.h" |
24 #include "core/paint/DeprecatedPaintLayer.h" | 24 #include "core/paint/DeprecatedPaintLayer.h" |
25 #include "core/workers/WorkerThread.h" | 25 #include "core/workers/WorkerScript.h" |
26 #include "core/xmlhttprequest/XMLHttpRequest.h" | 26 #include "core/xmlhttprequest/XMLHttpRequest.h" |
27 #include "platform/JSONValues.h" | 27 #include "platform/JSONValues.h" |
28 #include "platform/TracedValue.h" | 28 #include "platform/TracedValue.h" |
29 #include "platform/graphics/GraphicsLayer.h" | 29 #include "platform/graphics/GraphicsLayer.h" |
30 #include "platform/network/ResourceRequest.h" | 30 #include "platform/network/ResourceRequest.h" |
31 #include "platform/network/ResourceResponse.h" | 31 #include "platform/network/ResourceResponse.h" |
32 #include "platform/weborigin/KURL.h" | 32 #include "platform/weborigin/KURL.h" |
33 #include "wtf/Vector.h" | 33 #include "wtf/Vector.h" |
34 #include <inttypes.h> | 34 #include <inttypes.h> |
35 #include <v8.h> | 35 #include <v8.h> |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 | 724 |
725 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTimeStampEvent::data(E
xecutionContext* context, const String& message) | 725 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTimeStampEvent::data(E
xecutionContext* context, const String& message) |
726 { | 726 { |
727 RefPtr<TracedValue> value = TracedValue::create(); | 727 RefPtr<TracedValue> value = TracedValue::create(); |
728 value->setString("message", message); | 728 value->setString("message", message); |
729 if (LocalFrame* frame = frameForExecutionContext(context)) | 729 if (LocalFrame* frame = frameForExecutionContext(context)) |
730 value->setString("frame", toHexString(frame)); | 730 value->setString("frame", toHexString(frame)); |
731 return value.release(); | 731 return value.release(); |
732 } | 732 } |
733 | 733 |
734 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTracingSessionIdForWor
kerEvent::data(const String& sessionId, const String& workerId, WorkerThread* wo
rkerThread) | 734 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTracingSessionIdForWor
kerEvent::data(const String& sessionId, const String& workerId, WorkerScript* wo
rkerThread) |
735 { | 735 { |
736 RefPtr<TracedValue> value = TracedValue::create(); | 736 RefPtr<TracedValue> value = TracedValue::create(); |
737 value->setString("sessionId", sessionId); | 737 value->setString("sessionId", sessionId); |
738 value->setString("workerId", workerId); | 738 value->setString("workerId", workerId); |
739 value->setDouble("workerThreadId", workerThread->platformThreadId()); | 739 value->setDouble("workerThreadId", workerThread->platformThreadId()); |
740 return value.release(); | 740 return value.release(); |
741 } | 741 } |
742 | 742 |
743 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTracingStartedInFrame:
:data(const String& sessionId, LocalFrame* frame) | 743 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTracingStartedInFrame:
:data(const String& sessionId, LocalFrame* frame) |
744 { | 744 { |
(...skipping 27 matching lines...) Expand all Loading... |
772 } | 772 } |
773 | 773 |
774 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationStateEvent::d
ata(const Animation& player) | 774 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationStateEvent::d
ata(const Animation& player) |
775 { | 775 { |
776 RefPtr<TracedValue> value = TracedValue::create(); | 776 RefPtr<TracedValue> value = TracedValue::create(); |
777 value->setString("state", player.playState()); | 777 value->setString("state", player.playState()); |
778 return value.release(); | 778 return value.release(); |
779 } | 779 } |
780 | 780 |
781 } | 781 } |
OLD | NEW |