OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 from telemetry.timeline_event import TimelineEvent | 4 from telemetry.timeline_event import TimelineEvent |
5 from telemetry.timeline_model import TimelineModel | 5 from telemetry.timeline_model import TimelineModel |
6 | 6 |
7 class TabBackendException(Exception): | 7 class TabBackendException(Exception): |
8 pass | 8 pass |
9 | 9 |
10 class InspectorTimeline(object): | 10 class InspectorTimeline(object): |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 parent_for_children = newly_created_event | 112 parent_for_children = newly_created_event |
113 else: | 113 else: |
114 parent_for_children = parent_for_created_events | 114 parent_for_children = parent_for_created_events |
115 for child in raw_inspector_event.get('children', []): | 115 for child in raw_inspector_event.get('children', []): |
116 InspectorTimeline._RawEventToTimelineEventRecursive( | 116 InspectorTimeline._RawEventToTimelineEventRecursive( |
117 parent_for_children, child) | 117 parent_for_children, child) |
118 return newly_created_event | 118 return newly_created_event |
119 | 119 |
120 def _OnClose(self): | 120 def _OnClose(self): |
121 pass | 121 pass |
OLD | NEW |