UNPKG

chrome-devtools-frontend

Version:
22 lines (17 loc) 782 B
// Copyright 2025 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import * as IconButton from '../../ui/components/icon_button/icon_button.js'; import {SecurityPanelSidebarTreeElement} from './SecurityPanelSidebarTreeElement.js'; export class IPProtectionTreeElement extends SecurityPanelSidebarTreeElement { constructor(title: string, jslogContext: string|number) { super(title, false, jslogContext); this.setLeadingIcons([IconButton.Icon.create('shield', 'shield-icon')]); } override get elemId(): string { return 'protection'; } override showElement(): void { this.listItemElement.dispatchEvent(new CustomEvent('showIPProtection', {bubbles: true, composed: true})); } }