CSSOverviewController.js 863 B

1234
  1. export class OverviewController extends Common.Object{constructor(){super();this.currentUrl=SDK.targetManager.inspectedURL();SDK.targetManager.addEventListener(SDK.TargetManager.Events.InspectedURLChanged,this._checkUrlAndResetIfChanged,this);}
  2. _checkUrlAndResetIfChanged(){if(this.currentUrl===SDK.targetManager.inspectedURL()){return;}
  3. this.currentUrl=SDK.targetManager.inspectedURL();this.dispatchEventToListeners(Events.Reset);}}
  4. export const Events={RequestOverviewStart:Symbol('RequestOverviewStart'),RequestNodeHighlight:Symbol('RequestNodeHighlight'),PopulateNodes:Symbol('PopulateNodes'),RequestOverviewCancel:Symbol('RequestOverviewCancel'),OverviewCompleted:Symbol('OverviewCompleted'),Reset:Symbol('Reset'),};self.CssOverview=self.CssOverview||{};CssOverview=CssOverview||{};CssOverview.OverviewController=OverviewController;CssOverview.Events=Events;