Commit Graph
40 Commits
Author SHA1 Message Date
Jack Franklin ae2142c5b9 [Dark mode] land new theme colors
These have been added by Peter Muller.

Although `--color-link` refers to `--color-primary` for now, we are
splitting it out such that we can update links more easily in the future
should we need to.

Bug: 1152736
Change-Id: Ife8d501b93b73ceccaeeb6ffc343cfc5b6af4dbf
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2566801
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-12-01 12:24:36 +00:00
Simon Zünd 8243768ee0 Introduce 'Report' component, intended to replace 'ReportView.js'
Screenshot for basic.html: https://imgur.com/a/HKlHFGh

R=jacktfranklin@chromium.org

Change-Id: Idd47a0978fbcba63fb847355032e6142e4145165
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2560754
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-11-30 07:12:48 +00:00
Jack Franklin 4faec756cf [DarkMode] remove new colors from inspectorStyle.css
I copy-pasted theme into themeColors.css but forgot to remove them from
inspectorStyle.css...

Bug: 1152736
Change-Id: I8fdd1708ad45cdc65527ffbb2a96ab780b250b02
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2562857
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2020-11-27 16:35:10 +00:00
Jack Franklin 72a257f2e0 Fix incorrect import in DataGrid examples.
They snuck in mistakenly and break the examples. The import was unused
and left over.

TBR=aerotwist@chromium.org

Change-Id: I48e49e24134f70146d441e6d83686ad6f3a51213
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2562714
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2020-11-27 12:46:26 +00:00
Jack Franklin fb62f3e8a9 [New Linkifier] Add <devtools-linkifier> web component
This CL creates a new <devtools-linkifier> component that will eventually
replace the legacy linkifier code.

For now this component only supports taking a string URL, but in time (and as we
need) we can extend it to support all the inputs that the legacy Linkifier code
uses.

It works by emitting an event that is picked up by the legacy linkifier and
threaded through the legacy system.

Bug: 1149403
Change-Id: I76023052d818ab0f296db887fb03d6761ca4796b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2558297
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Alfonso Castaño <alcastano@google.com>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-11-26 09:48:03 +00:00
Jack Franklin 3642900e6d Load new theme colours in the component docs.
This CL updates the component docs server so it automatically injects the new
colour variables (which are part of the dark mode work) into the server. It
contains the following changes:

1. Pulling out the new colours into a new CSS file,
   `ui/themeColors.css`, which contain all the new definitions.
2. Injecting that new file where we inject `inspectorStyles.css`
   currently.
3. Updating the component docs server to intercept any requests to load
   an HTML example file, read the HTML contents and inject a `<style>`
   tag to load in the theme colours.
4. Additionally we now provide a small bit of JS that adds a handy
   button to toggle light/dark mode without needing to dive into the dev
   tools.

Fixed: 1152774
Change-Id: Ia2df0e00315dfeb532570ea5634fa54677337f76
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2560941
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-11-25 16:26:10 +00:00
Jack Franklin 982e9db7e7 [DataGrid] support filter parser input
`TextUtils.FilterParser` is commonly used to parse user input into a
series of filters. This CL updates the new data-grid-controller so it
can take the result of parsing user input into an array of parsed
filters. This means we can hook it up to existing input boxes in
DevTools and unblocks us landing the new data grid into the protocol
monitor.

Bug: 1125968
Change-Id: I45896796d7e7cc720d22c48b65325fb099115da8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2560237
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-11-25 13:32:47 +00:00
Jack Franklin 6bc8f01e7c Land new theme colours and docs example
This CL adds the initial set of the new light/dark mode colours (signed
off by petermueller@) and a small component doc example that lists out
the colours to make them easier to work with visually.

Long term I would like to avoid hard-coding these colours in the JS
given they are already defined, and I've filed https://crbug.com/1151872
for that.

Bug: 1122511
Change-Id: Ic45ccb191c477394216ce378254331273692bd0c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2554564
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-11-23 11:16:05 +00:00
Jack Franklin cfda4f910c [DataGrid]: swap hidden flag to visible + hideable
One of the features we need to support in the new DataGrid is a context
menu to hide/show columns. Therefore in preparation this CL updates the
API for a `column` from just the `hidden` field to `visible` and
`hideable`. The former denotes if the column is visible or not, and
`hideable` denotes if the user can hide/show it via the context menu.

There's no user facing change here, just type changes in preparation for
future work.

Bug: 1150793, 1125968
Change-Id: Idfa95a27aab741388548e10ff83263c6b7338724
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2550075
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2020-11-20 12:03:56 +00:00
Jack Franklin cde3c1e23b [DataGrid] fix stretching of table rows
This CL introduces a filler row that automatically grows to be the right
size to fill in the table, meaning the data rows stay the right size and
don't expand to fill the space.

Bug: 1125968
Change-Id: I0617a55c2b2657754954bf134342edf92c7a8834
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2538842
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-11-16 13:44:52 +00:00
Alfonso Castaño 405815877a Add title to DataGrid cells
This CL adds a title field to Cell. Title will be used in
stringValueForCell, as a replacement for cell.value or the renderer output.

Bug: chromium:1148760
Change-Id: I566276b5bb0536ee262d51fb70bae2a74b26390a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2536407
Commit-Queue: Alfonso Castaño <alcastano@google.com>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-11-16 10:55:39 +00:00
Kim-Anh Tran e311d132a1 [LMI] Add settings view to linear memory inspector
This adds the ValueInterpreterSettings which allows the user to
select the value types to show.

Screenshot: https://imgur.com/a/rIBJ5hT

Bug: chromium:1110202
Change-Id: Id7e7a781281efbc8ae09fdfc544724f4bf104a41
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2534208
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-11-13 11:59:35 +00:00
Kim-Anh Tran d6c752c450 Add feature to LMI to operate on parts of a Uint8Array
Previously the whole Uint8Array needed to be passed down to the
linear memory inspector for rendering. This CL adds a
memoryOffset field to the Linear Memory Inspector to indicate
that the passed array is not complete and starts at the
given offset. If more data needs to be passed on a
navigation event (page, history), an event is triggered
to request the required data to be passed down.

Bug: chromium:1110202
Change-Id: Ide8cf2d85c1d31573d0c86a96968880e89a24ad8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2534192
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
2020-11-12 11:02:40 +00:00
Jack Franklin fe956997e9 Fix new data-grid empty state.
Before + after: https://imgur.com/a/w42MESX

Bug: 1125968
Change-Id: Ibe75e6fcc4c7f747879cb035c915442dc80a60ce
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2532241
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2020-11-11 14:48:23 +00:00
Peter Marshall 2cfcb1c1ee [surveys] Add the UI for showing a survey link in IssueView
These links are only shown after we check with the backend that the
survey is available. Currently no triggers are included so no surveys
will be shown, but this is in preparation.

Link: https://imgur.com/LN0U6Sn
Pending: https://imgur.com/R56jxBl
Finished: https://imgur.com/NNxQOGX
Error: https://imgur.com/vLHFzL1

Bug: 1112738
Change-Id: Iffc2f7fcf56234db12f4a68feff2561a5b9cdd41
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2519699
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
2020-11-06 16:11:52 +00:00
Jack Franklin f3ebb1429d New DataGrid component.
This CL introduces the new DataGrid component, and is split into two:

- DataGrid, which is a "plain" component that takes data and renders it.
- DataGridController, which is a "smart" component that can take the
data and manipulate it (e.g. sorting), before passing it into a DataGrid
to be rendered.

These components are not feature complete in that they do not support
all features of the incumbent `DataGrid.js` but they are not designed
to. The goal here is to land the initial data-grid components, and then
work on using them in DevTools (as part of the protocol monitor). At
that point we can extend functionality by seeing what is missing and
testing in DevTools, rather than testing in isolation.

This CL includes the implementation, unit tests and component
documentation examples of the functionality that does exist, along with
a README explaining the two components and when to use each one.

Bug: 1125966
Change-Id: I1b5c9a0174c4563be64b5b4adcc8251d1498b55d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2461772
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-11-05 15:40:11 +00:00
Kim-Anh Tran 0a3987990e Add value interpreter to linear memory inspector
This adds the value interpreter that is used to view
a value at an address, interpreted as different data types.

Before: https://imgur.com/a/5caDiI8
After: https://imgur.com/a/c3Z7zaq

Bug: chromium:1110202
Change-Id: Ib40cb7eb8f86c8cdae91854cb73c6530a7538f77
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2509585
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-11-03 10:11:16 +00:00
Kim-Anh Tran 6b0ecd8197 Add linear memory inspector viewer component
This adds the viewer component of the linear memory inspector that
allows the user to view the content of an array buffer.

Before: https://imgur.com/a/RPELp6P
After: https://imgur.com/a/5caDiI8

Bug: chromium:1110202
Change-Id: I8ebc36f09a5b15516df54895bb16b2fcd47310b1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2491650
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
2020-10-26 20:49:26 +00:00
Patrick Brosset 284a5933e2 Refactor the ColorSwatch to use TypeScript and LitHTML web component
This will make it possible to reuse this component in other new-style
web components like CSSVarSwatch (which, today, duplicates the logic).

The ColorSwatch has a number of different consumers today that require
different things from it. I looked at all these consumers and based on
them defined an API that should work for everything:
- renderColor: which accepts either a parsed color or a string to be
parsed as well as an optional format (or flag to use the format from the
user settings) and an optional tooltip.
- swatch-click event: to alert consumers when the swatch is clicked, so
they can hook up the colorpicker to it.
- format-changed event: to alert consumers when the swatch is
shift-clicked so they can react to the new format.

This component has 1 slot that consumers can use to display the color
value as text.
This is useful mostly for the Styles pane. Indeed, the way properties
are edited in that pane relies on them having an available textContent.
So the color string needs to be in the light DOM, not only in the shadow
DOM.
This is why you'll see the slotted element being updated when the format
changes.

Bug: 1137438
Change-Id: I27b757e63a54be2899d9d6b0e94d1af54f3ee22d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2480042
Commit-Queue: Patrick Brosset <patrick.brosset@microsoft.com>
Reviewed-by: Shane Clifford <shanejc@microsoft.com>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Changhao Han <changhaohan@chromium.org>
2020-10-23 08:04:21 +00:00
Alex Rudenko 982cb54086 Improvements for the Icon component
- removed mentions of someIcon in the code.
- unified the source for styles and (subjective) made the data flow
more top-down.
- added support for changing the icon color via CSS as I have started
to use it and it is not always possible to change it via JS + it feels
like setting the color can be done without a rerender.

Follow-ups:
- explicit API for masked and background image components
- setting colors only via CSS?

Change-Id: I3b15dc3a1b1039a59fd5e2c5e8d2136e696f7989
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2489422
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-10-22 16:10:30 +00:00
Jan Scheffler 377d9b3b2b [WebVitals] Add new WebVitals lane
Change-Id: Ibb1095e37a52a39e0718f8f7178787700b965510
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2339321
Commit-Queue: Jan Scheffler <janscheffler@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-10-22 13:51:29 +00:00
Kim-Anh Tran ba5e4813da Adding linear memory inspector navigator component
This adds the navigator component of the linear memory inspector
that is used to navigate through an array buffer.

After: https://imgur.com/a/RPELp6P

Bug: chromium:1110202
Change-Id: Id2acd96222ed11de92cd2a1fb5130ea5d79c9ab5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2484363
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
2020-10-20 13:41:04 +00:00
Kateryna Prokopenko 704e6d67c1 Icon component
Add a new web-component to simplify adding new/working with icons in DevTools

Bug: chromium:1126031
Change-Id: I37462cad34dae443ea2949fc8f736aa1614b3aa8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2401167
Commit-Queue: Kateryna Prokopenko <kprokopenko@google.com>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
2020-10-14 15:04:42 +00:00
Jack Franklin 10071897de Fix conflicting scroll instructions in Breadcrumbs
The flakey tests on Windows exposed a bug where:

* We render and click the right button to scroll
* The code that ensures the active node is in view runs, and tries to
  scroll the active element into view.

These two actions would conflict with each other. On Linux/Mac and our Windows
bots, it seems the right scroll "wins" and the tests pass. However, on Windows
10 the right scroll is overriden by scrolling the active node into view, and
therefore the test fails.

The fix we landed on is to flag if the user has manually scrolled the
crumbs, and gate the scrolling active node into view logic on that. If
the user manually scrolls, we effectively cede control and let them
control the scrolling. When we get an update (e.g. a new active selected
node), we take back control.

Additionally, the resize observer was being far too aggressive in its behaviour
(just trigger a re-render), so that's been updated to check explicitly just if
the scroll buttons need to be hidden/shown after a render. This caused a bug
when running tests in Windows where it would also cause scroll conflicts. It's
not a bug I think users would ever have hit, but one that the tests hit because
they do things so much quicker than a user actually would (e.g. render + click
button in same frame). There are tests added for the resize observer behaviour.

Change-Id: Iedf4cbe5bef652d16fc80a0e7c0b3b45a95ebbfa
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2449984
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2020-10-06 15:17:10 +00:00
Jack Franklin c45b497117 Add component_docs/README.md
Fixed: 1132819
Change-Id: Id1c1dd5a393ba20b2616a3475f474cb666137a66
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2443618
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-10-02 11:31:02 +00:00
Alex Rudenko 27ad3e764a Set up ThemeSupport in component-server to allow importing CSS
Change-Id: Ia407aa70fdbf4ad227f5a758f032744e760507b2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2436812
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2020-09-29 09:01:08 +00:00
Changhao Han bb4af12377 Complete ARIA tree support to Computed pane
This CL fixes two issues:
1. The traditional list of Computed styles could not be navigated via
ARIA tree keyboard navigations, due to recent componentization changes.
2. The grouped list was not ARIA-tree-navigatable either.

Bug: chromium:1125511, chromium:1125958
Change-Id: I2fd29ccf7e85019615d5a9fe7fab7647a44c02e9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2403320
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Changhao Han <changhaohan@chromium.org>
2020-09-11 09:06:46 +00:00
Peter Marshall 4616d9c1bb components: Rename PieChart2 to PieChart
Completing the replacement of the old PieChart

Change-Id: Icb827fc567ce4945522f882897e1ddd041a17e39
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2352746
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
2020-08-27 09:38:35 +00:00
Peter Marshall aeac448bc1 components: Create a PieChart component
Add a web component called PieChart2. The old non-component version
is called PieChart already. We'll replace it with this one once it lands
and then remove the original PieChart and rename this one.

Switch over one user of PieChart (TimelineUIUtils) to use the new
version.

Add tests and examples to the component server.

Change-Id: I563059e0322739d533a95155735fcafbe414e815
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2339562
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-08-24 07:57:37 +00:00
Jack Franklin 1e53cb87ed Load runtime stylesheets in to the components server
Change-Id: I0f24656ae941f0ade4a3fd40d024a2420142e068
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2354090
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-08-20 11:39:24 +00:00
Alex Rudenko 034db88ad6 Show list of grid elements in Layout pane
This CL adds a list of grid elements to the Layout pane and
synchronises the overlay state with adorners. The ability to navigate
to an element or configure the colors will be done in follow-up CLs.

Screenshot: https://i.imgur.com/y8bsLzk.png

Bug: 1109177
Change-Id: I7700a37e1e8b03b48e3e4394f3e6c95a41d543f0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2352712
Reviewed-by: Patrick Brosset <patrick.brosset@microsoft.com>
Reviewed-by: Changhao Han <changhaohan@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2020-08-13 13:48:40 +00:00
Changhao Han d2454323cb TS-componentize Computed tab's style property and style trace elements
This also helps future work, for example, Computed style grouping,
to be TS-componentized as well.

Bug: chromium:1106251, chromium:1096230
Change-Id: I2f8a977f4e3f701905354cb4edb15702cb8cd2a3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2336723
Commit-Queue: Changhao Han <changhaohan@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
2020-08-11 13:52:51 +00:00
Alex Rudenko a39d214440 Layout pane
This CL adds a new layout panel to the sidebar in Elements. Currently,
the pane only displays CSS Grid settings. In the future, the list of
all CSS grids will show up above the settings. The new panel is behind
the CSS Grid experiment flag.

Screenshot: https://i.imgur.com/T5Kd5Wi.png

Bug: 1109177
Change-Id: I7b5620ce6818df68d1f9cb36975be3679ca16837
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2317315
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Changhao Han <changhaohan@chromium.org>
Reviewed-by: Brandon Goddard <brgoddar@microsoft.com>
Reviewed-by: Patrick Brosset <patrick.brosset@microsoft.com>
Reviewed-by: Peter Müller <petermueller@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
2020-08-11 05:46:01 +00:00
Jack Franklin 84d986f9a1 Rename NewElementsBreadcrumbs => ElementsBreadcrumbs
Now it's landed and stable, let's remove the `New` prefix.

Change-Id: I27a77b134edbdbd96fc1e129b2958dbff1a0855a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2306156
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2020-07-21 14:56:12 +00:00
Jack Franklin 187489319e Reland "Ship new ElementsBreadcrumbs to production"
This reverts commit 8794ac6b44.

Reason for revert: Fixed issue with missing file that caused browser tests to fail.

Original change's description:
> Revert "Ship new ElementsBreadcrumbs to production"
>
> This reverts commit d8d96d5f0a.
>
> Reason for revert: Breaks browser_tests: https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket.appspot.com/8874686472852976032/+/steps/browser_tests/0/logs/Deterministic_failure:_SitePerProcessDevToolsSanityTest.InspectElement__status_FAILURE_/0
>
> Confirmed locally on a Linux Debug build that this is the offending CL.
>
> Original change's description:
> > Ship new ElementsBreadcrumbs to production
> >
> > This CL ships the new elements breadcrumbs component to production,
> > replacing the old legacy breadcrumbs with the new custom element that
> > we've built to replace it.
> >
> > Note that I haven't renamed the file from `NewElementsBreadcrumbs`. I wanted to
> > keep the diff on this CL clear and easy to follow. I plan to follow this up
> > with another CL that does the renaming.
> >
> > Light mode & dark mode screenshots: https://imgur.com/a/UyF4ktY
> >
> > Change-Id: I5c3df09456101ce03072f3eeb27f6a1c568cf9c7
> > Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2297395
> > Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
> > Reviewed-by: Paul Lewis <aerotwist@chromium.org>
> > Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
>
> TBR=aerotwist@chromium.org,tvanderlippe@chromium.org,jacktfranklin@chromium.org
>
> Change-Id: I62be4e9e3bd1fc328733ded3fff377ffd50e2d81
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2300491
> Commit-Queue: Simon Zünd <szuend@chromium.org>
> Reviewed-by: Simon Zünd <szuend@chromium.org>

TBR=aerotwist@chromium.org,szuend@chromium.org,tvanderlippe@chromium.org,jacktfranklin@chromium.org


Change-Id: Iae6aa0ce84a57312a29d79344059f887f337c5bb
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2300494
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-07-16 10:21:51 +00:00
Simon Zünd 8794ac6b44 Revert "Ship new ElementsBreadcrumbs to production"
This reverts commit d8d96d5f0a.

Reason for revert: Breaks browser_tests: https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket.appspot.com/8874686472852976032/+/steps/browser_tests/0/logs/Deterministic_failure:_SitePerProcessDevToolsSanityTest.InspectElement__status_FAILURE_/0

Confirmed locally on a Linux Debug build that this is the offending CL.

Original change's description:
> Ship new ElementsBreadcrumbs to production
> 
> This CL ships the new elements breadcrumbs component to production,
> replacing the old legacy breadcrumbs with the new custom element that
> we've built to replace it.
> 
> Note that I haven't renamed the file from `NewElementsBreadcrumbs`. I wanted to
> keep the diff on this CL clear and easy to follow. I plan to follow this up
> with another CL that does the renaming.
> 
> Light mode & dark mode screenshots: https://imgur.com/a/UyF4ktY
> 
> Change-Id: I5c3df09456101ce03072f3eeb27f6a1c568cf9c7
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2297395
> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
> Reviewed-by: Paul Lewis <aerotwist@chromium.org>
> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>

TBR=aerotwist@chromium.org,tvanderlippe@chromium.org,jacktfranklin@chromium.org

Change-Id: I62be4e9e3bd1fc328733ded3fff377ffd50e2d81
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2300491
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2020-07-16 07:14:53 +00:00
Jack Franklin d8d96d5f0a Ship new ElementsBreadcrumbs to production
This CL ships the new elements breadcrumbs component to production,
replacing the old legacy breadcrumbs with the new custom element that
we've built to replace it.

Note that I haven't renamed the file from `NewElementsBreadcrumbs`. I wanted to
keep the diff on this CL clear and easy to follow. I plan to follow this up
with another CL that does the renaming.

Light mode & dark mode screenshots: https://imgur.com/a/UyF4ktY

Change-Id: I5c3df09456101ce03072f3eeb27f6a1c568cf9c7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2297395
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-07-15 15:15:15 +00:00
Tim van der Lippe ea5df6afa1 Move copy_to_gen into build/ninja
Also rename it to `copy.gni`, since I will be adding a separate
`copy_to_resources` template that copies the content to
`resources/inspector/`.

R=aerotwist@chromium.org,jacktfranklin@chromium.org

Bug: 1098730
Change-Id: If4266a9f701ac591614125442b4986d4fe38aafe
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2278476
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-07-06 15:59:51 +00:00
Jack Franklin 279564ea9f Add ElementsBreadcrumbs component with examples
This CL adds the `ElementsBreadcrumbs` component and documentation to
the component server.

Important: this CL *does not add the component to the UI*. That will be
done in a follow up CL once this has shipped and we have done some other
infrastructure work that is currently blocking components going into
production.

This is also why the file is called `NewElementsBreadcrumbs`, to avoid a
nameclash with `ElementsBreadcrumbs.js`. In the CL that puts this
component into production I will change the filename as the clashing
won't be an issue.

Change-Id: I8039d314ba02c834c3f8ec26f9bdb547858aa2dd
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2236405
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-07-06 15:12:21 +00:00
Jack Franklin 1557a1c167 Components dev server
This introduces the components server that we will use to view
components locally.

Design doc:
https://docs.google.com/document/d/1P6qtACf4aryfT9OSHxNFI3okMKt9oUrtzOKCws5bOec/edit?pli=1

Change-Id: I6cd7588f045c3cd46e57f1f44441ffa95f0b70bb
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2199081
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-06-08 14:53:56 +00:00