Index: Source/devtools/front_end/timeline/TimelinePanel.js |
diff --git a/Source/devtools/front_end/timeline/TimelinePanel.js b/Source/devtools/front_end/timeline/TimelinePanel.js |
index 5bb826c9db8a51dd9e41416bdd1ba57943c4528c..70b90f5ee513318579327a11eda556db51d2c3c2 100644 |
--- a/Source/devtools/front_end/timeline/TimelinePanel.js |
+++ b/Source/devtools/front_end/timeline/TimelinePanel.js |
@@ -124,7 +124,7 @@ WebInspector.TimelinePanel = function() |
this._onModeChanged(); |
this._detailsSplitView.show(this.element); |
- WebInspector.profilingLock().addEventListener(WebInspector.Lock.Events.StateChanged, this._onProfilingStateChanged, this); |
+ WebInspector.targetManager.addEventListener(WebInspector.TargetManager.Events.SuspendStateChanged, this._onSuspendStateChanged, this); |
} |
WebInspector.TimelinePanel.OverviewMode = { |
@@ -630,7 +630,6 @@ WebInspector.TimelinePanel.prototype = { |
uiControl.label.classList.toggle("dimmed", !enabled); |
} |
this._recordingOptionUIControls.forEach(handler); |
- WebInspector.inspectorView.setCurrentPanelLocked(!enabled); |
}, |
/** |
@@ -665,7 +664,7 @@ WebInspector.TimelinePanel.prototype = { |
this._setUIControlsEnabled(true); |
}, |
- _onProfilingStateChanged: function() |
+ _onSuspendStateChanged: function() |
{ |
this._updateToggleTimelineButton(this.toggleTimelineButton.toggled); |
}, |
@@ -675,7 +674,7 @@ WebInspector.TimelinePanel.prototype = { |
*/ |
_updateToggleTimelineButton: function(toggled) |
{ |
- var isAcquiredInSomeTarget = WebInspector.profilingLock().isAcquired(); |
+ var isAcquiredInSomeTarget = WebInspector.targetManager.areTargetsSuspended(); |
aandrey
2014/10/15 18:14:06
we should do smth with the naming
loislo
2014/10/16 09:08:22
Done.
|
this.toggleTimelineButton.toggled = toggled; |
if (toggled) { |
this.toggleTimelineButton.title = WebInspector.UIString("Stop"); |