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

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

Issue 366953002: DevTools: Put EventDispatch type into the data object. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « Source/core/inspector/InspectorTraceEvents.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
11 #include "core/events/Event.h"
11 #include "core/frame/FrameView.h" 12 #include "core/frame/FrameView.h"
12 #include "core/frame/LocalFrame.h" 13 #include "core/frame/LocalFrame.h"
13 #include "core/inspector/IdentifiersFactory.h" 14 #include "core/inspector/IdentifiersFactory.h"
14 #include "core/inspector/InspectorNodeIds.h" 15 #include "core/inspector/InspectorNodeIds.h"
15 #include "core/inspector/ScriptCallStack.h" 16 #include "core/inspector/ScriptCallStack.h"
16 #include "core/page/Page.h" 17 #include "core/page/Page.h"
17 #include "core/rendering/RenderImage.h" 18 #include "core/rendering/RenderImage.h"
18 #include "core/rendering/RenderObject.h" 19 #include "core/rendering/RenderObject.h"
19 #include "core/xml/XMLHttpRequest.h" 20 #include "core/xml/XMLHttpRequest.h"
20 #include "platform/JSONValues.h" 21 #include "platform/JSONValues.h"
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 } 332 }
332 value.setDouble("jsHeapSizeUsed", static_cast<double>(usedHeapSize())); 333 value.setDouble("jsHeapSizeUsed", static_cast<double>(usedHeapSize()));
333 return value.finish(); 334 return value.finish();
334 } 335 }
335 336
336 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorCallStackEvent::curren tCallStack() 337 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorCallStackEvent::curren tCallStack()
337 { 338 {
338 return adoptRef(new JSCallStack(createScriptCallStack(ScriptCallStack::maxCa llStackSizeToCapture, true))); 339 return adoptRef(new JSCallStack(createScriptCallStack(ScriptCallStack::maxCa llStackSizeToCapture, true)));
339 } 340 }
340 341
342 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorEventDispatchEvent::da ta(const Event* event)
caseq 2014/07/02 09:20:28 We do not expect event to be null, so please pass
alph 2014/07/02 09:57:06 Done.
343 {
344 return TracedValue().setString("type", event->type()).finish();
341 } 345 }
346
347 }
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorTraceEvents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698