| 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 "core/inspector/InspectorTraceEvents.h" | 5 #include "core/inspector/InspectorTraceEvents.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ScriptSourceCode.h" | 7 #include "bindings/core/v8/ScriptSourceCode.h" |
| 8 #include "bindings/core/v8/SourceLocation.h" | 8 #include "bindings/core/v8/SourceLocation.h" |
| 9 #include "core/animation/Animation.h" | 9 #include "core/animation/Animation.h" |
| 10 #include "core/animation/KeyframeEffectReadOnly.h" | 10 #include "core/animation/KeyframeEffectReadOnly.h" |
| (...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 std::unique_ptr<TracedValue> value = TracedValue::create(); | 704 std::unique_ptr<TracedValue> value = TracedValue::create(); |
| 705 value->setString("styleSheetUrl", cachedStyleSheet->url().getString()); | 705 value->setString("styleSheetUrl", cachedStyleSheet->url().getString()); |
| 706 return value; | 706 return value; |
| 707 } | 707 } |
| 708 | 708 |
| 709 std::unique_ptr<TracedValue> InspectorXhrReadyStateChangeEvent::data( | 709 std::unique_ptr<TracedValue> InspectorXhrReadyStateChangeEvent::data( |
| 710 ExecutionContext* context, | 710 ExecutionContext* context, |
| 711 XMLHttpRequest* request) { | 711 XMLHttpRequest* request) { |
| 712 std::unique_ptr<TracedValue> value = TracedValue::create(); | 712 std::unique_ptr<TracedValue> value = TracedValue::create(); |
| 713 value->setString("url", request->url().getString()); | 713 value->setString("url", request->url().getString()); |
| 714 value->setInteger("readyState", request->readyState()); | 714 value->setInteger("readyState", request->getReadyState()); |
| 715 if (LocalFrame* frame = frameForExecutionContext(context)) | 715 if (LocalFrame* frame = frameForExecutionContext(context)) |
| 716 value->setString("frame", toHexString(frame)); | 716 value->setString("frame", toHexString(frame)); |
| 717 setCallStack(value.get()); | 717 setCallStack(value.get()); |
| 718 return value; | 718 return value; |
| 719 } | 719 } |
| 720 | 720 |
| 721 std::unique_ptr<TracedValue> InspectorXhrLoadEvent::data( | 721 std::unique_ptr<TracedValue> InspectorXhrLoadEvent::data( |
| 722 ExecutionContext* context, | 722 ExecutionContext* context, |
| 723 XMLHttpRequest* request) { | 723 XMLHttpRequest* request) { |
| 724 std::unique_ptr<TracedValue> value = TracedValue::create(); | 724 std::unique_ptr<TracedValue> value = TracedValue::create(); |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1053 if (request.move()) | 1053 if (request.move()) |
| 1054 value->setBoolean("move", true); | 1054 value->setBoolean("move", true); |
| 1055 if (request.listBased()) | 1055 if (request.listBased()) |
| 1056 value->setBoolean("listBased", true); | 1056 value->setBoolean("listBased", true); |
| 1057 else if (Node* node = result.innerNode()) | 1057 else if (Node* node = result.innerNode()) |
| 1058 setNodeInfo(value.get(), node, "nodeId", "nodeName"); | 1058 setNodeInfo(value.get(), node, "nodeId", "nodeName"); |
| 1059 return value; | 1059 return value; |
| 1060 } | 1060 } |
| 1061 | 1061 |
| 1062 } // namespace blink | 1062 } // namespace blink |
| OLD | NEW |