chrome-devtools-frontend 1.0.1732418 → 1.0.1732697
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/docs/get_the_code.md +1 -73
- package/front_end/Tests.js +0 -5
- package/front_end/core/host/AidaClientTypes.ts +19 -2
- package/front_end/core/sdk/DOMModel.ts +8 -3
- package/front_end/entrypoints/formatter_worker/ScopeParser.ts +2 -2
- package/front_end/generated/SupportedCSSProperties.ts +2 -2
- package/front_end/models/ai-utils/debug.ts +127 -22
- package/front_end/models/ai_assistance/README.md +1 -1
- package/front_end/models/ai_assistance/agents/AiAgent.ts +10 -5
- package/front_end/models/ai_assistance/contexts/DOMNodeContext.ts +4 -3
- package/front_end/models/ai_assistance/contexts/LighthouseContext.snapshot.txt +4 -2
- package/front_end/models/ai_assistance/data_formatters/LighthouseFormatter.snapshot.txt +6 -0
- package/front_end/models/ai_assistance/data_formatters/LighthouseFormatter.ts +2 -0
- package/front_end/models/ai_assistance/data_formatters/PerformanceInsightFormatter.snapshot.txt +1 -1
- package/front_end/models/ai_assistance/data_formatters/PerformanceTraceFormatter.snapshot.txt +26 -26
- package/front_end/models/ai_code_completion/AiCodeCompletion.ts +2 -1
- package/front_end/models/ai_code_completion/ai_code_completion.ts +11 -2
- package/front_end/models/ai_code_generation/AiCodeGeneration.ts +2 -1
- package/front_end/models/ai_code_generation/ai_code_generation.ts +11 -2
- package/front_end/models/trace/LanternComputationData.ts +4 -0
- package/front_end/models/trace/lantern/metrics/LargestContentfulPaint.ts +126 -1
- package/front_end/models/trace/lantern/types/Lantern.ts +3 -0
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +32 -0
- package/front_end/panels/ai_assistance/ExternalHandler.ts +1 -1
- package/front_end/panels/ai_assistance/components/PermissionPrompt.ts +4 -4
- package/front_end/panels/ai_assistance/components/chatMessage.css +3 -4
- package/front_end/panels/ai_assistance/components/exploreWidget.css +2 -2
- package/front_end/panels/application/components/reportsGrid.css +1 -1
- package/front_end/panels/application/components/serviceWorkerRouterView.css +2 -2
- package/front_end/panels/application/components/trustTokensView.css +1 -1
- package/front_end/panels/application/indexedDBViews.css +0 -4
- package/front_end/panels/application/resourcesPanel.css +0 -9
- package/front_end/panels/application/serviceWorkerUpdateCycleView.css +3 -3
- package/front_end/panels/application/serviceWorkersView.css +3 -2
- package/front_end/panels/comments/CommentsPane.ts +2 -11
- package/front_end/panels/common/CommentThreadWidget.ts +11 -3
- package/front_end/panels/console/consoleContextSelector.css +1 -1
- package/front_end/panels/console/consolePinPane.css +1 -1
- package/front_end/panels/console/consolePrompt.css +4 -2
- package/front_end/panels/elements/ComputedStyleWidget.ts +8 -19
- package/front_end/panels/elements/PropertyRenderer.ts +7 -27
- package/front_end/panels/elements/StylePropertyTreeElement.ts +61 -72
- package/front_end/panels/elements/components/elementsBreadcrumbs.css +1 -1
- package/front_end/panels/elements/metricsSidebarPane.css +2 -2
- package/front_end/panels/elements/propertiesWidget.css +0 -5
- package/front_end/panels/emulation/deviceModeView.css +3 -3
- package/front_end/panels/event_listeners/eventListenersView.css +1 -1
- package/front_end/panels/explain/components/consoleInsight.css +2 -2
- package/front_end/panels/issues/issuesTree.css +6 -4
- package/front_end/panels/layer_viewer/layerTreeOutline.css +1 -1
- package/front_end/panels/lighthouse/lighthousePanel.css +1 -1
- package/front_end/panels/linear_memory_inspector/components/valueInterpreterDisplay.css +1 -1
- package/front_end/panels/media/playerListView.css +8 -4
- package/front_end/panels/media/playerMessagesView.css +9 -5
- package/front_end/panels/network/NetworkWaterfallColumn.ts +92 -55
- package/front_end/panels/network/networkConfigView.css +3 -3
- package/front_end/panels/network/networkLogView.css +5 -4
- package/front_end/panels/network/networkManageCustomHeadersView.css +1 -1
- package/front_end/panels/network/networkTimingTable.css +4 -4
- package/front_end/panels/network/requestPayloadView.css +1 -1
- package/front_end/panels/performance_monitor/performanceMonitor.css +1 -1
- package/front_end/panels/profiler/ModuleUIStrings.ts +12 -0
- package/front_end/panels/protocol_monitor/JSONEditor.css +4 -3
- package/front_end/panels/recorder/createRecordingView.css +2 -2
- package/front_end/panels/recorder/stepView.css +0 -7
- package/front_end/panels/recorder/timelineSection.css +1 -1
- package/front_end/panels/screencast/screencastView.css +1 -1
- package/front_end/panels/security/mainView.css +1 -1
- package/front_end/panels/security/originView.css +1 -1
- package/front_end/panels/sources/breakpointsView.css +3 -3
- package/front_end/panels/sources/watchExpressionsSidebarPane.css +2 -1
- package/front_end/panels/timeline/CompatibilityTracksAppender.ts +30 -10
- package/front_end/panels/timeline/components/networkRequestTooltip.css +2 -2
- package/front_end/panels/timeline/components/relatedInsightChips.css +1 -1
- package/front_end/panels/timeline/timelineFlameChartView.css +4 -4
- package/front_end/panels/timeline/timelineFlamechartPopover.css +2 -2
- package/front_end/panels/timeline/timelineMiniMap.css +2 -1
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/ui/components/buttons/button.css +0 -1
- package/front_end/ui/components/diff_view/diffView.css +1 -1
- package/front_end/ui/components/markdown_view/codeBlock.css +3 -3
- package/front_end/ui/components/markdown_view/markdownView.css +2 -2
- package/front_end/ui/components/panel_feedback/panelFeedback.css +3 -2
- package/front_end/ui/components/suggestion_input/suggestionInput.css +2 -2
- package/front_end/ui/legacy/components/inline_editor/colorSwatch.css +1 -2
- package/front_end/ui/legacy/components/perf_ui/chartViewport.css +1 -1
- package/front_end/ui/legacy/components/perf_ui/filmStripView.css +1 -1
- package/front_end/ui/legacy/components/perf_ui/flameChart.css +5 -3
- package/front_end/ui/legacy/components/perf_ui/overviewGrid.css +7 -4
- package/front_end/ui/legacy/components/perf_ui/pieChart.css +0 -1
- package/front_end/ui/legacy/components/utils/imagePreview.css +1 -1
- package/front_end/ui/legacy/inspectorCommon.css +8 -25
- package/front_end/ui/legacy/progressIndicator.css +1 -2
- package/front_end/ui/legacy/reportView.css +4 -1
- package/front_end/ui/legacy/searchableView.css +1 -1
- package/front_end/ui/legacy/tabbedPane.css +7 -4
- package/front_end/ui/legacy/treeoutline.css +1 -1
- package/front_end/ui/legacy/viewContainers.css +1 -1
- package/front_end/ui/visual_logging/KnownContextValues.ts +8 -0
- package/package.json +1 -1
- package/front_end/models/ai_code_completion/debug.ts +0 -33
- package/front_end/models/ai_code_generation/debug.ts +0 -33
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
// Copyright 2023 The Chromium Authors
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
|
-
/* eslint-disable @devtools/no-imperative-dom-api */
|
|
5
|
-
|
|
6
4
|
import * as Common from '../../core/common/common.js';
|
|
7
5
|
import * as Host from '../../core/host/host.js';
|
|
8
6
|
import * as Platform from '../../core/platform/platform.js';
|
|
@@ -11,6 +9,7 @@ import * as SourceMapsResolver from '../../models/trace_source_maps_resolver/tra
|
|
|
11
9
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
12
10
|
import type * as PerfUI from '../../ui/legacy/components/perf_ui/perf_ui.js';
|
|
13
11
|
import * as ThemeSupport from '../../ui/legacy/theme_support/theme_support.js';
|
|
12
|
+
import {html, render} from '../../ui/lit/lit.js';
|
|
14
13
|
import * as SettingsUI from '../../ui/settings/settings.js';
|
|
15
14
|
|
|
16
15
|
import {AnimationsTrackAppender} from './AnimationsTrackAppender.js';
|
|
@@ -37,6 +36,23 @@ export interface PopoverInfo {
|
|
|
37
36
|
additionalElements: HTMLElement[];
|
|
38
37
|
}
|
|
39
38
|
|
|
39
|
+
export interface PopoverUrlViewInput {
|
|
40
|
+
path: string;
|
|
41
|
+
originWithEntity: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type PopoverUrlView = (input: PopoverUrlViewInput, output: undefined, target: DocumentFragment) => void;
|
|
45
|
+
|
|
46
|
+
export function renderPopoverUrl(
|
|
47
|
+
input: PopoverUrlViewInput,
|
|
48
|
+
_output: undefined,
|
|
49
|
+
target: DocumentFragment,
|
|
50
|
+
): void {
|
|
51
|
+
render(html`<div><span class="popoverinfo-url-path">${input.path}</span><span class="popoverinfo-url-origin">(${
|
|
52
|
+
input.originWithEntity})</span></div>`,
|
|
53
|
+
target);
|
|
54
|
+
}
|
|
55
|
+
|
|
40
56
|
export function entryIsVisibleInTimeline(
|
|
41
57
|
entry: Trace.Types.Events.Event, parsedTrace?: Trace.TraceModel.ParsedTrace): boolean {
|
|
42
58
|
if (parsedTrace?.data.Meta.traceIsGeneric) {
|
|
@@ -197,6 +213,7 @@ export class CompatibilityTracksAppender {
|
|
|
197
213
|
#layoutShiftsTrackAppender: LayoutShiftsTrackAppender;
|
|
198
214
|
#threadAppenders: ThreadAppender[] = [];
|
|
199
215
|
#entityMapper: Trace.EntityMapper.EntityMapper|null;
|
|
216
|
+
#view: PopoverUrlView;
|
|
200
217
|
|
|
201
218
|
/**
|
|
202
219
|
* @param flameChartData the data used by the flame chart renderer on
|
|
@@ -211,15 +228,16 @@ export class CompatibilityTracksAppender {
|
|
|
211
228
|
* architecture and should be removed once all tracks use the new
|
|
212
229
|
* system.
|
|
213
230
|
* @param entityMapper 3P entity data for the trace.
|
|
231
|
+
* @param view function to render popover url content.
|
|
214
232
|
*/
|
|
215
|
-
constructor(
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
entityMapper: Trace.EntityMapper.EntityMapper|null) {
|
|
233
|
+
constructor(flameChartData: PerfUI.FlameChart.FlameChartTimelineData, parsedTrace: Trace.TraceModel.ParsedTrace,
|
|
234
|
+
entryData: Trace.Types.Events.Event[], legacyEntryTypeByLevel: EntryType[],
|
|
235
|
+
entityMapper: Trace.EntityMapper.EntityMapper|null, view: PopoverUrlView = renderPopoverUrl) {
|
|
219
236
|
this.#flameChartData = flameChartData;
|
|
220
237
|
this.#parsedTrace = parsedTrace;
|
|
221
238
|
this.#entityMapper = entityMapper;
|
|
222
239
|
this.#entryData = entryData;
|
|
240
|
+
this.#view = view;
|
|
223
241
|
this.#colorGenerator = new Common.Color.Generator(
|
|
224
242
|
/* hueSpace= */ {min: 30, max: 55},
|
|
225
243
|
/* satSpace= */ {min: 70, max: 100, count: 6},
|
|
@@ -635,14 +653,16 @@ export class CompatibilityTracksAppender {
|
|
|
635
653
|
if (url) {
|
|
636
654
|
const MAX_PATH_LENGTH = 45;
|
|
637
655
|
const path = Platform.StringUtilities.trimMiddle(url.href.replace(url.origin, ''), MAX_PATH_LENGTH);
|
|
638
|
-
const urlElems = document.createElement('div');
|
|
639
|
-
urlElems.createChild('span', 'popoverinfo-url-path').textContent = path;
|
|
640
656
|
const entity = this.#entityMapper ? this.#entityMapper.entityForEvent(event) : null;
|
|
641
657
|
// Include entity with origin if it's non made-up entity, otherwise there'd be
|
|
642
658
|
// repetition with the origin.
|
|
643
659
|
const originWithEntity = TimelineUtils.Helpers.formatOriginWithEntity(url, entity);
|
|
644
|
-
|
|
645
|
-
|
|
660
|
+
const fragment = document.createDocumentFragment();
|
|
661
|
+
this.#view({path, originWithEntity}, undefined, fragment);
|
|
662
|
+
const urlElement = fragment.firstElementChild;
|
|
663
|
+
if (urlElement instanceof HTMLElement) {
|
|
664
|
+
info.additionalElements.push(urlElement);
|
|
665
|
+
}
|
|
646
666
|
}
|
|
647
667
|
|
|
648
668
|
return info;
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
|
|
90
90
|
.overlay-type-CANDY_STRIPED_TIME_RANGE {
|
|
91
91
|
--red-stripe-width: var(--sys-size-2);
|
|
92
|
-
--white-stripe-width:
|
|
92
|
+
--white-stripe-width: var(--sys-size-4);
|
|
93
93
|
|
|
94
94
|
background-image:
|
|
95
95
|
repeating-linear-gradient(
|
|
@@ -128,11 +128,11 @@
|
|
|
128
128
|
bottom: 0;
|
|
129
129
|
|
|
130
130
|
&.overlap-1 {
|
|
131
|
-
bottom:
|
|
131
|
+
bottom: var(--sys-size-17);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
&.overlap-2 {
|
|
135
|
-
bottom:
|
|
135
|
+
bottom: var(--sys-size-20);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
|
|
173
173
|
.overlay-type-TIMINGS_MARKER {
|
|
174
174
|
bottom: 0;
|
|
175
|
-
width:
|
|
175
|
+
width: var(--sys-size-1);
|
|
176
176
|
pointer-events: auto;
|
|
177
177
|
background-color: var(--marker-color); /* stylelint-disable-line plugin/use_theme_colors */
|
|
178
178
|
}
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
margin: calc(-1 * var(--sys-size-3));
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.timeline-flamechart-popover devtools-
|
|
15
|
-
margin-top:
|
|
14
|
+
.timeline-flamechart-popover devtools-widget {
|
|
15
|
+
margin-top: var(--sys-size-5);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.timeline-flamechart-popover span {
|
|
@@ -20,12 +20,13 @@
|
|
|
20
20
|
|
|
21
21
|
.timeline-minimap .overview-strip .timeline-overview-strip-title {
|
|
22
22
|
color: var(--sys-color-token-subtle);
|
|
23
|
-
font-size:
|
|
23
|
+
font-size: var(--sys-typescale-body5-size);
|
|
24
24
|
font-weight: bold;
|
|
25
25
|
z-index: 100;
|
|
26
26
|
background-color: var(--sys-color-cdt-base-container);
|
|
27
27
|
padding: 0 var(--sys-size-3);
|
|
28
28
|
position: absolute;
|
|
29
|
+
/* 2px upward offset (--sys-size-2 = 2px) matching parent .overview-strip top margin */
|
|
29
30
|
top: calc(var(--sys-size-2) * -1);
|
|
30
31
|
right: 0;
|
|
31
32
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Name: Dependencies sourced from the upstream `chromium` repository
|
|
2
2
|
URL: Internal
|
|
3
3
|
Version: N/A
|
|
4
|
-
Revision:
|
|
4
|
+
Revision: 481a581fe3e96f2a21db53a085901a0133f30e1d
|
|
5
5
|
Update Mechanism: Manual (https://crbug.com/428069060)
|
|
6
6
|
License: BSD-3-Clause
|
|
7
7
|
License File: LICENSE
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
.codeblock .editor-wrapper .code {
|
|
44
44
|
max-height: var(--code-block-max-code-height);
|
|
45
45
|
overflow: auto;
|
|
46
|
-
padding-bottom:
|
|
46
|
+
padding-bottom: var(--sys-size-5);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.codeblock.no-toolbar .editor-wrapper {
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
|
|
53
53
|
.codeblock.no-toolbar .copy-button-container {
|
|
54
54
|
position: absolute;
|
|
55
|
-
top:
|
|
56
|
-
right:
|
|
55
|
+
top: var(--sys-size-4);
|
|
56
|
+
right: var(--sys-size-4);
|
|
57
57
|
z-index: 1;
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -34,7 +34,7 @@ devtools-code-block.animating {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.message {
|
|
37
|
-
line-height:
|
|
37
|
+
line-height: var(--sys-typescale-body4-line-height);
|
|
38
38
|
font-size: var(--sys-typescale-body4-size);
|
|
39
39
|
color: var(--sys-color-on-surface);
|
|
40
40
|
user-select: text;
|
|
@@ -115,7 +115,7 @@ devtools-code-block {
|
|
|
115
115
|
outline-offset: var(--sys-size-2);
|
|
116
116
|
border: none;
|
|
117
117
|
padding: 0;
|
|
118
|
-
font-size:
|
|
118
|
+
font-size: var(--sys-typescale-body5-size);
|
|
119
119
|
font-family: var(--default-font-family);
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
font-size: var(--sys-typescale-body3-size);
|
|
16
16
|
line-height: var(--sys-typescale-body3-line-height);
|
|
17
17
|
border-radius: var(--sys-shape-corner-medium-small);
|
|
18
|
-
margin:
|
|
18
|
+
margin: var(--sys-size-14) 0;
|
|
19
19
|
letter-spacing: 0.01em;
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -45,7 +45,8 @@ h3 {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.thumbnail {
|
|
48
|
-
height
|
|
48
|
+
/* 80px (--sys-size-19) + 12px (--sys-size-6) = 92px to match the 144x92 preview_feature_video_thumbnail.svg height without inline descender gap. */
|
|
49
|
+
height: calc(var(--sys-size-19) + var(--sys-size-6));
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
.video {
|
|
@@ -57,11 +57,11 @@ devtools-editable-content:focus ~ devtools-suggestion-box {
|
|
|
57
57
|
background-color: var(--sys-color-cdt-base-container);
|
|
58
58
|
box-shadow: var(--drop-shadow);
|
|
59
59
|
min-height: 1em;
|
|
60
|
-
min-width:
|
|
60
|
+
min-width: var(--sys-size-23);
|
|
61
61
|
overflow: hidden auto;
|
|
62
62
|
position: relative;
|
|
63
63
|
z-index: 100;
|
|
64
|
-
max-height:
|
|
64
|
+
max-height: var(--sys-size-32);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.suggestions > li {
|
|
@@ -19,13 +19,12 @@
|
|
|
19
19
|
display: inline-block;
|
|
20
20
|
user-select: none;
|
|
21
21
|
background-image: var(--image-file-checker);
|
|
22
|
-
line-height: 10px;
|
|
23
22
|
}
|
|
24
23
|
|
|
25
24
|
.color-swatch-inner {
|
|
26
25
|
width: 100%;
|
|
27
26
|
height: 100%;
|
|
28
|
-
display:
|
|
27
|
+
display: block;
|
|
29
28
|
border: var(--sys-size-1) solid var(--sys-color-neutral-outline);
|
|
30
29
|
box-sizing: border-box;
|
|
31
30
|
cursor: pointer;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
/* force non overlay scrollbars for Aura Overlay Scrollbar enabled */
|
|
41
41
|
|
|
42
42
|
:host-context(.overlay-scrollbar-enabled) ::-webkit-scrollbar {
|
|
43
|
-
width:
|
|
43
|
+
width: var(--sys-size-5);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
:host-context(.overlay-scrollbar-enabled) ::-webkit-scrollbar-thumb {
|
|
@@ -17,9 +17,11 @@
|
|
|
17
17
|
.flame-chart-marker-highlight-element {
|
|
18
18
|
position: absolute;
|
|
19
19
|
top: var(--sys-size-1);
|
|
20
|
-
|
|
20
|
+
/* 20px header (--sys-size-9) minus two 1px top/bottom borders (2 * --sys-size-1). */
|
|
21
|
+
height: calc(var(--sys-size-9) - 2 * var(--sys-size-1));
|
|
21
22
|
width: var(--sys-size-4);
|
|
22
|
-
|
|
23
|
+
/* Half of 6px width (--sys-size-4) to center horizontally on left: barX. */
|
|
24
|
+
margin: 0 calc(-1 * var(--sys-size-4) / 2);
|
|
23
25
|
content: "";
|
|
24
26
|
display: block;
|
|
25
27
|
}
|
|
@@ -75,7 +77,7 @@
|
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
.flame-chart-entry-info table tr td:not(:empty) {
|
|
78
|
-
padding: 0
|
|
80
|
+
padding: 0 var(--sys-size-3);
|
|
79
81
|
white-space: nowrap;
|
|
80
82
|
}
|
|
81
83
|
|
|
@@ -16,13 +16,16 @@
|
|
|
16
16
|
.overview-grid-window-resizer {
|
|
17
17
|
position: absolute;
|
|
18
18
|
top: 0;
|
|
19
|
-
height
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
/* 20px (--sys-size-9) timeline header height minus 1px (--sys-size-1) bottom clearance */
|
|
20
|
+
height: calc(var(--sys-size-9) - var(--sys-size-1));
|
|
21
|
+
/* 8px (--sys-size-5) inner grip box plus 2x 1px (--sys-size-1) for left and right borders */
|
|
22
|
+
width: calc(var(--sys-size-5) + 2 * var(--sys-size-1));
|
|
23
|
+
/* Negative half of the 10px outer width: 4px (--sys-size-3) inner half-width plus 1px (--sys-size-1) border */
|
|
24
|
+
margin-left: calc(-1 * (var(--sys-size-3) + var(--sys-size-1)));
|
|
22
25
|
background-color: var(--sys-color-tonal-container);
|
|
23
26
|
border: var(--sys-size-1) solid var(--sys-color-tonal-outline);
|
|
24
27
|
z-index: 500;
|
|
25
|
-
border-radius:
|
|
28
|
+
border-radius: var(--sys-shape-corner-extra-small);
|
|
26
29
|
}
|
|
27
30
|
|
|
28
31
|
/* Grip lines within the handle */
|
|
@@ -209,9 +209,9 @@ input {
|
|
|
209
209
|
|
|
210
210
|
&:not(:disabled):focus-visible::before {
|
|
211
211
|
content: '';
|
|
212
|
-
height:
|
|
213
|
-
width:
|
|
214
|
-
border-radius:
|
|
212
|
+
height: var(--sys-size-7);
|
|
213
|
+
width: var(--sys-size-7);
|
|
214
|
+
border-radius: var(--sys-shape-corner-extra-small);
|
|
215
215
|
position: absolute;
|
|
216
216
|
border: var(--sys-size-2) solid var(--sys-color-state-focus-ring);
|
|
217
217
|
}
|
|
@@ -560,13 +560,13 @@ dt-icon-label {
|
|
|
560
560
|
background-color: var(--sys-color-cdt-base-container);
|
|
561
561
|
color: var(--sys-color-on-surface);
|
|
562
562
|
cursor: pointer;
|
|
563
|
-
border-radius:
|
|
563
|
+
border-radius: var(--sys-shape-corner-extra-small);
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
.undisplayable-text,
|
|
567
567
|
.expandable-inline-button {
|
|
568
568
|
border: none;
|
|
569
|
-
padding: var(--sys-size-1)
|
|
569
|
+
padding: var(--sys-size-1) var(--sys-size-3);
|
|
570
570
|
margin: 0 var(--sys-size-2);
|
|
571
571
|
font-size: var(--sys-typescale-body5-size);
|
|
572
572
|
font-family: inherit;
|
|
@@ -878,19 +878,6 @@ devtools-toolbar {
|
|
|
878
878
|
opacity: 50%;
|
|
879
879
|
}
|
|
880
880
|
|
|
881
|
-
.toolbar-button.copied-to-clipboard::after {
|
|
882
|
-
content: attr(data-content);
|
|
883
|
-
position: fixed;
|
|
884
|
-
margin-top: calc(2 * var(--toolbar-height));
|
|
885
|
-
padding: 3px 5px;
|
|
886
|
-
color: var(--sys-color-token-subtle);
|
|
887
|
-
background: var(--sys-color-cdt-base-container);
|
|
888
|
-
animation: 2s fade-out;
|
|
889
|
-
font-weight: normal;
|
|
890
|
-
border: var(--sys-size-1) solid var(--sys-color-divider);
|
|
891
|
-
border-radius: 3px;
|
|
892
|
-
}
|
|
893
|
-
|
|
894
881
|
.toolbar-button.toolbar-state-on .toolbar-glyph {
|
|
895
882
|
color: var(--icon-toggled);
|
|
896
883
|
}
|
|
@@ -974,12 +961,12 @@ devtools-toolbar {
|
|
|
974
961
|
.toolbar-input {
|
|
975
962
|
box-shadow: inset 0 0 0 var(--sys-size-2) transparent;
|
|
976
963
|
box-sizing: border-box;
|
|
977
|
-
width:
|
|
964
|
+
width: var(--sys-size-20);
|
|
978
965
|
height: var(--sys-size-9);
|
|
979
966
|
padding: 0 var(--sys-size-2) 0 var(--sys-size-5);
|
|
980
|
-
margin: var(--sys-size-1)
|
|
967
|
+
margin: var(--sys-size-1) var(--sys-size-2);
|
|
981
968
|
border-radius: var(--sys-shape-corner-full);
|
|
982
|
-
min-width:
|
|
969
|
+
min-width: var(--sys-size-14);
|
|
983
970
|
position: relative;
|
|
984
971
|
|
|
985
972
|
&.focused {
|
|
@@ -1077,10 +1064,6 @@ devtools-toolbar {
|
|
|
1077
1064
|
}
|
|
1078
1065
|
}
|
|
1079
1066
|
|
|
1080
|
-
devtools-icon.leading-issue-icon {
|
|
1081
|
-
margin: 0 7px;
|
|
1082
|
-
}
|
|
1083
|
-
|
|
1084
1067
|
@media (forced-colors: active) {
|
|
1085
1068
|
.toolbar-button:disabled {
|
|
1086
1069
|
opacity: 100%;
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
.progress-indicator-shadow-stop-button {
|
|
8
8
|
background-color: var(--sys-color-error-bright);
|
|
9
9
|
border: 0;
|
|
10
|
-
width: 10px;
|
|
11
10
|
height: var(--sys-size-6);
|
|
12
11
|
border-radius: var(--sys-size-2);
|
|
13
12
|
}
|
|
@@ -29,5 +28,5 @@
|
|
|
29
28
|
.progress-indicator-shadow-container progress {
|
|
30
29
|
flex: auto;
|
|
31
30
|
margin: 0 var(--sys-size-2);
|
|
32
|
-
width:
|
|
31
|
+
width: var(--sys-size-19);
|
|
33
32
|
}
|
|
@@ -43,7 +43,10 @@
|
|
|
43
43
|
|
|
44
44
|
.report-section {
|
|
45
45
|
display: flex;
|
|
46
|
-
padding
|
|
46
|
+
/* 12px bottom padding (--sys-size-6) minus 1px border (--sys-size-1) = 11px. */
|
|
47
|
+
padding:
|
|
48
|
+
var(--sys-size-7) var(--sys-size-9)
|
|
49
|
+
calc(var(--sys-size-6) - var(--sys-size-1)) var(--sys-size-9);
|
|
47
50
|
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
|
48
51
|
flex-direction: column;
|
|
49
52
|
}
|
|
@@ -52,7 +52,8 @@
|
|
|
52
52
|
|
|
53
53
|
.tabbed-pane-header {
|
|
54
54
|
display: flex;
|
|
55
|
-
|
|
55
|
+
/* 28px standard toolbar height (--sys-size-12) minus 1px bottom border (--sys-size-1). */
|
|
56
|
+
flex: 0 0 calc(var(--sys-size-12) - var(--sys-size-1));
|
|
56
57
|
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
|
|
57
58
|
overflow: visible;
|
|
58
59
|
width: 100%;
|
|
@@ -99,7 +100,8 @@
|
|
|
99
100
|
}
|
|
100
101
|
|
|
101
102
|
&:has(.status-dot) {
|
|
102
|
-
width
|
|
103
|
+
/* 6px (.status-dot width) + 2px (padding-left) + 1px (.status-dot margin-left) */
|
|
104
|
+
width: calc(var(--sys-size-4) + var(--sys-size-2) + var(--sys-size-1));
|
|
103
105
|
}
|
|
104
106
|
}
|
|
105
107
|
|
|
@@ -146,7 +148,7 @@
|
|
|
146
148
|
color: var(--sys-color-on-surface-subtle);
|
|
147
149
|
height: var(--sys-size-12);
|
|
148
150
|
float: left;
|
|
149
|
-
padding: 0
|
|
151
|
+
padding: 0 var(--sys-size-5);
|
|
150
152
|
white-space: nowrap;
|
|
151
153
|
cursor: default;
|
|
152
154
|
display: flex;
|
|
@@ -305,7 +307,8 @@
|
|
|
305
307
|
}
|
|
306
308
|
|
|
307
309
|
.tabbed-pane-tab-slider {
|
|
308
|
-
|
|
310
|
+
/* 2px indicator above header + 1px border-bottom overlap (3px total). */
|
|
311
|
+
height: calc(var(--sys-size-2) + var(--sys-size-1));
|
|
309
312
|
position: absolute;
|
|
310
313
|
bottom: calc(-1 * var(--sys-size-1));
|
|
311
314
|
background-color: var(--sys-color-primary);
|
|
@@ -169,7 +169,7 @@ ol.tree-outline:not(.hide-selection-when-blurred, .elements-tree-outline) li.sel
|
|
|
169
169
|
|
|
170
170
|
.tree-outline-disclosure:not(.tree-outline-disclosure-hide-overflow) .tree-outline.hide-selection-when-blurred .selected:focus-visible {
|
|
171
171
|
width: fit-content;
|
|
172
|
-
padding-right:
|
|
172
|
+
padding-right: var(--sys-size-3);
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
/* Navigation tree variant */
|
|
@@ -413,6 +413,14 @@ export const knownContextValues: Set<string> = new Set([
|
|
|
413
413
|
'ai-export-for-agents.save-as-markdown',
|
|
414
414
|
'ai-hide-walkthrough-sidebar',
|
|
415
415
|
'ai-open-allowed-tools-settings',
|
|
416
|
+
'ai-permission-allow-always',
|
|
417
|
+
'ai-permission-allow-once',
|
|
418
|
+
'ai-permission-allowed-always',
|
|
419
|
+
'ai-permission-allowed-once',
|
|
420
|
+
'ai-permission-prompt',
|
|
421
|
+
'ai-permission-prompt-shown',
|
|
422
|
+
'ai-permission-reject',
|
|
423
|
+
'ai-permission-rejected',
|
|
416
424
|
'ai-remove-allowed-tool',
|
|
417
425
|
'ai-show-walkthrough-sidebar',
|
|
418
426
|
'ai-v2-context-agent-change',
|
package/package.json
CHANGED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @file Local debugging utilities.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import * as Platform from '../../core/platform/platform.js';
|
|
10
|
-
|
|
11
|
-
export function isDebugMode(): boolean {
|
|
12
|
-
return Boolean(Platform.HostRuntime.HOST_RUNTIME.getLocalStorage()?.getItem('debugAiCodeCompletionEnabled'));
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function debugLog(...log: unknown[]): void {
|
|
16
|
-
if (!isDebugMode()) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// eslint-disable-next-line no-console
|
|
21
|
-
console.log(...log);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function setDebugAiCodeCompletionEnabled(enabled: boolean): void {
|
|
25
|
-
const localStorage = Platform.HostRuntime.HOST_RUNTIME.getLocalStorage();
|
|
26
|
-
if (enabled) {
|
|
27
|
-
localStorage?.setItem('debugAiCodeCompletionEnabled', 'true');
|
|
28
|
-
} else {
|
|
29
|
-
localStorage?.removeItem('debugAiCodeCompletionEnabled');
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
// @ts-expect-error
|
|
33
|
-
globalThis.setDebugAiCodeCompletionEnabled = setDebugAiCodeCompletionEnabled;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 The Chromium Authors
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @file Local debugging utilities.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import * as Platform from '../../core/platform/platform.js';
|
|
10
|
-
|
|
11
|
-
export function isDebugMode(): boolean {
|
|
12
|
-
return Boolean(Platform.HostRuntime.HOST_RUNTIME.getLocalStorage()?.getItem('debugAiCodeGenerationEnabled'));
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function debugLog(...log: unknown[]): void {
|
|
16
|
-
if (!isDebugMode()) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// eslint-disable-next-line no-console
|
|
21
|
-
console.log(...log);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function setDebugAiCodeGenerationEnabled(enabled: boolean): void {
|
|
25
|
-
const localStorage = Platform.HostRuntime.HOST_RUNTIME.getLocalStorage();
|
|
26
|
-
if (enabled) {
|
|
27
|
-
localStorage?.setItem('debugAiCodeGenerationEnabled', 'true');
|
|
28
|
-
} else {
|
|
29
|
-
localStorage?.removeItem('debugAiCodeGenerationEnabled');
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
// @ts-expect-error
|
|
33
|
-
globalThis.setDebugAiCodeGenerationEnabled = setDebugAiCodeGenerationEnabled;
|