Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: Source/core/inspector/InspectorTraceEvents.cpp

Issue 1106623003: DevTools: render ParseHTML details in timeline: url, start and end lines. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments addressed. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 value->setString("frame", toHexString(document->frame())); 506 value->setString("frame", toHexString(document->frame()));
507 setCallStack(value.get()); 507 setCallStack(value.get());
508 return value.release(); 508 return value.release();
509 } 509 }
510 510
511 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorParseHtmlEvent::beginD ata(Document* document, unsigned startLine) 511 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorParseHtmlEvent::beginD ata(Document* document, unsigned startLine)
512 { 512 {
513 RefPtr<TracedValue> value = TracedValue::create(); 513 RefPtr<TracedValue> value = TracedValue::create();
514 value->setInteger("startLine", startLine); 514 value->setInteger("startLine", startLine);
515 value->setString("frame", toHexString(document->frame())); 515 value->setString("frame", toHexString(document->frame()));
516 value->setString("url", document->url().string());
516 setCallStack(value.get()); 517 setCallStack(value.get());
517 return value.release(); 518 return value.release();
518 } 519 }
519 520
521 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorParseHtmlEvent::endDat a(unsigned endLine)
522 {
523 RefPtr<TracedValue> value = TracedValue::create();
524 value->setInteger("endLine", endLine);
525 return value.release();
526 }
527
520 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorParseAuthorStyleSheetE vent::data(const CSSStyleSheetResource* cachedStyleSheet) 528 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorParseAuthorStyleSheetE vent::data(const CSSStyleSheetResource* cachedStyleSheet)
521 { 529 {
522 RefPtr<TracedValue> value = TracedValue::create(); 530 RefPtr<TracedValue> value = TracedValue::create();
523 value->setString("styleSheetUrl", cachedStyleSheet->url().string()); 531 value->setString("styleSheetUrl", cachedStyleSheet->url().string());
524 return value.release(); 532 return value.release();
525 } 533 }
526 534
527 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorXhrReadyStateChangeEve nt::data(ExecutionContext* context, XMLHttpRequest* request) 535 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorXhrReadyStateChangeEve nt::data(ExecutionContext* context, XMLHttpRequest* request)
528 { 536 {
529 RefPtr<TracedValue> value = TracedValue::create(); 537 RefPtr<TracedValue> value = TracedValue::create();
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 } 772 }
765 773
766 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationStateEvent::d ata(const AnimationPlayer& player) 774 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationStateEvent::d ata(const AnimationPlayer& player)
767 { 775 {
768 RefPtr<TracedValue> value = TracedValue::create(); 776 RefPtr<TracedValue> value = TracedValue::create();
769 value->setString("state", player.playState()); 777 value->setString("state", player.playState());
770 return value.release(); 778 return value.release();
771 } 779 }
772 780
773 } 781 }
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorTraceEvents.h ('k') | Source/devtools/front_end/timeline/TimelineUIUtils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698