chrome-devtools-frontend 1.0.1034999 → 1.0.1036501

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.
Files changed (31) hide show
  1. package/AUTHORS +1 -0
  2. package/config/gni/devtools_grd_files.gni +2 -0
  3. package/docs/workflows.md +4 -5
  4. package/front_end/core/i18n/locales/en-US.json +21 -6
  5. package/front_end/core/i18n/locales/en-XL.json +21 -6
  6. package/front_end/core/root/Runtime.ts +8 -3
  7. package/front_end/entrypoints/main/MainImpl.ts +6 -5
  8. package/front_end/generated/InspectorBackendCommands.js +2 -2
  9. package/front_end/generated/SupportedCSSProperties.js +8 -4
  10. package/front_end/generated/protocol.ts +7 -1
  11. package/front_end/models/persistence/NetworkPersistenceManager.ts +25 -14
  12. package/front_end/panels/application/components/Prerender2.ts +5 -7
  13. package/front_end/panels/elements/CSSRuleValidator.ts +1 -1
  14. package/front_end/panels/elements/StylePropertiesSection.ts +12 -0
  15. package/front_end/panels/elements/StylePropertyTreeElement.ts +1 -1
  16. package/front_end/panels/elements/StylesSidebarPane.ts +1 -0
  17. package/front_end/panels/network/NetworkLogView.ts +13 -5
  18. package/front_end/panels/settings/SettingsScreen.ts +12 -0
  19. package/front_end/panels/settings/settingsScreen.css +6 -0
  20. package/front_end/panels/sources/NavigatorView.ts +0 -7
  21. package/front_end/panels/sources/ScopeChainSidebarPane.ts +4 -3
  22. package/front_end/panels/sources/SourcesNavigator.ts +0 -37
  23. package/front_end/panels/sources/SourcesPanel.ts +34 -22
  24. package/front_end/panels/sources/components/BreakpointsView.ts +206 -0
  25. package/front_end/panels/sources/components/HeadersView.ts +8 -41
  26. package/front_end/panels/sources/components/breakpointsView.css +95 -0
  27. package/front_end/panels/sources/components/components.ts +2 -0
  28. package/front_end/ui/components/linear_memory_inspector/LinearMemoryHighlightChipList.ts +11 -9
  29. package/front_end/ui/components/linear_memory_inspector/linearMemoryHighlightChipList.css +48 -30
  30. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +2 -2
  31. package/package.json +1 -1
@@ -5,81 +5,99 @@
5
5
  */
6
6
 
7
7
  .highlight-chip-list {
8
- min-height: 24px;
8
+ min-height: 20px;
9
9
  display: flex;
10
10
  flex-wrap: wrap;
11
11
  justify-content: left;
12
12
  align-items: center;
13
13
  background-color: var(--color-background);
14
- color: var(--color-text-primary);
14
+ margin: 8px 0;
15
+ gap: 8px;
16
+ row-gap: 6px;
15
17
  }
16
18
 
17
19
  .highlight-chip {
18
- background: transparent;
19
- color: var(--color-text-primary);
20
- border: 1px solid var(--color-background-elevation-2);
21
- height: 15px;
22
- margin-right: 5px;
23
- padding: 1px;
20
+ background: var(--color-background);
21
+ border: 1px solid var(--color-button-secondary-border);
22
+ height: 18px;
24
23
  border-radius: 4px;
25
- margin-bottom: 1px;
26
- display: flex;
24
+ flex: 0 0 auto;
25
+ max-width: 250px;
26
+ position: relative;
27
+ padding: 0 6px;
27
28
  }
28
29
 
29
30
  .highlight-chip:hover {
30
31
  background-color: var(--color-background-elevation-1);
31
32
  }
32
33
 
34
+ .delete-highlight-container {
35
+ display: none;
36
+ height: 100%;
37
+ position: absolute;
38
+ right: 0;
39
+ top: 0;
40
+ border-radius: 4px;
41
+ width: 24px;
42
+ align-items: center;
43
+ justify-content: center;
44
+ }
45
+
33
46
  .delete-highlight-button {
34
- width: 15px;
35
- height: 15px;
36
- border: none;
37
- padding: 0;
38
47
  cursor: pointer;
39
- background: none;
40
- border-radius: 50%;
48
+ width: 13px;
49
+ height: 13px;
50
+ border: none;
51
+ background-color: transparent;
41
52
  display: flex;
42
- justify-content: center;
43
53
  align-items: center;
44
- margin: 0 2px;
54
+ justify-content: center;
45
55
  }
46
56
 
47
57
  .delete-highlight-button:hover {
48
58
  background-color: var(--color-details-hairline);
59
+ border-radius: 50%;
49
60
  }
50
61
 
51
- .highlight-chip > .delete-highlight-button {
52
- visibility: hidden;
62
+ .highlight-chip:hover > .delete-highlight-container {
63
+ display: flex;
64
+ /* To avoid issues with stacking semi-transparent colors, we use a hardcoded solid color here. */
65
+ background: linear-gradient(90deg, transparent 0%, rgb(241 243 244) 25%); /* stylelint-disable-line plugin/use_theme_colors */
53
66
  }
54
67
 
55
- .highlight-chip:hover > .delete-highlight-button {
56
- visibility: visible;
68
+ :host-context(.-theme-with-dark-background) .highlight-chip:hover > .delete-highlight-container {
69
+ display: flex;
70
+ /* To avoid issues with stacking semi-transparent colors, we use a hardcoded solid color here. */
71
+ background: linear-gradient(90deg, transparent 0%, rgb(41 42 45) 25%); /* stylelint-disable-line plugin/use_theme_colors */
57
72
  }
58
73
 
59
74
  .jump-to-highlight-button {
60
75
  cursor: pointer;
61
- padding: 0 0 0 4px;
76
+ padding: 0;
62
77
  border: none;
63
78
  background: none;
64
- display: flex;
79
+ height: 100%;
65
80
  align-items: center;
66
- }
67
-
68
- .jump-to-highlight-button:hover {
69
- color: var(--color-text-primary);
81
+ max-width: 100%;
82
+ overflow: hidden;
70
83
  }
71
84
 
72
85
  .delete-highlight-button devtools-icon {
73
- --icon-color: var(--color-text-primary);
86
+ width: 13px;
87
+ height: 13px;
88
+ display: flex;
89
+ align-items: center;
90
+ justify-content: center;
91
+ border-radius: 50%;
74
92
  }
75
93
 
76
94
  .source-code {
77
95
  font-family: var(--source-code-font-family);
78
96
  font-size: var(--source-code-font-size);
79
- max-width: 250px;
80
97
  overflow: hidden;
81
98
  text-overflow: ellipsis;
82
99
  white-space: nowrap;
100
+ color: var(--color-text-primary);
83
101
  }
84
102
 
85
103
  .value {
@@ -396,7 +396,7 @@ export class ObjectPropertiesSection extends UI.TreeOutline.TreeOutlineInShadow
396
396
  value, wasThrown, showPreview, parentElement, linkifier, variableName);
397
397
  }
398
398
 
399
- static appendMemoryIcon(element: Element, obj: SDK.RemoteObject.RemoteObject, variableName?: string): void {
399
+ static appendMemoryIcon(element: Element, obj: SDK.RemoteObject.RemoteObject, expression?: string): void {
400
400
  // We show the memory icon only on ArrayBuffer, WebAssembly.Memory and DWARF memory instances.
401
401
  // TypedArrays DataViews are also supported, but showing the icon next to their
402
402
  // previews is quite a significant visual overhead, and users can easily get to
@@ -419,7 +419,7 @@ export class ObjectPropertiesSection extends UI.TreeOutline.TreeOutlineInShadow
419
419
  const controller =
420
420
  LinearMemoryInspector.LinearMemoryInspectorController.LinearMemoryInspectorController.instance();
421
421
  Host.userMetrics.linearMemoryInspectorRevealedFrom(Host.UserMetrics.LinearMemoryInspectorRevealedFrom.MemoryIcon);
422
- void controller.openInspectorView(obj, undefined /* address */, variableName);
422
+ void controller.openInspectorView(obj, /* address */ undefined, expression);
423
423
  };
424
424
 
425
425
  UI.Tooltip.Tooltip.install(memoryIcon, 'Reveal in Memory Inspector panel');
package/package.json CHANGED
@@ -56,5 +56,5 @@
56
56
  "unittest": "scripts/test/run_unittests.py --no-text-coverage",
57
57
  "watch": "vpython third_party/node/node.py --output scripts/watch_build.js"
58
58
  },
59
- "version": "1.0.1034999"
59
+ "version": "1.0.1036501"
60
60
  }