Changeset 242244 in webkit
- Timestamp:
- Feb 28, 2019 5:11:56 PM (5 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r242243 r242244 1 2019-02-28 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: Timelines: don't show the auto-stop UI when not inspecting a page 4 https://bugs.webkit.org/show_bug.cgi?id=195192 5 6 Reviewed by Joseph Pecoraro. 7 8 * UserInterface/Views/TimelineRecordingContentView.js: 9 (WI.TimelineRecordingContentView): 10 (WI.TimelineRecordingContentView.prototype.get navigationItems): 11 1 12 2019-02-28 Joseph Pecoraro <pecoraro@apple.com> 2 13 -
trunk/Source/WebInspectorUI/UserInterface/Views/TimelineRecordingContentView.js
r242194 r242244 57 57 this.addSubview(this._timelineContentBrowser); 58 58 59 this._autoStopCheckboxNavigationItem = new WI.CheckboxNavigationItem("auto-stop-recording", WI.UIString("Stop recording once page loads"), WI.settings.timelinesAutoStop.value); 60 this._autoStopCheckboxNavigationItem.visibilityPriority = WI.NavigationItem.VisibilityPriority.Low; 61 this._autoStopCheckboxNavigationItem.addEventListener(WI.CheckboxNavigationItem.Event.CheckedDidChange, this._handleAutoStopCheckboxCheckedDidChange, this); 62 63 WI.settings.timelinesAutoStop.addEventListener(WI.Setting.Event.Changed, this._handleTimelinesAutoStopSettingChanged, this); 59 if (WI.sharedApp.debuggableType === WI.DebuggableType.Web) { 60 this._autoStopCheckboxNavigationItem = new WI.CheckboxNavigationItem("auto-stop-recording", WI.UIString("Stop recording once page loads"), WI.settings.timelinesAutoStop.value); 61 this._autoStopCheckboxNavigationItem.visibilityPriority = WI.NavigationItem.VisibilityPriority.Low; 62 this._autoStopCheckboxNavigationItem.addEventListener(WI.CheckboxNavigationItem.Event.CheckedDidChange, this._handleAutoStopCheckboxCheckedDidChange, this); 63 64 WI.settings.timelinesAutoStop.addEventListener(WI.Setting.Event.Changed, this._handleTimelinesAutoStopSettingChanged, this); 65 } 64 66 65 67 this._clearTimelineNavigationItem = new WI.ButtonNavigationItem("clear-timeline", WI.UIString("Clear Timeline (%s)").format(WI.clearKeyboardShortcut.displayName), "Images/NavigationItemTrash.svg", 15, 15); … … 162 164 get navigationItems() 163 165 { 164 return [ 165 this._autoStopCheckboxNavigationItem, 166 new WI.DividerNavigationItem, 167 this._clearTimelineNavigationItem, 168 ]; 166 let navigationItems = []; 167 if (this._autoStopCheckboxNavigationItem) 168 navigationItems.push(this._autoStopCheckboxNavigationItem); 169 navigationItems.push(new WI.DividerNavigationItem); 170 navigationItems.push(this._clearTimelineNavigationItem); 171 return navigationItems; 169 172 } 170 173
Note: See TracChangeset
for help on using the changeset viewer.