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

Side by Side Diff: sky/engine/core/inspector/InspectorTraceEvents.cpp

Issue 878303002: Remove more scrolling code from Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
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 "sky/engine/config.h" 5 #include "sky/engine/config.h"
6 #include "sky/engine/core/inspector/InspectorTraceEvents.h" 6 #include "sky/engine/core/inspector/InspectorTraceEvents.h"
7 7
8 #include "sky/engine/bindings/core/v8/ScriptCallStackFactory.h" 8 #include "sky/engine/bindings/core/v8/ScriptCallStackFactory.h"
9 #include "sky/engine/bindings/core/v8/ScriptGCEvent.h" 9 #include "sky/engine/bindings/core/v8/ScriptGCEvent.h"
10 #include "sky/engine/bindings/core/v8/ScriptSourceCode.h" 10 #include "sky/engine/bindings/core/v8/ScriptSourceCode.h"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 setGeneratingNodeId(value.get(), "nodeId", renderer); 199 setGeneratingNodeId(value.get(), "nodeId", renderer);
200 value->setInteger("layerId", 0); 200 value->setInteger("layerId", 0);
201 return value; 201 return value;
202 } 202 }
203 203
204 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorMarkLoadEvent::data() 204 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorMarkLoadEvent::data()
205 { 205 {
206 return TracedValue::create(); 206 return TracedValue::create();
207 } 207 }
208 208
209 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorScrollLayerEvent::data (RenderObject* renderer)
210 {
211 RefPtr<TracedValue> value = TracedValue::create();
212 setGeneratingNodeId(value.get(), "nodeId", renderer);
213 return value;
214 }
215
216 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorEvaluateScriptEvent::d ata(const String& url, int lineNumber) 209 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorEvaluateScriptEvent::d ata(const String& url, int lineNumber)
217 { 210 {
218 RefPtr<TracedValue> value = TracedValue::create(); 211 RefPtr<TracedValue> value = TracedValue::create();
219 value->setString("url", url); 212 value->setString("url", url);
220 value->setInteger("lineNumber", lineNumber); 213 value->setInteger("lineNumber", lineNumber);
221 return value; 214 return value;
222 } 215 }
223 216
224 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorFunctionCallEvent::dat a(ExecutionContext* context, int scriptId, const String& scriptName, int scriptL ine) 217 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorFunctionCallEvent::dat a(ExecutionContext* context, int scriptId, const String& scriptName, int scriptL ine)
225 { 218 {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 } 264 }
272 265
273 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTimeStampEvent::data(E xecutionContext* context, const String& message) 266 PassRefPtr<TraceEvent::ConvertableToTraceFormat> InspectorTimeStampEvent::data(E xecutionContext* context, const String& message)
274 { 267 {
275 RefPtr<TracedValue> value = TracedValue::create(); 268 RefPtr<TracedValue> value = TracedValue::create();
276 value->setString("message", message); 269 value->setString("message", message);
277 return value; 270 return value;
278 } 271 }
279 272
280 } 273 }
OLDNEW
« no previous file with comments | « sky/engine/core/inspector/InspectorTraceEvents.h ('k') | sky/engine/core/loader/FrameLoaderClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698