OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 125 |
126 virtual void setFrontend(InspectorFrontend*) OVERRIDE; | 126 virtual void setFrontend(InspectorFrontend*) OVERRIDE; |
127 virtual void clearFrontend() OVERRIDE; | 127 virtual void clearFrontend() OVERRIDE; |
128 virtual void restore() OVERRIDE; | 128 virtual void restore() OVERRIDE; |
129 | 129 |
130 virtual void enable(ErrorString*, const String* traceEventCategoryFilter) OV
ERRIDE; | 130 virtual void enable(ErrorString*, const String* traceEventCategoryFilter) OV
ERRIDE; |
131 virtual void disable(ErrorString*) OVERRIDE; | 131 virtual void disable(ErrorString*) OVERRIDE; |
132 virtual void start(ErrorString*, const int* maxCallStackDepth, const bool* b
ufferEvents, const String* liveEvents, const bool* includeCounters, const bool*
includeGPUEvents) OVERRIDE; | 132 virtual void start(ErrorString*, const int* maxCallStackDepth, const bool* b
ufferEvents, const String* liveEvents, const bool* includeCounters, const bool*
includeGPUEvents) OVERRIDE; |
133 virtual void stop(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::Timel
ine::TimelineEvent> >& events) OVERRIDE; | 133 virtual void stop(ErrorString*, RefPtr<TypeBuilder::Array<TypeBuilder::Timel
ine::TimelineEvent> >& events) OVERRIDE; |
134 | 134 |
135 void setLayerTreeId(int layerTreeId) { m_layerTreeId = layerTreeId; } | 135 void setLayerTreeId(int); |
136 int id() const { return m_id; } | 136 int id() const { return m_id; } |
137 | 137 |
138 void didCommitLoad(); | 138 void didCommitLoad(); |
139 | 139 |
140 // Methods called from WebCore. | 140 // Methods called from WebCore. |
141 bool willCallFunction(ExecutionContext*, int scriptId, const String& scriptN
ame, int scriptLine); | 141 bool willCallFunction(ExecutionContext*, int scriptId, const String& scriptN
ame, int scriptLine); |
142 void didCallFunction(); | 142 void didCallFunction(); |
143 | 143 |
144 bool willDispatchEvent(Document* document, const Event& event, DOMWindow* wi
ndow, Node* node, const EventPath& eventPath); | 144 bool willDispatchEvent(Document* document, const Event& event, DOMWindow* wi
ndow, Node* node, const EventPath& eventPath); |
145 bool willDispatchEventOnWindow(const Event& event, DOMWindow* window); | 145 bool willDispatchEventOnWindow(const Event& event, DOMWindow* window); |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 void innerAddRecordToTimeline(PassRefPtr<TypeBuilder::Timeline::TimelineEven
t>); | 277 void innerAddRecordToTimeline(PassRefPtr<TypeBuilder::Timeline::TimelineEven
t>); |
278 PassRefPtr<TypeBuilder::Timeline::TimelineEvent> createCountersUpdate(); | 278 PassRefPtr<TypeBuilder::Timeline::TimelineEvent> createCountersUpdate(); |
279 void clearRecordStack(); | 279 void clearRecordStack(); |
280 PassRefPtr<TypeBuilder::Timeline::TimelineEvent> createRecordForEvent(const
TraceEventDispatcher::TraceEvent&, const String& type, PassRefPtr<JSONObject> da
ta); | 280 PassRefPtr<TypeBuilder::Timeline::TimelineEvent> createRecordForEvent(const
TraceEventDispatcher::TraceEvent&, const String& type, PassRefPtr<JSONObject> da
ta); |
281 | 281 |
282 void localToPageQuad(const RenderObject& renderer, const LayoutRect&, FloatQ
uad*); | 282 void localToPageQuad(const RenderObject& renderer, const LayoutRect&, FloatQ
uad*); |
283 long long nodeId(Node*); | 283 long long nodeId(Node*); |
284 long long nodeId(RenderObject*); | 284 long long nodeId(RenderObject*); |
285 void releaseNodeIds(); | 285 void releaseNodeIds(); |
286 | 286 |
| 287 void initializeSessionId(); |
| 288 String sessionId() const; |
| 289 |
287 double timestamp(); | 290 double timestamp(); |
288 | 291 |
289 LocalFrame* mainFrame() const; | 292 LocalFrame* mainFrame() const; |
290 | 293 |
291 bool isStarted(); | 294 bool isStarted(); |
292 void innerStart(); | 295 void innerStart(); |
293 void innerStop(bool fromConsole); | 296 void innerStop(bool fromConsole); |
294 void setLiveEvents(const String&); | 297 void setLiveEvents(const String&); |
295 | 298 |
296 InspectorPageAgent* m_pageAgent; | 299 InspectorPageAgent* m_pageAgent; |
(...skipping 29 matching lines...) Expand all Loading... |
326 ThreadStateMap m_threadStates; | 329 ThreadStateMap m_threadStates; |
327 bool m_mayEmitFirstPaint; | 330 bool m_mayEmitFirstPaint; |
328 HashSet<String> m_liveEvents; | 331 HashSet<String> m_liveEvents; |
329 double m_lastProgressTimestamp; | 332 double m_lastProgressTimestamp; |
330 bool m_disableTracingOnStop; | 333 bool m_disableTracingOnStop; |
331 }; | 334 }; |
332 | 335 |
333 } // namespace WebCore | 336 } // namespace WebCore |
334 | 337 |
335 #endif // !defined(InspectorTimelineAgent_h) | 338 #endif // !defined(InspectorTimelineAgent_h) |
OLD | NEW |