import*as r from"./../../core/common/common.js";import*as l from"./../../core/i18n/i18n.js";import*as i from"./../../ui/legacy/legacy.js";var t={performance:"Performance",showPerformance:"Show Performance",showRecentTimelineSessions:"Show recent timeline sessions",record:"Record",stop:"Stop",recordAndReload:"Record and reload",timelineShowAllEvents:"Show all events",timelineDebugMode:"Timeline debug mode (trace event details, etc.)"},d=l.i18n.registerUIStrings("panels/js_timeline/js_timeline-meta.ts",t),n=l.i18n.getLazilyComputedLocalizedString.bind(void 0,d),o;async function a(){return o||(o=await import("./../timeline/timeline.js")),o}function s(e){return o===void 0?[]:e(o)}i.ViewManager.registerViewExtension({location:"panel",id:"timeline",title:n(t.performance),commandPrompt:n(t.showPerformance),order:66,hasToolbar:!1,isPreviewFeature:!0,async loadView(e){let c=await a(),{pageResourceLoader:m}=e;return c.TimelinePanel.TimelinePanel.instance({forceNew:!0,resourceLoader:m})}});i.ActionRegistration.registerActionExtension({actionId:"timeline.show-history",async loadActionDelegate(){let e=await a();return new e.TimelinePanel.ActionDelegate},category:"PERFORMANCE",title:n(t.showRecentTimelineSessions),contextTypes(){return s(e=>[e.TimelinePanel.TimelinePanel])},bindings:[{platform:"windows,linux",shortcut:"Ctrl+H"},{platform:"mac",shortcut:"Meta+Y"}]});i.ActionRegistration.registerActionExtension({actionId:"timeline.toggle-recording",category:"PERFORMANCE",iconClass:"record-start",toggleable:!0,toggledIconClass:"record-stop",toggleWithRedColor:!0,contextTypes(){return s(e=>[e.TimelinePanel.TimelinePanel])},async loadActionDelegate(){let e=await a();return new e.TimelinePanel.ActionDelegate},options:[{value:!0,title:n(t.record)},{value:!1,title:n(t.stop)}],bindings:[{platform:"windows,linux",shortcut:"Ctrl+E"},{platform:"mac",shortcut:"Meta+E"}]});i.ActionRegistration.registerActionExtension({actionId:"timeline.record-reload",iconClass:"refresh",contextTypes(){return s(e=>[e.TimelinePanel.TimelinePanel])},category:"PERFORMANCE",title:n(t.recordAndReload),async loadActionDelegate(){let e=await a();return new e.TimelinePanel.ActionDelegate},bindings:[{platform:"windows,linux",shortcut:"Ctrl+Shift+E"},{platform:"mac",shortcut:"Meta+Shift+E"}]});r.Settings.registerSettingExtension({category:"PERFORMANCE",storageType:"Synced",title:n(t.timelineShowAllEvents),settingName:"timeline-show-all-events",settingType:"boolean",defaultValue:!1});r.Settings.registerSettingExtension({category:"PERFORMANCE",storageType:"Synced",title:n(t.timelineDebugMode),settingName:"timeline-debug-mode",settingType:"boolean",defaultValue:!1});r.Settings.registerSettingExtension({category:"PERFORMANCE",storageType:"Synced",settingName:"annotations-hidden",settingType:"boolean",defaultValue:!0});
//# sourceMappingURL=js_timeline-meta.js.map
