Commit Graph
14 Commits
Author SHA1 Message Date
Tim van der Lippe 50cfa9b19d Migrate host/ to ESM
Bug: 1006759
Change-Id: Ib72e0acbb20c4579e708cd79a67ffd0bc2073b70
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1829102
Commit-Queue: Tim Van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#701509}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b2641f7a9893b50ab7f74d8bc5b7ca7743b0a530
2019-10-01 10:40:58 +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
Peter Marshall cce5af3d50 DevTools: Make accessibility non-optional for UI.ToolbarComboBox
Right now when using UI.ToolbarComboBox, the caller has to remember to
call setTitle() after constructing it, otherwise no aria-label will be
set for the 'select' element. Some callers did not do this, but all
select elements are user visible and must have aria-label set.

To ensure that this mandatory property is set, this CL changes the
constructor to require a title argument and sets the ARIA accessible
name (thus setting aria-label) to the title.

Remove the setTitle() method which was only used to add a title right
after the creation of the object.

Update all of the users of UI.ToolbarComboBox to provide a title,
fixing accessibility issues for the users that did not already call
setTitle().

Make accessibleName mandatory for ToolbarSettingComboBox as there is
only one caller, and they provide it.

Change-Id: Ib60e2edab763bbfaa4e71a1c76ed4fa4e21e3fc4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1821904
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#699754}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 36119d248b809872edfc1acde75cbee57226fc92
2019-09-25 14:09:00 +00:00
Junyi Xiao 6e3798df4a Devtools: a11y fixes for Bottom-Up and Call Tree view of Perf Pane
Accessibility testing revealed the following issues within the tool:
1. no label for the group by combobox
2. link is not keyboard accessible

This change adds:
1. better aria-placeholder for filter input bar
2. aria-label for icons and group by combobox
3. context menu for links

Bug: 963183

Change-Id: I63f343e4cc056468c3e640b735b50f7bec3051c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1633332
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: Junyi Xiao <juxiao@microsoft.com>
Cr-Original-Commit-Position: refs/heads/master@{#698981}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: bf7b95ff63504e19559165eb12958ebc23def777
2019-09-23 19:12:27 +00:00
Sigurd Schneider 8a6ad9c890 [devtools] Remove title option from combo box entries
The title is not showing anyway, because <option> elements are not
supposed to have a title property as per spec, and the browser
discards the property.

Bug: chromium:1005142
Change-Id: I89f24cd159a5cdbdbeadf71bc31a88abc00076ea
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1815876
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#698842}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 311527e5fc5dd0b63d18596f736a461ddcce4467
2019-09-23 08:45:52 +00:00
Joey Arhar cacb567317 [DevTools] Bring back websocket message viewer colors
Screenshots: https://imgur.com/a/7rqmXSI
Bug: 996208
Change-Id: Id2beed57157772d28c98d87c6a88dfb88eca2d46
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1764126
Reviewed-by: Erik Luo <luoe@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#689311}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 4feb20a7164061fe74f223f3ec597781945cbec5
2019-08-22 01:51:18 +00:00
Joey Arhar 5b7f7733d4 [DevTools] Change colors of websocket message viewer datagrid
Currently in the websocket message viewer, sent text messages have a
green background, received text messages have a white background, and
binary messages are yellow on yellow. This patch removes all of these
interesting colors and replaces them with data grid striping to look
more like the other datagrids in devtools.

Screenshots: http://crbug.com/963949#c2
Bug: 963949
Change-Id: I0403a8c67a36e5ad0bd006d59e60fc02d371d7ae
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1614036
Reviewed-by: Erik Luo <luoe@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#660948}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b7376e9a27a05101c607526f4c4441e582cbeb86
2019-05-17 19:01:20 +00:00
Lorne Mitchell 7aa2c6c30f DevTools: Enabled check_localization presubmit script
* Enabled the check_localization presubmit script.
* Fixed localization issues caught by the check_localization presubmit script.
* Updated the check_localization script to allow contatenation of non-alphabetic strings with localized strings.
  * For example, ls`Status Code` + ": " is a valid concatenation. This allows for decorations to be concatenated with localized strings.

Change-Id: I741940c9ebdac363ac0ccad3f7de20d508204e2b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1544878
Auto-Submit: Lorne Mitchell <lomitch@microsoft.com>
Reviewed-by: Joel Einbinder <einbinder@chromium.org>
Reviewed-by: Pavel Feldman <pfeldman@chromium.org>
Commit-Queue: Pavel Feldman <pfeldman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#647134}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7a329cb73b0b5d5cddb89a34fd7da6cb1a3c87dd
2019-04-03 03:50:10 +00:00
Joey Arhar 8cf725b762 [DevTools] Update binary websocket viewer, remove experiment
This patch replaces the TabbedPane in the binary websocket viewer with a
bottom toolbar which has a dropdown for which view you want and a copy
button. Since the feedback was positive in a UX meeting, I am removing
the experiment.

Screenshots: https://imgur.com/a/v2iH4mg

Bug: 605262
Change-Id: I9ee50fdf75e82043d85bf3ab6745ae79027ffc4f
Reviewed-on: https://chromium-review.googlesource.com/c/1449108
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Joel Einbinder <einbinder@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#629025}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2a33c7ca1b2db81054aef98dcaed2912a14bccd5
2019-02-05 03:16:43 +00:00
Joey Arhar 19e85ccca5 [DevTools] Add binary websocket message viewer behind experiment
Screenshots: https://imgur.com/a/0rtukft

Bug: 605262
Change-Id: I1049d2196e51193419b9dd7ebbe7105a8655a631
Reviewed-on: https://chromium-review.googlesource.com/c/1321570
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#627166}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9eb859773e133754b856482a4b6ea79ba39412fe
2019-01-29 22:07:02 +00:00
Joey Arhar 6cd6a0ce78 [DevTools] Correct WebSocket Frames to be Messages
Bug: 802182
Change-Id: I01b45373ab5fe21bf2513cd1ea9e7f2e90d9820f
Reviewed-on: https://chromium-review.googlesource.com/c/1356135
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#612761}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 595fe3e4e2b1893fcbcd4469f3b86dfc328f8f98
2018-11-30 20:27:57 +00:00
Joel Einbinder 87b5469ff2 DevTools: Set a minimum height on the WebSocketFrameView
This prevents the user from accidentally hiding the frame view
completely and being unable to figure out how to get it back.

Bug: 895548
Change-Id: I39f503faa680bc136b14e6e521a1528ab594feff
Reviewed-on: https://chromium-review.googlesource.com/c/1281873
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Joel Einbinder <einbinder@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#600136}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 11e27edef40a486fd916a989851a0066e2983c66
2018-10-16 21:51:11 +00:00
Ingvar Stepanyan 1c77184338 Fix places not checking whether content is base64
This fixes up some places in code that ignored `encoded` flag from the
result of `Network.getResponseBody` and similar CDP commands, instead making
own assumptions based on "common sense" (whether it's text content type,
whether it can be parsed as-is and so on).

This works fine for Chromium either way because it upholds these assumptions,
but technically it's a violation of the protocol and makes devtools app
easily incompatible with other CDP implementations.

Change-Id: Ifbd3ad487e6f39a75795b362cc3828466ba4f775
Reviewed-on: https://chromium-review.googlesource.com/c/1230042
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Dmitry Gozman <dgozman@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#598318}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5b046432f18e81cc58d32191c8a8ad150c8b74ad
2018-10-10 14:35:08 +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