@@ -406,7 +406,7 @@ export class ApplicationPanelSidebar extends UI.Widget.VBox implements SDK.Targe
406406 i18nString ( UIStrings . localStorageDescription ) , 'local-storage' ) ;
407407 this . localStorageListTreeElement . setLink (
408408 'https://developer.chrome.com/docs/devtools/storage/localstorage/' as Platform . DevToolsPath . UrlString ) ;
409- const localStorageIcon = IconButton . Icon . create ( 'table' ) ;
409+ const localStorageIcon = IconButton . Icon . createIcon ( 'table' ) ;
410410 this . localStorageListTreeElement . setLeadingIcons ( [ localStorageIcon ] ) ;
411411
412412 storageTreeElement . appendChild ( this . localStorageListTreeElement ) ;
@@ -415,7 +415,7 @@ export class ApplicationPanelSidebar extends UI.Widget.VBox implements SDK.Targe
415415 i18nString ( UIStrings . sessionStorageDescription ) , 'session-storage' ) ;
416416 this . sessionStorageListTreeElement . setLink (
417417 'https://developer.chrome.com/docs/devtools/storage/sessionstorage/' as Platform . DevToolsPath . UrlString ) ;
418- const sessionStorageIcon = IconButton . Icon . create ( 'table' ) ;
418+ const sessionStorageIcon = IconButton . Icon . createIcon ( 'table' ) ;
419419 this . sessionStorageListTreeElement . setLeadingIcons ( [ sessionStorageIcon ] ) ;
420420
421421 storageTreeElement . appendChild ( this . sessionStorageListTreeElement ) ;
@@ -425,7 +425,7 @@ export class ApplicationPanelSidebar extends UI.Widget.VBox implements SDK.Targe
425425 i18nString ( UIStrings . extensionStorageDescription ) , 'extension-storage' ) ;
426426 this . extensionStorageListTreeElement . setLink (
427427 'https://developer.chrome.com/docs/extensions/reference/api/storage/' as Platform . DevToolsPath . UrlString ) ;
428- const extensionStorageIcon = IconButton . Icon . create ( 'table' ) ;
428+ const extensionStorageIcon = IconButton . Icon . createIcon ( 'table' ) ;
429429 this . extensionStorageListTreeElement . setLeadingIcons ( [ extensionStorageIcon ] ) ;
430430
431431 storageTreeElement . appendChild ( this . extensionStorageListTreeElement ) ;
@@ -440,7 +440,7 @@ export class ApplicationPanelSidebar extends UI.Widget.VBox implements SDK.Targe
440440 'cookies' ) ;
441441 this . cookieListTreeElement . setLink (
442442 'https://developer.chrome.com/docs/devtools/storage/cookies/' as Platform . DevToolsPath . UrlString ) ;
443- const cookieIcon = IconButton . Icon . create ( 'cookie' ) ;
443+ const cookieIcon = IconButton . Icon . createIcon ( 'cookie' ) ;
444444 this . cookieListTreeElement . setLeadingIcons ( [ cookieIcon ] ) ;
445445 storageTreeElement . appendChild ( this . cookieListTreeElement ) ;
446446
@@ -1064,7 +1064,7 @@ export class BackgroundServiceTreeElement extends ApplicationPanelTreeElement {
10641064
10651065 this . model = null ;
10661066
1067- const backgroundServiceIcon = IconButton . Icon . create ( this . getIconType ( ) ) ;
1067+ const backgroundServiceIcon = IconButton . Icon . createIcon ( this . getIconType ( ) ) ;
10681068 this . setLeadingIcons ( [ backgroundServiceIcon ] ) ;
10691069 }
10701070
@@ -1130,7 +1130,7 @@ export class ServiceWorkersTreeElement extends ApplicationPanelTreeElement {
11301130
11311131 constructor ( storagePanel : ResourcesPanel ) {
11321132 super ( storagePanel , i18n . i18n . lockedString ( 'Service workers' ) , false , 'service-workers' ) ;
1133- const icon = IconButton . Icon . create ( 'gears' ) ;
1133+ const icon = IconButton . Icon . createIcon ( 'gears' ) ;
11341134 this . setLeadingIcons ( [ icon ] ) ;
11351135 }
11361136
@@ -1153,7 +1153,7 @@ export class AppManifestTreeElement extends ApplicationPanelTreeElement {
11531153 private view : AppManifestView ;
11541154 constructor ( storagePanel : ResourcesPanel ) {
11551155 super ( storagePanel , i18nString ( UIStrings . manifest ) , true , 'manifest' ) ;
1156- const icon = IconButton . Icon . create ( 'document' ) ;
1156+ const icon = IconButton . Icon . createIcon ( 'document' ) ;
11571157 this . setLeadingIcons ( [ icon ] ) ;
11581158 self . onInvokeElement ( this . listItemElement , this . onInvoke . bind ( this ) ) ;
11591159 const emptyView = new UI . EmptyWidget . EmptyWidget (
@@ -1207,7 +1207,7 @@ export class ManifestChildTreeElement extends ApplicationPanelTreeElement {
12071207 storagePanel : ResourcesPanel , element : Element , childTitle : string , fieldElement : HTMLElement ,
12081208 jslogContext : string ) {
12091209 super ( storagePanel , childTitle , false , jslogContext ) ;
1210- const icon = IconButton . Icon . create ( 'document' ) ;
1210+ const icon = IconButton . Icon . createIcon ( 'document' ) ;
12111211 this . setLeadingIcons ( [ icon ] ) ;
12121212 this . #sectionElement = element ;
12131213 this . #sectionFieldElement = fieldElement ;
@@ -1252,7 +1252,7 @@ export class ClearStorageTreeElement extends ApplicationPanelTreeElement {
12521252 private view ?: StorageView ;
12531253 constructor ( storagePanel : ResourcesPanel ) {
12541254 super ( storagePanel , i18nString ( UIStrings . storage ) , false , 'storage' ) ;
1255- const icon = IconButton . Icon . create ( 'database' ) ;
1255+ const icon = IconButton . Icon . createIcon ( 'database' ) ;
12561256 this . setLeadingIcons ( [ icon ] ) ;
12571257 }
12581258
@@ -1278,7 +1278,7 @@ export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement
12781278 super (
12791279 storagePanel , i18nString ( UIStrings . indexeddb ) , i18nString ( UIStrings . noIndexeddb ) ,
12801280 i18nString ( UIStrings . indexeddbDescription ) , 'indexed-db' ) ;
1281- const icon = IconButton . Icon . create ( 'database' ) ;
1281+ const icon = IconButton . Icon . createIcon ( 'database' ) ;
12821282 this . setLeadingIcons ( [ icon ] ) ;
12831283 this . idbDatabaseTreeElements = [ ] ;
12841284 this . storageBucket = storageBucket ;
@@ -1421,7 +1421,7 @@ export class IDBDatabaseTreeElement extends ApplicationPanelTreeElement {
14211421 this . model = model ;
14221422 this . databaseId = databaseId ;
14231423 this . idbObjectStoreTreeElements = new Map ( ) ;
1424- const icon = IconButton . Icon . create ( 'database' ) ;
1424+ const icon = IconButton . Icon . createIcon ( 'database' ) ;
14251425 this . setLeadingIcons ( [ icon ] ) ;
14261426 this . model . addEventListener ( IndexedDBModelEvents . DatabaseNamesRefreshed , this . refreshIndexedDB , this ) ;
14271427 }
@@ -1546,7 +1546,7 @@ export class IDBObjectStoreTreeElement extends ApplicationPanelTreeElement {
15461546 this . idbIndexTreeElements = new Map ( ) ;
15471547 this . objectStore = objectStore ;
15481548 this . view = null ;
1549- const icon = IconButton . Icon . create ( 'table' ) ;
1549+ const icon = IconButton . Icon . createIcon ( 'table' ) ;
15501550 this . setLeadingIcons ( [ icon ] ) ;
15511551 }
15521552
@@ -1758,7 +1758,7 @@ export class DOMStorageTreeElement extends ApplicationPanelTreeElement {
17581758 i18nString ( UIStrings . localFiles ) ,
17591759 false , domStorage . isLocalStorage ? 'local-storage-for-domain' : 'session-storage-for-domain' ) ;
17601760 this . domStorage = domStorage ;
1761- const icon = IconButton . Icon . create ( 'table' ) ;
1761+ const icon = IconButton . Icon . createIcon ( 'table' ) ;
17621762 this . setLeadingIcons ( [ icon ] ) ;
17631763 }
17641764
@@ -1793,7 +1793,7 @@ export class ExtensionStorageTreeElement extends ApplicationPanelTreeElement {
17931793 super (
17941794 storagePanel , nameForExtensionStorageArea ( extensionStorage . storageArea ) , false , 'extension-storage-for-domain' ) ;
17951795 this . extensionStorage = extensionStorage ;
1796- const icon = IconButton . Icon . create ( 'table' ) ;
1796+ const icon = IconButton . Icon . createIcon ( 'table' ) ;
17971797 this . setLeadingIcons ( [ icon ] ) ;
17981798 }
17991799
@@ -1831,7 +1831,7 @@ export class ExtensionStorageTreeParentElement extends ApplicationPanelTreeEleme
18311831 constructor ( storagePanel : ResourcesPanel , extensionId : string , extensionName : string ) {
18321832 super ( storagePanel , extensionName || extensionId , true , 'extension-storage-for-domain' ) ;
18331833 this . extensionId = extensionId ;
1834- const icon = IconButton . Icon . create ( 'table' ) ;
1834+ const icon = IconButton . Icon . createIcon ( 'table' ) ;
18351835 this . setLeadingIcons ( [ icon ] ) ;
18361836 }
18371837
@@ -1851,7 +1851,7 @@ export class CookieTreeElement extends ApplicationPanelTreeElement {
18511851 this . target = frame . resourceTreeModel ( ) . target ( ) ;
18521852 this . #cookieDomain = cookieUrl . securityOrigin ( ) ;
18531853 this . tooltip = i18nString ( UIStrings . cookiesUsedByFramesFromS , { PH1 : this . #cookieDomain} ) ;
1854- const icon = IconButton . Icon . create ( 'cookie' ) ;
1854+ const icon = IconButton . Icon . createIcon ( 'cookie' ) ;
18551855 // Note that we cannot use `cookieDomainInternal` here since it contains scheme.
18561856 if ( IssuesManager . RelatedIssue . hasThirdPartyPhaseoutCookieIssueForDomain ( cookieUrl . domain ( ) ) ) {
18571857 icon . name = 'warning-filled' ;
@@ -2172,7 +2172,7 @@ export class FrameTreeElement extends ApplicationPanelTreeElement {
21722172 }
21732173
21742174 async frameNavigated ( frame : SDK . ResourceTreeModel . ResourceTreeFrame ) : Promise < void > {
2175- const icon = IconButton . Icon . create ( this . getIconTypeForFrame ( frame ) ) ;
2175+ const icon = IconButton . Icon . createIcon ( this . getIconTypeForFrame ( frame ) ) ;
21762176 if ( frame . unreachableUrl ( ) ) {
21772177 icon . classList . add ( 'red-icon' ) ;
21782178 }
@@ -2374,7 +2374,7 @@ export class FrameResourceTreeElement extends ApplicationPanelTreeElement {
23742374 this . tooltip = resource . url ;
23752375 resourceToFrameResourceTreeElement . set ( this . resource , this ) ;
23762376
2377- const icon = IconButton . Icon . create ( 'document' , 'navigator-file-tree-item' ) ;
2377+ const icon = IconButton . Icon . createIcon ( 'document' , 'navigator-file-tree-item' ) ;
23782378 icon . classList . add ( 'navigator-' + resource . resourceType ( ) . name ( ) + '-tree-item' ) ;
23792379 this . setLeadingIcons ( [ icon ] ) ;
23802380 }
@@ -2465,7 +2465,7 @@ class FrameWindowTreeElement extends ApplicationPanelTreeElement {
24652465
24662466 updateIcon ( canAccessOpener : boolean ) : void {
24672467 const iconType = canAccessOpener ? 'popup' : 'frame' ;
2468- const icon = IconButton . Icon . create ( iconType ) ;
2468+ const icon = IconButton . Icon . createIcon ( iconType ) ;
24692469 this . setLeadingIcons ( [ icon ] ) ;
24702470 }
24712471
@@ -2514,7 +2514,7 @@ class WorkerTreeElement extends ApplicationPanelTreeElement {
25142514 super ( storagePanel , targetInfo . title || targetInfo . url || i18nString ( UIStrings . worker ) , false , 'worker' ) ;
25152515 this . targetInfo = targetInfo ;
25162516 this . view = null ;
2517- const icon = IconButton . Icon . create ( 'gears' , 'navigator-file-tree-item' ) ;
2517+ const icon = IconButton . Icon . createIcon ( 'gears' , 'navigator-file-tree-item' ) ;
25182518 this . setLeadingIcons ( [ icon ] ) ;
25192519 }
25202520
0 commit comments