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

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

Issue 1043903003: rAF: Introduce FrameRequestCallbackCollection for managing rAF callbacks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . 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/ScriptGCEvent.h" 9 #include "bindings/core/v8/ScriptGCEvent.h"
10 #include "bindings/core/v8/ScriptSourceCode.h" 10 #include "bindings/core/v8/ScriptSourceCode.h"
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTimerRemoveEvent::data (ExecutionContext* context, int timerId) 419 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTimerRemoveEvent::data (ExecutionContext* context, int timerId)
420 { 420 {
421 return genericTimerData(context, timerId); 421 return genericTimerData(context, timerId);
422 } 422 }
423 423
424 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTimerFireEvent::data(E xecutionContext* context, int timerId) 424 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTimerFireEvent::data(E xecutionContext* context, int timerId)
425 { 425 {
426 return genericTimerData(context, timerId); 426 return genericTimerData(context, timerId);
427 } 427 }
428 428
429 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationFrameEvent::d ata(Document* document, int callbackId) 429 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationFrameEvent::d ata(ExecutionContext* context, int callbackId)
dgozman 2015/03/31 10:10:05 Maybe this whole event makes sense only for docume
caseq 2015/03/31 10:27:42 From what I understand, we can no longer assume th
sadrul 2015/03/31 12:39:41 Considering for the Document, we simply list the p
sadrul 2015/03/31 16:40:27 Done.
430 { 430 {
431 RefPtr<TracedValue> value = TracedValue::create(); 431 RefPtr<TracedValue> value = TracedValue::create();
432 value->setInteger("id", callbackId); 432 value->setInteger("id", callbackId);
433 value->setString("frame", toHexString(document->frame())); 433 if (context->isDocument()) {
434 Document* document = toDocument(context);
435 value->setString("frame", toHexString(document->frame()));
436 }
434 setCallStack(value.get()); 437 setCallStack(value.get());
435 return value.release(); 438 return value.release();
436 } 439 }
437 440
438 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorWebSocketCreateEvent:: data(Document* document, unsigned long identifier, const KURL& url, const String & protocol) 441 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorWebSocketCreateEvent:: data(Document* document, unsigned long identifier, const KURL& url, const String & protocol)
439 { 442 {
440 RefPtr<TracedValue> value = TracedValue::create(); 443 RefPtr<TracedValue> value = TracedValue::create();
441 value->setInteger("identifier", identifier); 444 value->setInteger("identifier", identifier);
442 value->setString("url", url.string()); 445 value->setString("url", url.string());
443 value->setString("frame", toHexString(document->frame())); 446 value->setString("frame", toHexString(document->frame()));
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 } 715 }
713 716
714 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationStateEvent::d ata(const AnimationPlayer& player) 717 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorAnimationStateEvent::d ata(const AnimationPlayer& player)
715 { 718 {
716 RefPtr<TracedValue> value = TracedValue::create(); 719 RefPtr<TracedValue> value = TracedValue::create();
717 value->setString("state", player.playState()); 720 value->setString("state", player.playState());
718 return value.release(); 721 return value.release();
719 } 722 }
720 723
721 } 724 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698