| 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/HitTestResult.h" |
| 21 #include "core/layout/LayoutImage.h" | 22 #include "core/layout/LayoutImage.h" |
| 22 #include "core/layout/LayoutObject.h" | 23 #include "core/layout/LayoutObject.h" |
| 23 #include "core/page/Page.h" | 24 #include "core/page/Page.h" |
| 24 #include "core/paint/DeprecatedPaintLayer.h" | 25 #include "core/paint/DeprecatedPaintLayer.h" |
| 25 #include "core/workers/WorkerThread.h" | 26 #include "core/workers/WorkerThread.h" |
| 26 #include "core/xmlhttprequest/XMLHttpRequest.h" | 27 #include "core/xmlhttprequest/XMLHttpRequest.h" |
| 27 #include "platform/JSONValues.h" | 28 #include "platform/JSONValues.h" |
| 28 #include "platform/TracedValue.h" | 29 #include "platform/TracedValue.h" |
| 29 #include "platform/graphics/GraphicsLayer.h" | 30 #include "platform/graphics/GraphicsLayer.h" |
| 30 #include "platform/network/ResourceRequest.h" | 31 #include "platform/network/ResourceRequest.h" |
| (...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 return value.release(); | 752 return value.release(); |
| 752 } | 753 } |
| 753 | 754 |
| 754 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationStateEvent::d
ata(const Animation& player) | 755 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationStateEvent::d
ata(const Animation& player) |
| 755 { | 756 { |
| 756 RefPtr<TracedValue> value = TracedValue::create(); | 757 RefPtr<TracedValue> value = TracedValue::create(); |
| 757 value->setString("state", player.playState()); | 758 value->setString("state", player.playState()); |
| 758 return value.release(); | 759 return value.release(); |
| 759 } | 760 } |
| 760 | 761 |
| 762 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorHitTestEvent::endData(
const HitTestRequest& request, const HitTestLocation& location, const HitTestRes
ult& result) |
| 763 { |
| 764 RefPtr<TracedValue> value(TracedValue::create()); |
| 765 value->setInteger("x", location.roundedPoint().x()); |
| 766 value->setInteger("y", location.roundedPoint().y()); |
| 767 if (location.isRectBasedTest()) |
| 768 value->setBoolean("rect", true); |
| 769 if (location.isRectilinear()) |
| 770 value->setBoolean("rectilinear", true); |
| 771 if (request.touchEvent()) |
| 772 value->setBoolean("touch", true); |
| 773 if (request.move()) |
| 774 value->setBoolean("move", true); |
| 775 if (request.listBased()) |
| 776 value->setBoolean("listBased", true); |
| 777 else if (Node* node = result.innerNode()) |
| 778 setNodeInfo(value.get(), node, "nodeId", "nodeName"); |
| 779 return value; |
| 761 } | 780 } |
| 781 |
| 782 } |
| OLD | NEW |