chrome-devtools-frontend 1.0.930993 → 1.0.932348
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/devtools_grd_files.gni +6 -2
- package/front_end/core/common/ParsedURL.ts +12 -10
- package/front_end/core/host/InspectorFrontendHostAPI.ts +8 -6
- package/front_end/core/i18n/locales/en-US.json +345 -12
- package/front_end/core/i18n/locales/en-XL.json +345 -12
- package/front_end/core/platform/DevToolsPath.ts +34 -0
- package/front_end/core/platform/platform.ts +2 -0
- package/front_end/core/protocol_client/NodeURL.ts +2 -1
- package/front_end/core/sdk/CSSStyleSheetHeader.ts +4 -2
- package/front_end/core/sdk/ChildTargetManager.ts +2 -0
- package/front_end/core/sdk/CompilerSourceMappingContentProvider.ts +4 -2
- package/front_end/core/sdk/DebuggerModel.ts +4 -3
- package/front_end/core/sdk/NetworkRequest.ts +3 -2
- package/front_end/core/sdk/Resource.ts +6 -5
- package/front_end/core/sdk/Script.ts +4 -2
- package/front_end/core/sdk/Target.ts +4 -0
- package/front_end/core/sdk/TracingModel.ts +8 -17
- package/front_end/entrypoint_template.html +1 -1
- package/front_end/entrypoints/formatter_worker/ESTreeWalker.ts +1 -1
- package/front_end/models/bindings/BreakpointManager.ts +6 -3
- package/front_end/models/bindings/ResourceMapping.ts +2 -1
- package/front_end/models/bindings/StylesSourceMapping.ts +2 -1
- package/front_end/models/emulation/DeviceModeModel.ts +1 -1
- package/front_end/models/persistence/IsolatedFileSystem.ts +9 -7
- package/front_end/models/persistence/IsolatedFileSystemManager.ts +8 -7
- package/front_end/models/persistence/PersistenceActions.ts +1 -1
- package/front_end/models/persistence/PlatformFileSystem.ts +4 -3
- package/front_end/models/text_utils/ContentProvider.ts +2 -1
- package/front_end/models/text_utils/StaticContentProvider.ts +4 -2
- package/front_end/models/workspace/UISourceCode.ts +3 -2
- package/front_end/panels/animation/AnimationGroupPreviewUI.ts +25 -25
- package/front_end/panels/animation/AnimationModel.ts +157 -156
- package/front_end/panels/animation/AnimationScreenshotPopover.ts +26 -26
- package/front_end/panels/animation/AnimationTimeline.ts +274 -260
- package/front_end/panels/animation/AnimationUI.ts +155 -145
- package/front_end/panels/application/BackForwardCacheStrings.ts +621 -0
- package/front_end/panels/application/BackForwardCacheView.ts +24 -8
- package/front_end/panels/application/ReportingApiReportsView.ts +3 -2
- package/front_end/panels/application/ReportingApiView.ts +1 -2
- package/front_end/panels/application/backForwardCacheView.css +10 -0
- package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +48 -40
- package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +37 -37
- package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +23 -19
- package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +56 -56
- package/front_end/panels/changes/ChangesView.ts +42 -225
- package/front_end/panels/changes/changes-legacy.ts +0 -2
- package/front_end/panels/changes/changes.ts +0 -6
- package/front_end/panels/changes/changesView.css +2 -69
- package/front_end/panels/changes/module.json +1 -1
- package/front_end/panels/console/ConsolePinPane.ts +80 -75
- package/front_end/panels/console/ConsoleView.ts +1 -9
- package/front_end/panels/console/consolePinPane.css +4 -1
- package/front_end/panels/elements/StylesSidebarPane.ts +2 -1
- package/front_end/panels/security/mainView.css +2 -1
- package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +2 -1
- package/front_end/panels/sources/NavigatorView.ts +5 -2
- package/front_end/panels/sources/SourcesPanel.ts +28 -1
- package/front_end/panels/sources/sources-meta.ts +1 -4
- package/front_end/third_party/codemirror.next/bundle.ts +6 -4
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/markdown.js +1 -1
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +30 -1
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
- package/front_end/third_party/codemirror.next/package.json +4 -3
- package/front_end/ui/components/buttons/Button.ts +22 -6
- package/front_end/ui/components/buttons/button.css +50 -4
- package/front_end/ui/components/diff_view/DiffView.ts +288 -0
- package/front_end/ui/components/diff_view/diffView.css +73 -0
- package/front_end/ui/components/diff_view/diff_view.ts +5 -0
- package/front_end/ui/components/docs/button/basic.html +28 -0
- package/front_end/ui/components/docs/button/basic.ts +43 -2
- package/front_end/ui/components/report_view/report.css +1 -0
- package/front_end/ui/components/text_editor/config.ts +34 -1
- package/front_end/ui/legacy/ForwardedInputEventHandler.ts +5 -3
- package/front_end/ui/legacy/components/color_picker/spectrum.css +2 -4
- package/front_end/ui/legacy/themeColors.css +4 -0
- package/package.json +1 -1
- package/scripts/build/generate_css_js_files.js +1 -0
- package/scripts/migration/class-fields/migrate.js +1 -3
- package/front_end/panels/changes/ChangesHighlighter.ts +0 -179
- package/front_end/panels/changes/ChangesTextEditor.ts +0 -96
|
@@ -7,57 +7,57 @@ import * as UI from '../../ui/legacy/legacy.js';
|
|
|
7
7
|
import animationScreenshotPopoverStyles from './animationScreenshotPopover.css.js';
|
|
8
8
|
|
|
9
9
|
export class AnimationScreenshotPopover extends UI.Widget.VBox {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
#frames: HTMLImageElement[];
|
|
11
|
+
#rafId: number;
|
|
12
|
+
#currentFrame: number;
|
|
13
|
+
#progressBar: HTMLElement;
|
|
14
|
+
#showFrame?: boolean;
|
|
15
|
+
#endDelay?: number;
|
|
16
16
|
constructor(images: HTMLImageElement[]) {
|
|
17
17
|
super(true);
|
|
18
18
|
console.assert(images.length > 0);
|
|
19
19
|
|
|
20
20
|
this.contentElement.classList.add('animation-screenshot-popover');
|
|
21
|
-
this
|
|
21
|
+
this.#frames = images;
|
|
22
22
|
for (const image of images) {
|
|
23
23
|
this.contentElement.appendChild(image);
|
|
24
24
|
image.style.display = 'none';
|
|
25
25
|
}
|
|
26
|
-
this
|
|
27
|
-
this
|
|
28
|
-
this
|
|
29
|
-
this
|
|
26
|
+
this.#rafId = 0;
|
|
27
|
+
this.#currentFrame = 0;
|
|
28
|
+
this.#frames[0].style.display = 'block';
|
|
29
|
+
this.#progressBar = this.contentElement.createChild('div', 'animation-progress');
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
wasShown(): void {
|
|
33
|
-
this
|
|
33
|
+
this.#rafId = this.contentElement.window().requestAnimationFrame(this.changeFrame.bind(this));
|
|
34
34
|
this.registerCSSFiles([animationScreenshotPopoverStyles]);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
willHide(): void {
|
|
38
|
-
this.contentElement.window().cancelAnimationFrame(this
|
|
39
|
-
|
|
38
|
+
this.contentElement.window().cancelAnimationFrame(this.#rafId);
|
|
39
|
+
this.#endDelay = undefined;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
private changeFrame(): void {
|
|
43
|
-
this
|
|
43
|
+
this.#rafId = this.contentElement.window().requestAnimationFrame(this.changeFrame.bind(this));
|
|
44
44
|
|
|
45
|
-
if (this
|
|
46
|
-
this
|
|
45
|
+
if (this.#endDelay) {
|
|
46
|
+
this.#endDelay--;
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
|
-
this
|
|
50
|
-
if (!this
|
|
49
|
+
this.#showFrame = !this.#showFrame;
|
|
50
|
+
if (!this.#showFrame) {
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
const numFrames = this
|
|
55
|
-
this
|
|
56
|
-
this
|
|
57
|
-
this
|
|
58
|
-
if (this
|
|
59
|
-
this
|
|
54
|
+
const numFrames = this.#frames.length;
|
|
55
|
+
this.#frames[this.#currentFrame % numFrames].style.display = 'none';
|
|
56
|
+
this.#currentFrame++;
|
|
57
|
+
this.#frames[(this.#currentFrame) % numFrames].style.display = 'block';
|
|
58
|
+
if (this.#currentFrame % numFrames === numFrames - 1) {
|
|
59
|
+
this.#endDelay = 50;
|
|
60
60
|
}
|
|
61
|
-
this
|
|
61
|
+
this.#progressBar.style.width = (this.#currentFrame % numFrames + 1) / numFrames * 100 + '%';
|
|
62
62
|
}
|
|
63
63
|
}
|