chrome-devtools-frontend 1.0.933786 → 1.0.934857
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/gni/all_devtools_files.gni +0 -8
- package/config/gni/devtools_grd_files.gni +3 -3
- package/front_end/Tests.js +2 -2
- package/front_end/core/host/UserMetrics.ts +0 -1
- package/front_end/core/i18n/locales/en-US.json +3 -0
- package/front_end/core/i18n/locales/en-XL.json +3 -0
- package/front_end/core/root/Runtime.ts +0 -1
- package/front_end/core/sdk/ChildTargetManager.ts +2 -2
- package/front_end/core/sdk/DOMModel.ts +6 -10
- package/front_end/core/sdk/sdk-meta.ts +3 -0
- package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +1 -0
- package/front_end/entrypoints/main/MainImpl.ts +1 -11
- package/front_end/entrypoints/main/main-meta.ts +2 -1
- package/front_end/entrypoints/shell/shell.json +0 -3
- package/front_end/models/emulation/EmulatedDevices.ts +306 -84
- package/front_end/panels/changes/changes-meta.ts +0 -3
- package/front_end/panels/console/ConsoleContextSelector.ts +1 -1
- package/front_end/panels/elements/elements-meta.ts +5 -0
- package/front_end/panels/lighthouse/LighthouseProtocolService.ts +1 -5
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +0 -5
- package/front_end/panels/mobile_throttling/mobile_throttling-meta.ts +1 -0
- package/front_end/panels/network/network-meta.ts +2 -0
- package/front_end/panels/profiler/profiler-meta.ts +1 -0
- package/front_end/panels/sensors/sensors-meta.ts +1 -0
- package/front_end/panels/sources/CallStackSidebarPane.ts +21 -0
- package/front_end/panels/sources/module.json +0 -2
- package/front_end/panels/sources/sources-meta.ts +12 -0
- package/front_end/panels/timeline/timeline-meta.ts +1 -0
- package/front_end/ui/components/text_editor/config.ts +1 -1
- package/front_end/ui/components/text_editor/theme.ts +8 -0
- package/front_end/ui/legacy/GlassPane.ts +4 -0
- package/front_end/ui/legacy/InspectorView.ts +0 -4
- package/front_end/ui/legacy/ViewManager.ts +10 -2
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +2 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +4 -3
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +5 -5
- package/front_end/ui/legacy/components/object_ui/module.json +0 -6
- package/front_end/ui/legacy/components/perf_ui/perf_ui-meta.ts +1 -0
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +3 -1
- package/front_end/ui/legacy/components/quick_open/quick_open-meta.ts +0 -3
- package/front_end/ui/legacy/components/source_frame/source_frame-meta.ts +1 -0
- package/front_end/ui/legacy/themeColors.css +4 -0
- package/front_end/ui/legacy/toolbar.css +18 -4
- package/package.json +1 -1
- package/front_end/panels/changes/module.json +0 -7
- package/front_end/panels/snippets/module.json +0 -6
- package/front_end/ui/legacy/components/quick_open/module.json +0 -8
|
@@ -82,6 +82,10 @@ const UIStrings = {
|
|
|
82
82
|
*@description A context menu item in the Call Stack Sidebar Pane of the Sources panel
|
|
83
83
|
*/
|
|
84
84
|
addAllContentScriptsToIgnoreList: 'Add all content scripts to ignore list',
|
|
85
|
+
/**
|
|
86
|
+
*@description Text in Call Stack Sidebar Pane of the Sources panel when some call frames have warnings
|
|
87
|
+
*/
|
|
88
|
+
callFrameWarnings: 'Some call frames have warnings',
|
|
85
89
|
};
|
|
86
90
|
const str_ = i18n.i18n.registerUIStrings('panels/sources/CallStackSidebarPane.ts', UIStrings);
|
|
87
91
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -92,6 +96,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView implements UI.Conte
|
|
|
92
96
|
UI.ListControl.ListDelegate<Item> {
|
|
93
97
|
private readonly ignoreListMessageElement: Element;
|
|
94
98
|
private readonly notPausedMessageElement: HTMLElement;
|
|
99
|
+
private readonly callFrameWarningsElement: HTMLElement;
|
|
95
100
|
private readonly items: UI.ListModel.ListModel<Item>;
|
|
96
101
|
private list: UI.ListControl.ListControl<Item>;
|
|
97
102
|
private readonly showMoreMessageElement: Element;
|
|
@@ -113,6 +118,12 @@ export class CallStackSidebarPane extends UI.View.SimpleView implements UI.Conte
|
|
|
113
118
|
this.notPausedMessageElement.textContent = i18nString(UIStrings.notPaused);
|
|
114
119
|
this.notPausedMessageElement.tabIndex = -1;
|
|
115
120
|
|
|
121
|
+
this.callFrameWarningsElement = this.contentElement.createChild('div', 'ignore-listed-message');
|
|
122
|
+
const icon = UI.Icon.Icon.create('smallicon-warning', 'call-frame-warning-icon');
|
|
123
|
+
this.callFrameWarningsElement.appendChild(icon);
|
|
124
|
+
this.callFrameWarningsElement.appendChild(document.createTextNode(i18nString(UIStrings.callFrameWarnings)));
|
|
125
|
+
this.callFrameWarningsElement.tabIndex = -1;
|
|
126
|
+
|
|
116
127
|
this.items = new UI.ListModel.ListModel();
|
|
117
128
|
this.list = new UI.ListControl.ListControl(this.items, this, UI.ListControl.ListMode.NonViewport);
|
|
118
129
|
this.contentElement.appendChild(this.list.element);
|
|
@@ -164,6 +175,8 @@ export class CallStackSidebarPane extends UI.View.SimpleView implements UI.Conte
|
|
|
164
175
|
private async doUpdate(): Promise<void> {
|
|
165
176
|
this.locationPool.disposeAll();
|
|
166
177
|
|
|
178
|
+
this.callFrameWarningsElement.classList.add('hidden');
|
|
179
|
+
|
|
167
180
|
const details = UI.Context.Context.instance().flavor(SDK.DebuggerModel.DebuggerPausedDetails);
|
|
168
181
|
if (!details) {
|
|
169
182
|
this.notPausedMessageElement.classList.remove('hidden');
|
|
@@ -178,6 +191,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView implements UI.Conte
|
|
|
178
191
|
this.notPausedMessageElement.classList.add('hidden');
|
|
179
192
|
|
|
180
193
|
const itemPromises = [];
|
|
194
|
+
const uniqueWarnings: Set<string> = new Set();
|
|
181
195
|
for (const frame of details.callFrames) {
|
|
182
196
|
const itemPromise =
|
|
183
197
|
Item.createForDebuggerCallFrame(frame, this.locationPool, this.refreshItem.bind(this)).then(item => {
|
|
@@ -185,8 +199,15 @@ export class CallStackSidebarPane extends UI.View.SimpleView implements UI.Conte
|
|
|
185
199
|
return item;
|
|
186
200
|
});
|
|
187
201
|
itemPromises.push(itemPromise);
|
|
202
|
+
for (const warning of frame.warnings) {
|
|
203
|
+
uniqueWarnings.add(warning);
|
|
204
|
+
}
|
|
188
205
|
}
|
|
189
206
|
const items = await Promise.all(itemPromises);
|
|
207
|
+
if (uniqueWarnings.size) {
|
|
208
|
+
this.callFrameWarningsElement.classList.remove('hidden');
|
|
209
|
+
UI.Tooltip.Tooltip.install(this.callFrameWarningsElement, Array.from(uniqueWarnings).join('\n'));
|
|
210
|
+
}
|
|
190
211
|
|
|
191
212
|
let asyncStackTrace: Protocol.Runtime.StackTrace|null|undefined = details.asyncStackTrace;
|
|
192
213
|
if (!asyncStackTrace && details.asyncStackTraceId) {
|
|
@@ -1249,6 +1249,7 @@ Common.Settings.registerSettingExtension({
|
|
|
1249
1249
|
|
|
1250
1250
|
Common.Settings.registerSettingExtension({
|
|
1251
1251
|
category: Common.Settings.SettingCategory.SOURCES,
|
|
1252
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
1252
1253
|
title: i18nLazyString(UIStrings.searchInAnonymousAndContent),
|
|
1253
1254
|
settingName: 'searchInAnonymousAndContentScripts',
|
|
1254
1255
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -1267,6 +1268,7 @@ Common.Settings.registerSettingExtension({
|
|
|
1267
1268
|
|
|
1268
1269
|
Common.Settings.registerSettingExtension({
|
|
1269
1270
|
category: Common.Settings.SettingCategory.SOURCES,
|
|
1271
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
1270
1272
|
title: i18nLazyString(UIStrings.automaticallyRevealFilesIn),
|
|
1271
1273
|
settingName: 'autoRevealInNavigator',
|
|
1272
1274
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -1285,6 +1287,7 @@ Common.Settings.registerSettingExtension({
|
|
|
1285
1287
|
|
|
1286
1288
|
Common.Settings.registerSettingExtension({
|
|
1287
1289
|
category: Common.Settings.SettingCategory.SOURCES,
|
|
1290
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
1288
1291
|
title: i18nLazyString(UIStrings.enableJavascriptSourceMaps),
|
|
1289
1292
|
settingName: 'jsSourceMapsEnabled',
|
|
1290
1293
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -1303,6 +1306,7 @@ Common.Settings.registerSettingExtension({
|
|
|
1303
1306
|
|
|
1304
1307
|
Common.Settings.registerSettingExtension({
|
|
1305
1308
|
category: Common.Settings.SettingCategory.SOURCES,
|
|
1309
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
1306
1310
|
title: i18nLazyString(UIStrings.enableTabMovesFocus),
|
|
1307
1311
|
settingName: 'textEditorTabMovesFocus',
|
|
1308
1312
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -1321,6 +1325,7 @@ Common.Settings.registerSettingExtension({
|
|
|
1321
1325
|
|
|
1322
1326
|
Common.Settings.registerSettingExtension({
|
|
1323
1327
|
category: Common.Settings.SettingCategory.SOURCES,
|
|
1328
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
1324
1329
|
title: i18nLazyString(UIStrings.detectIndentation),
|
|
1325
1330
|
settingName: 'textEditorAutoDetectIndent',
|
|
1326
1331
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -1339,6 +1344,7 @@ Common.Settings.registerSettingExtension({
|
|
|
1339
1344
|
|
|
1340
1345
|
Common.Settings.registerSettingExtension({
|
|
1341
1346
|
category: Common.Settings.SettingCategory.SOURCES,
|
|
1347
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
1342
1348
|
title: i18nLazyString(UIStrings.autocompletion),
|
|
1343
1349
|
settingName: 'textEditorAutocompletion',
|
|
1344
1350
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -1375,6 +1381,7 @@ Common.Settings.registerSettingExtension({
|
|
|
1375
1381
|
|
|
1376
1382
|
Common.Settings.registerSettingExtension({
|
|
1377
1383
|
category: Common.Settings.SettingCategory.SOURCES,
|
|
1384
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
1378
1385
|
title: i18nLazyString(UIStrings.codeFolding),
|
|
1379
1386
|
settingName: 'textEditorCodeFolding',
|
|
1380
1387
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -1393,6 +1400,7 @@ Common.Settings.registerSettingExtension({
|
|
|
1393
1400
|
|
|
1394
1401
|
Common.Settings.registerSettingExtension({
|
|
1395
1402
|
category: Common.Settings.SettingCategory.SOURCES,
|
|
1403
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
1396
1404
|
title: i18nLazyString(UIStrings.showWhitespaceCharacters),
|
|
1397
1405
|
settingName: 'showWhitespacesInEditor',
|
|
1398
1406
|
settingType: Common.Settings.SettingType.ENUM,
|
|
@@ -1418,6 +1426,7 @@ Common.Settings.registerSettingExtension({
|
|
|
1418
1426
|
|
|
1419
1427
|
Common.Settings.registerSettingExtension({
|
|
1420
1428
|
category: Common.Settings.SettingCategory.SOURCES,
|
|
1429
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
1421
1430
|
title: i18nLazyString(UIStrings.displayVariableValuesInlineWhile),
|
|
1422
1431
|
settingName: 'inlineVariableValues',
|
|
1423
1432
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -1436,6 +1445,7 @@ Common.Settings.registerSettingExtension({
|
|
|
1436
1445
|
|
|
1437
1446
|
Common.Settings.registerSettingExtension({
|
|
1438
1447
|
category: Common.Settings.SettingCategory.SOURCES,
|
|
1448
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
1439
1449
|
title: i18nLazyString(UIStrings.enableAutoFocusOnDebuggerPaused),
|
|
1440
1450
|
settingName: 'autoFocusOnDebuggerPausedEnabled',
|
|
1441
1451
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -1454,6 +1464,7 @@ Common.Settings.registerSettingExtension({
|
|
|
1454
1464
|
|
|
1455
1465
|
Common.Settings.registerSettingExtension({
|
|
1456
1466
|
category: Common.Settings.SettingCategory.SOURCES,
|
|
1467
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
1457
1468
|
title: i18nLazyString(UIStrings.enableCssSourceMaps),
|
|
1458
1469
|
settingName: 'cssSourceMapsEnabled',
|
|
1459
1470
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -1472,6 +1483,7 @@ Common.Settings.registerSettingExtension({
|
|
|
1472
1483
|
|
|
1473
1484
|
Common.Settings.registerSettingExtension({
|
|
1474
1485
|
category: Common.Settings.SettingCategory.SOURCES,
|
|
1486
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
1475
1487
|
title: i18nLazyString(UIStrings.allowScrollingPastEndOfFile),
|
|
1476
1488
|
settingName: 'allowScrollPastEof',
|
|
1477
1489
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -390,6 +390,7 @@ UI.ActionRegistration.registerActionExtension({
|
|
|
390
390
|
|
|
391
391
|
Common.Settings.registerSettingExtension({
|
|
392
392
|
category: Common.Settings.SettingCategory.PERFORMANCE,
|
|
393
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
393
394
|
title: i18nLazyString(UIStrings.hideChromeFrameInLayersView),
|
|
394
395
|
settingName: 'frameViewerHideChromeWindow',
|
|
395
396
|
settingType: Common.Settings.SettingType.BOOLEAN,
|
|
@@ -57,7 +57,7 @@ export const tabMovesFocus = DynamicSetting.bool('textEditorTabMovesFocus', CM.k
|
|
|
57
57
|
shift: (view: CM.EditorView): boolean => view.state.doc.length ? CM.indentLess(view) : false,
|
|
58
58
|
}]));
|
|
59
59
|
|
|
60
|
-
export const autocompletion = DynamicSetting.bool('textEditorAutocompletion', CM.autocompletion());
|
|
60
|
+
export const autocompletion = DynamicSetting.bool('textEditorAutocompletion', CM.autocompletion({icons: false}));
|
|
61
61
|
|
|
62
62
|
export const bracketMatching = DynamicSetting.bool('textEditorBracketMatching', CM.bracketMatching());
|
|
63
63
|
|
|
@@ -112,6 +112,14 @@ export const editorTheme = CM.EditorView.theme({
|
|
|
112
112
|
width: 'fit-content',
|
|
113
113
|
},
|
|
114
114
|
|
|
115
|
+
'.cm-tooltip.cm-tooltip-autocomplete > ul': {
|
|
116
|
+
minWidth: '16em',
|
|
117
|
+
'& > li[aria-selected]': {
|
|
118
|
+
backgroundColor: 'var(--color-selected-option-background)',
|
|
119
|
+
color: 'var(--color-selected-option)',
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
|
|
115
123
|
'.cm-highlightedLine': {
|
|
116
124
|
animation: 'cm-fading-highlight 2s 0s',
|
|
117
125
|
},
|
|
@@ -58,6 +58,10 @@ export class GlassPane {
|
|
|
58
58
|
this.widgetInternal.registerRequiredCSS(cssFile);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
registerCSSFiles(cssFiles: CSSStyleSheet[]): void {
|
|
62
|
+
this.widgetInternal.registerCSSFiles(cssFiles);
|
|
63
|
+
}
|
|
64
|
+
|
|
61
65
|
setDefaultFocusedElement(element: Element|null): void {
|
|
62
66
|
this.widgetInternal.setDefaultFocusedElement(element);
|
|
63
67
|
}
|
|
@@ -443,10 +443,6 @@ function getDisableLocaleInfoBarSetting(): Common.Settings.Setting<boolean> {
|
|
|
443
443
|
}
|
|
444
444
|
|
|
445
445
|
function shouldShowLocaleInfobar(): boolean {
|
|
446
|
-
if (!Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.LOCALIZED_DEVTOOLS)) {
|
|
447
|
-
return false;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
446
|
if (getDisableLocaleInfoBarSetting().get()) {
|
|
451
447
|
return false;
|
|
452
448
|
}
|
|
@@ -28,6 +28,11 @@ const UIStrings = {
|
|
|
28
28
|
};
|
|
29
29
|
const str_ = i18n.i18n.registerUIStrings('ui/legacy/ViewManager.ts', UIStrings);
|
|
30
30
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
31
|
+
|
|
32
|
+
export const defaultOptionsForTabs = {
|
|
33
|
+
security: true,
|
|
34
|
+
};
|
|
35
|
+
|
|
31
36
|
export class PreRegisteredView implements View {
|
|
32
37
|
private readonly viewRegistration: ViewRegistration;
|
|
33
38
|
private widgetRequested: boolean;
|
|
@@ -615,9 +620,12 @@ export class _TabbedLocation extends Location implements TabbedViewLocation {
|
|
|
615
620
|
private setOrUpdateCloseableTabsSetting(): void {
|
|
616
621
|
// Update the setting value, we respect the closed state decided by the user
|
|
617
622
|
// and append the new tabs with value of true so they are shown open
|
|
618
|
-
const defaultOptionsForTabs = {'security': true};
|
|
619
623
|
const tabs = this.closeableTabSetting.get();
|
|
620
|
-
const newClosable = Object.assign(
|
|
624
|
+
const newClosable = Object.assign(
|
|
625
|
+
{
|
|
626
|
+
...defaultOptionsForTabs,
|
|
627
|
+
},
|
|
628
|
+
tabs);
|
|
621
629
|
this.closeableTabSetting.set(newClosable);
|
|
622
630
|
}
|
|
623
631
|
|
|
@@ -9,6 +9,7 @@ import * as UI from '../../legacy.js';
|
|
|
9
9
|
import type * as Protocol from '../../../../generated/protocol.js';
|
|
10
10
|
|
|
11
11
|
import {ObjectPropertiesSection} from './ObjectPropertiesSection.js';
|
|
12
|
+
import customPreviewComponentStyles from './customPreviewComponent.css.js';
|
|
12
13
|
|
|
13
14
|
const UIStrings = {
|
|
14
15
|
/**
|
|
@@ -188,7 +189,7 @@ export class CustomPreviewComponent {
|
|
|
188
189
|
this.element = document.createElement('span');
|
|
189
190
|
this.element.classList.add('source-code');
|
|
190
191
|
const shadowRoot = UI.Utils.createShadowRootWithCoreStyles(this.element, {
|
|
191
|
-
cssFile:
|
|
192
|
+
cssFile: [customPreviewComponentStyles],
|
|
192
193
|
delegatesFocus: undefined,
|
|
193
194
|
});
|
|
194
195
|
this.element.addEventListener('contextmenu', this.contextMenuEventFired.bind(this), false);
|
|
@@ -34,7 +34,9 @@ import * as UI from '../../legacy.js';
|
|
|
34
34
|
import * as Components from '../utils/utils.js';
|
|
35
35
|
|
|
36
36
|
import {CustomPreviewComponent} from './CustomPreviewComponent.js';
|
|
37
|
+
import objectPopoverStyles from './objectPopover.css.js';
|
|
37
38
|
import {ObjectPropertiesSection} from './ObjectPropertiesSection.js';
|
|
39
|
+
import objectValueStyles from './objectValue.css.js';
|
|
38
40
|
|
|
39
41
|
export class ObjectPopoverHelper {
|
|
40
42
|
private readonly linkifier: Components.Linkifier.Linkifier|null;
|
|
@@ -72,7 +74,7 @@ export class ObjectPopoverHelper {
|
|
|
72
74
|
} else {
|
|
73
75
|
popoverContentElement = document.createElement('div');
|
|
74
76
|
popoverContentElement.classList.add('object-popover-content');
|
|
75
|
-
|
|
77
|
+
popover.registerCSSFiles([objectPopoverStyles]);
|
|
76
78
|
const titleElement = popoverContentElement.createChild('div', 'monospace object-popover-title');
|
|
77
79
|
titleElement.createChild('span').textContent = description;
|
|
78
80
|
linkifier = new Components.Linkifier.Linkifier();
|
|
@@ -90,8 +92,7 @@ export class ObjectPopoverHelper {
|
|
|
90
92
|
|
|
91
93
|
popoverContentElement = document.createElement('span');
|
|
92
94
|
popoverContentElement.dataset.stableNameForTest = 'object-popover-content';
|
|
93
|
-
|
|
94
|
-
UI.Utils.appendStyle(popoverContentElement, 'ui/legacy/components/object_ui/objectPopover.css');
|
|
95
|
+
popover.registerCSSFiles([objectValueStyles, objectPopoverStyles]);
|
|
95
96
|
const valueElement = popoverContentElement.createChild('span', 'monospace object-value-' + result.type);
|
|
96
97
|
valueElement.style.whiteSpace = 'pre';
|
|
97
98
|
|
|
@@ -43,6 +43,8 @@ import {CustomPreviewComponent} from './CustomPreviewComponent.js';
|
|
|
43
43
|
import {JavaScriptAutocomplete} from './JavaScriptAutocomplete.js';
|
|
44
44
|
import {JavaScriptREPL} from './JavaScriptREPL.js';
|
|
45
45
|
import {createSpansForNodeTitle, RemoteObjectPreviewFormatter} from './RemoteObjectPreviewFormatter.js';
|
|
46
|
+
import objectValueStyles from './objectValue.css.js';
|
|
47
|
+
import objectPropertiesSectionStyles from './objectPropertiesSection.css.js';
|
|
46
48
|
|
|
47
49
|
const UIStrings = {
|
|
48
50
|
/**
|
|
@@ -161,8 +163,7 @@ export class ObjectPropertiesSection extends UI.TreeOutline.TreeOutlineInShadow
|
|
|
161
163
|
}
|
|
162
164
|
|
|
163
165
|
objectPropertiesSectionMap.set(this.element, this);
|
|
164
|
-
this.
|
|
165
|
-
this.registerRequiredCSS('ui/legacy/components/object_ui/objectPropertiesSection.css');
|
|
166
|
+
this.registerCSSFiles([objectValueStyles, objectPropertiesSectionStyles]);
|
|
166
167
|
this.rootElement().childrenListElement.classList.add('source-code', 'object-properties-section');
|
|
167
168
|
}
|
|
168
169
|
|
|
@@ -183,7 +184,7 @@ export class ObjectPropertiesSection extends UI.TreeOutline.TreeOutlineInShadow
|
|
|
183
184
|
const titleElement = document.createElement('span');
|
|
184
185
|
titleElement.classList.add('source-code');
|
|
185
186
|
const shadowRoot = UI.Utils.createShadowRootWithCoreStyles(titleElement, {
|
|
186
|
-
cssFile:
|
|
187
|
+
cssFile: [objectValueStyles],
|
|
187
188
|
delegatesFocus: undefined,
|
|
188
189
|
});
|
|
189
190
|
const propertyValue =
|
|
@@ -578,8 +579,7 @@ export class ObjectPropertiesSectionsTreeOutline extends UI.TreeOutline.TreeOutl
|
|
|
578
579
|
private readonly editable: boolean;
|
|
579
580
|
constructor(options?: TreeOutlineOptions|null) {
|
|
580
581
|
super();
|
|
581
|
-
this.
|
|
582
|
-
this.registerRequiredCSS('ui/legacy/components/object_ui/objectPropertiesSection.css');
|
|
582
|
+
this.registerCSSFiles([objectValueStyles, objectPropertiesSectionStyles]);
|
|
583
583
|
this.editable = !(options && options.readOnly);
|
|
584
584
|
this.contentElement.classList.add('source-code');
|
|
585
585
|
this.contentElement.classList.add('object-properties-section');
|
|
@@ -71,6 +71,7 @@ UI.ActionRegistration.registerActionExtension({
|
|
|
71
71
|
|
|
72
72
|
Common.Settings.registerSettingExtension({
|
|
73
73
|
category: Common.Settings.SettingCategory.PERFORMANCE,
|
|
74
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
74
75
|
title: i18nLazyString(UIStrings.flamechartMouseWheelAction),
|
|
75
76
|
settingName: 'flamechartMouseWheelAction',
|
|
76
77
|
settingType: Common.Settings.SettingType.ENUM,
|
|
@@ -13,6 +13,8 @@ import * as Diff from '../../../../third_party/diff/diff.js';
|
|
|
13
13
|
import * as TextPrompt from '../../../../ui/components/text_prompt/text_prompt.js';
|
|
14
14
|
import * as UI from '../../legacy.js';
|
|
15
15
|
|
|
16
|
+
import filteredListWidgetStyles from './filteredListWidget.css.js';
|
|
17
|
+
|
|
16
18
|
const UIStrings = {
|
|
17
19
|
/**
|
|
18
20
|
* @description Aria label for quick open dialog prompt
|
|
@@ -64,7 +66,6 @@ export class FilteredListWidget extends Common.ObjectWrapper.eventMixin<EventTyp
|
|
|
64
66
|
const listener = (this.onKeyDown.bind(this) as (arg0: Event) => void);
|
|
65
67
|
this.contentElement.addEventListener('keydown', listener, true);
|
|
66
68
|
UI.ARIAUtils.markAsCombobox(this.contentElement);
|
|
67
|
-
this.registerRequiredCSS('ui/legacy/components/quick_open/filteredListWidget.css');
|
|
68
69
|
|
|
69
70
|
this.inputBoxElement = new TextPrompt.TextPrompt.TextPrompt();
|
|
70
71
|
this.inputBoxElement.data = {ariaLabel: i18nString(UIStrings.quickOpenPrompt), prefix: '', suggestion: ''};
|
|
@@ -212,6 +213,7 @@ export class FilteredListWidget extends Common.ObjectWrapper.eventMixin<EventTyp
|
|
|
212
213
|
}
|
|
213
214
|
|
|
214
215
|
wasShown(): void {
|
|
216
|
+
this.registerCSSFiles([filteredListWidgetStyles]);
|
|
215
217
|
this.attachProvider();
|
|
216
218
|
}
|
|
217
219
|
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as i18n from '../../../../core/i18n/i18n.js';
|
|
6
|
-
import * as Root from '../../../../core/root/root.js';
|
|
7
6
|
import * as UI from '../../legacy.js';
|
|
8
7
|
|
|
9
8
|
const UIStrings = {
|
|
@@ -26,8 +25,6 @@ let loadedQuickOpenModule: (typeof QuickOpen|undefined);
|
|
|
26
25
|
|
|
27
26
|
async function loadQuickOpenModule(): Promise<typeof QuickOpen> {
|
|
28
27
|
if (!loadedQuickOpenModule) {
|
|
29
|
-
// Side-effect import resources in module.json
|
|
30
|
-
await Root.Runtime.Runtime.instance().loadModulePromise('ui/legacy/components/quick_open');
|
|
31
28
|
loadedQuickOpenModule = await import('./quick_open.js');
|
|
32
29
|
}
|
|
33
30
|
return loadedQuickOpenModule;
|
|
@@ -48,6 +48,7 @@ const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined
|
|
|
48
48
|
|
|
49
49
|
Common.Settings.registerSettingExtension({
|
|
50
50
|
category: Common.Settings.SettingCategory.SOURCES,
|
|
51
|
+
storageType: Common.Settings.SettingStorageType.Synced,
|
|
51
52
|
title: i18nLazyString(UIStrings.defaultIndentation),
|
|
52
53
|
settingName: 'textEditorIndent',
|
|
53
54
|
settingType: Common.Settings.SettingType.ENUM,
|
|
@@ -163,6 +163,8 @@
|
|
|
163
163
|
--color-nonmatching-bracket-background: rgb(255 0 0 / 7%);
|
|
164
164
|
--color-editor-selection: #cfe8fc;
|
|
165
165
|
--color-editor-selection-blurred: #e0e0e0;
|
|
166
|
+
--color-selected-option: #fff;
|
|
167
|
+
--color-selected-option-background: #1a73e8;
|
|
166
168
|
--color-highlighted-line: rgb(255 255 0 / 50%);
|
|
167
169
|
}
|
|
168
170
|
|
|
@@ -282,5 +284,7 @@
|
|
|
282
284
|
--color-nonmatching-bracket-background: initial;
|
|
283
285
|
--color-editor-selection: hsl(207deg 88% 22%);
|
|
284
286
|
--color-editor-selection-blurred: #454545;
|
|
287
|
+
--color-selected-option: #fff;
|
|
288
|
+
--color-selected-option-background: #0e639c;
|
|
285
289
|
--color-highlighted-line: hsl(133deg 100% 30% / 50%);
|
|
286
290
|
}
|
|
@@ -7,8 +7,6 @@
|
|
|
7
7
|
:host {
|
|
8
8
|
flex: none;
|
|
9
9
|
padding: 0 2px;
|
|
10
|
-
|
|
11
|
-
--override-toolbar-warning-red: rgb(238 68 47 / 7%);
|
|
12
10
|
}
|
|
13
11
|
|
|
14
12
|
.toolbar-shadow {
|
|
@@ -406,8 +404,24 @@ input[is=history-input]:not(:placeholder-shown) {
|
|
|
406
404
|
box-shadow: var(--legacy-focus-ring-active-shadow);
|
|
407
405
|
}
|
|
408
406
|
|
|
409
|
-
.toolbar-item.
|
|
410
|
-
|
|
407
|
+
.toolbar-item.highlight::before {
|
|
408
|
+
content: "";
|
|
409
|
+
position: absolute;
|
|
410
|
+
top: 2px;
|
|
411
|
+
left: 2px;
|
|
412
|
+
right: 2px;
|
|
413
|
+
bottom: 2px;
|
|
414
|
+
border-radius: 2px;
|
|
415
|
+
background: var(--color-primary);
|
|
416
|
+
z-index: -1;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.toolbar-item.highlight {
|
|
420
|
+
color: var(--color-button-primary-text);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.toolbar-item.highlight > .icon-mask {
|
|
424
|
+
background: var(--color-button-primary-text);
|
|
411
425
|
}
|
|
412
426
|
|
|
413
427
|
devtools-icon.leading-issue-icon {
|
package/package.json
CHANGED