Commit Graph
21 Commits
Author SHA1 Message Date
Paul Lewis ca569a50bd Migrates theme patching to top-level ThemeSupport
This CL replaces all uses of self.UI.themeSupport with an instance
function from the top level theme_support directory. It also dupes in
some of the functionality from ui/utils to prevent a circular dependency
between ui/utils and theme_support.

Change-Id: Ib8efd06630b99ee23af04ecba0dbf3cc4b19c036
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2352711
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-09-09 16:32:13 +00:00
Jan Scheffler 069be143ca Migrate front_end/performance_monitor to devtools_entrypoint
R=aerotwist@chromium.org, jacktfranklin@chromium.org

Bug: 1101738
Change-Id: I376e296c800c394963c501b9a08c2ab844686834
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2323627
Commit-Queue: Jan Scheffler <janscheffler@chromium.org>
Auto-Submit: Jan Scheffler <janscheffler@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-07-28 19:10:46 +00:00
Paul Lewis 2f85211628 [Perfmon] Improve contrast of labels in dark theme
The logic for tracking colors for the dark theme did not test the labels
for the Perfmon charting, but rather the chart lines themselves. This
CL ensures the labels are checked, but also bumps the minimum cap value
so that the labels in the Perfmon obtain a contrast of > 7.0.

See

Bug: 1098637
Change-Id: I6b366d672fca971b134261fa1de2477ef52345c3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2264116
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-06-24 15:52:29 +00:00
Jack Franklin 9c225ca1d9 Extract Number.bytesToString into number-utilities
Bug: 1050549
Change-Id: Id1d261fbe77d81bcb95886cf78d3e07de24c547a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2168883
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-04-29 10:28:35 +00:00
Paul Lewis 2d7d65c5e8 [global] Remaps self.Common.settings
This CL changes references to self.Common.settings (the global
instance of SDK.Common.Settings) over to
Common.Settings.Settings.instance(). To keep both TypeScript and
Closure happy we must make a method on the Settings class itself,
since it only allows private constructors to be accessed by static
methods on the class.

Bug: 1058320
Change-Id: I04afc8caf64acf29cdda13ef03ad05cfff4786a1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2091450
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-16 22:04:07 +00:00
Tim van der Lippe daaa48d216 Migrate final typedefs from -legacy.js files
Yet another milestone!

Bug: 1006759
Change-Id: I0a022fbce76898ee84fb38ac59329345c72fc211
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2100911
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-03-12 18:16:41 +00:00
Paul Lewis daac106699 [global] Remaps self.SDK.targetManager
This CL changes references to self.SDK.targetManager (the global
instance of SDK.SDKModel.TargetManager) over to
SDK.SDKModel.TargetManager.instance(). To keep both TypeScript and
Closure happy we must make a method on the TargetManager class itself,
since it only allows private constructors to be accessed by static
methods on the class.

Bug: 1058320
Change-Id: I6ca35024c21cf24254fd6273138a1ab3e163ee00
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2088092
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-05 14:58:03 +00:00
Jack Franklin 1be909c149 Create NumberUtilities and move constrain in
Bug: 1050549
Change-Id: I3d7d5e21c65a3c66fc9d1a30a61e26fedcc4ada1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2085172
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-04 14:00:05 +00:00
Tim van der Lippe e4da7da330 Migrate performance_monitor/ to import cross-module
Bug: 1006759
Change-Id: I64b9a284c7d9adb0a4a71aefb68bd25e9902cddb
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2052163
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-02-12 17:59:32 +00:00
Paul Lewis 93d8e2cd12 [Global] Update refs to UI.themeSupport
Bug: 1006759
Change-Id: I8d11fd8de1f43e2add97dd09dd539bfda4a23f39
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2019560
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-01-24 17:07:25 +00:00
Paul Lewis 6bcdb18044 [Global] Update refs to Common.settings
Bug: 1006759
Change-Id: Ie1943b50ba8ba23fae4f52f958ae6f8c7b6a7d3f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2016744
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
2020-01-23 11:29:11 +00:00
Paul Lewis 4ae5f4f5ce [Global] Update refs to SDK.targetManager
Bug: 1006759
Change-Id: I0686ef929b89e75c2ea8a731c593d955eca85935
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2015119
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
2020-01-23 10:56:40 +00:00
Paul Lewis 6d37afcf11 Migrates performance_monitor/ to ESM internally
Bug: 1006759
Change-Id: I71003990205d75dd8f09af322a8ad4dd58cef364
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1994976
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-01-13 14:46:24 +00:00
Paul Lewis 576b9e489d Migrates performance_monitor/ to esm
Bug: 1006759
Change-Id: Id830bd1272fea68d1e37637044fe17c668380b75
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1947531
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2019-12-04 14:22:25 +00:00
Tim van der Lippe 1d6e57a0e3 Always add braces to single-line if-statements
The Chromium/Google style guides does not enforce curly braces for
single-line if-statements, but does strongly recommend doing so. Adding
braces will improve code readability, by visually separating code
blocks. This will also prevent issues where accidental additions are
pushed to the "else"-clause instead of in the if-block.

This CL also updates the presubmit `eslint` to run the fix with the
correct configuration. It will now fix all issues it can fix.

Change-Id: I4b616f21a99393f168dec743c0bcbdc7f5db04a9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1821526
Commit-Queue: Tim Van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Jeff Fisher <jeffish@microsoft.com>
Cr-Original-Commit-Position: refs/heads/master@{#701070}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7e0bdbe2d7f9fc2386bfaefda3cc29c66ccc18f9
2019-09-30 11:55:34 +00:00
Alexei Filippov c80db1dc61 DevTools: Make performance monitor scrolling smooth again.
Change-Id: I1185b15c655d2f37c9a5e36a4283ce81b971660a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1594487
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Alexei Filippov <alph@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#656609}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 22db2f5f4be55240e7fb2a26589c5cd82a69b8c7
2019-05-04 00:19:39 +00:00
James Lissiak 0e9eae83eb DevTools: Fix a11y issues in Performance Monitor tool
Accessibility testing of the Performance Monitor tool revealed several
issues which are addressed in this patch:

- Keyboard A11y: The graph toggling UI could not be navigated or
  manipulated via the keyboard. This restricts keyboard-only users from
  interacting correctly with the tool.
  - The fix was to allow users to navigate through the list of
    MetricIndicators in the left panel using the Tab key.
    Also adding a keypress event listener to allow toggling each of the
    MetricIndicators with either the 'Enter' or 'Space' keys.

- Color A11y: The UI relied solely on color differences to identify each
  graph. This prevents users with reduced color perception from easily
  using the tool.
  - The fix was to add a text label to each graph and improve the
    contrast ratio of the fill color.

- Screen Reader A11y: There was no screen reader accessible information
  in the perf monitor tool. This prevents visually impared users from
  using the tool.
  - The fix was to add announceable text to the buttons and a
    description to the graph (A future improvement would be to also
    announce the graph values in realtime as the data comes in)

Screenshot of changes for comparison:
https://imgur.com/a/nUNInsl

Change-Id: Iaf8d2b5bf54f91b776372ae9d4c5e182d1bd6721
Reviewed-on: https://chromium-review.googlesource.com/c/1488051
Commit-Queue: James Lissiak <jalissia@microsoft.com>
Reviewed-by: Joel Einbinder <einbinder@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#636154}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 05503b6028373f309a24747e4e208002750933a9
2019-02-27 21:31:10 +00:00
Alexei Filippov 317f348b50 DevTools: Slow down performance metrics chart speed.
Make the chart speed twice slower down to 10 px/sec.

Change-Id: Ifcf34ea034ac74a0fa98c5e323b7fc5fee2d3ee4
Reviewed-on: https://chromium-review.googlesource.com/c/1297985
Reviewed-by: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#602549}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d1de8a76b5ecd425b144c9e5f922464ec69c71e6
2018-10-25 00:59:48 +00:00
Alexei Filippov ca0ed4da23 DevTools: Speedup perf monitor draw
Do not use Number.p.toLocaleString as it recreates the formatter on every
invocation.

Change-Id: I5b98ed61e448ca867a1d5317ffc50e0066760b50
Reviewed-on: https://chromium-review.googlesource.com/c/1295311
Reviewed-by: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Commit-Queue: Alexei Filippov <alph@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#601807}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 76caac48f34ee102393326a98909567e463798d9
2018-10-23 00:46:52 +00:00
Alexei Filippov 2f713239f0 DevTools: Do not start performance monitor until model is ready.
BUG=833271

Change-Id: I62b0f0a598fa9caabde156609a8176ebad965e88
Reviewed-on: https://chromium-review.googlesource.com/1015536
Commit-Queue: Alexei Filippov <alph@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#551568}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0eab72ec3aa68755dfb7fa1a9282a4dd0d5f945a
2018-04-18 03:25:32 +00:00
Blink Reformat 4c46d0969f The Great Blink mv for source files, part 2.
Move and rename files.

NOAUTOREVERT=true
NOPRESUBMIT=true
NOTREECHECKS=true
Bug: 768828
TBR=darin@chromium.org
NOTRY=true

Change-Id: I66d3b155808bc5bdbf237b80208e1e552bcf7f28
Reviewed-on: https://chromium-review.googlesource.com/1001153
Reviewed-by: Blink Reformat <blink-reformat@chromium.org>
Commit-Queue: Blink Reformat <blink-reformat@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#549061}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0aee4434a4dba42a42abaea9bfbc0cd196a63bc1
2018-04-07 15:32:37 +00:00