Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Issue 2374513002: Add ui devtools server (Closed)

Created:
4 years, 2 months ago by Sarmad Hashmi
Modified:
4 years, 1 month ago
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ui devtools server Implement a basic devtools server for mus/ash in order to inspect the window server tree hierarchy from a chrome devtools client. This can be enabled by starting chrome with the flag --enable-ui-devtools=<port>. With this implementation, a basic server that only communicates with web sockets is started. It responds with the hierarchy when the devtools client connects. BUG=648701 CQ-DEPEND=CL:2365283003 Committed: https://crrev.com/1ec338a7f29b26c0e6ae4c5c276d6014e00b77c9 Cr-Commit-Position: refs/heads/master@{#427506}

Patch Set 1 #

Patch Set 2 : Initial commit for ui devtools server #

Patch Set 3 : Initial commit for ui devtools server #

Patch Set 4 : Initial commit for ui devtools server #

Patch Set 5 : Initial commit for ui devtools server #

Total comments: 4

Patch Set 6 : Initial commit for ui devtools server #

Patch Set 7 : Initial commit for ui devtools server #

Total comments: 39

Patch Set 8 : Address @sadrul's comments #

Total comments: 8

Patch Set 9 : Fix all header if directives #

Total comments: 30

Patch Set 10 : Add comments #

Total comments: 4

Patch Set 11 : Move everything to components/ui_devtools #

Total comments: 12

Patch Set 12 : Add OWNERS file and fix headers #

Patch Set 13 : Add component as dependency #

Patch Set 14 : Add component as dependency #

Patch Set 15 : Add net to DEPS and Build #

Patch Set 16 : Update BUILD file #

Patch Set 17 : Add ui devtools placeholder test action in build file so it builds on win/linux trybots #

Patch Set 18 : Add ui devtools placeholder test action in build file so it builds on win/linux trybots #

Patch Set 19 : Revert to old build files, try with more specific target #

Patch Set 20 : Add dep under is_win conditional #

Patch Set 21 : Add to ash BUILD file #

Patch Set 22 : Fix int to size_t warning #

Patch Set 23 : Ignore int to bool conversion warning #

Patch Set 24 : Remove ui_devtools dependency from Ash (will add back in next CL) #

Patch Set 25 : Add inspector_protocol to DEPS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+668 lines, -1 line) Patch
A components/ui_devtools/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +77 lines, -0 lines 0 comments Download
A components/ui_devtools/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +5 lines, -0 lines 0 comments Download
A + components/ui_devtools/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
A components/ui_devtools/devtools_client.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +56 lines, -0 lines 0 comments Download
A components/ui_devtools/devtools_client.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +61 lines, -0 lines 0 comments Download
A components/ui_devtools/devtools_server.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +61 lines, -0 lines 0 comments Download
A components/ui_devtools/devtools_server.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +161 lines, -0 lines 0 comments Download
A components/ui_devtools/inspector_protocol_config.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +14 lines, -0 lines 0 comments Download
A components/ui_devtools/protocol.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +97 lines, -0 lines 0 comments Download
A components/ui_devtools/protocol_platform.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +21 lines, -0 lines 0 comments Download
A components/ui_devtools/string_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +60 lines, -0 lines 0 comments Download
A components/ui_devtools/string_util.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +23 lines, -0 lines 0 comments Download
A components/ui_devtools/switches.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +16 lines, -0 lines 0 comments Download
A components/ui_devtools/switches.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 99 (69 generated)
sadrul
https://codereview.chromium.org/2374513002/diff/80001/ui/DEPS File ui/DEPS (right): https://codereview.chromium.org/2374513002/diff/80001/ui/DEPS#newcode3 ui/DEPS:3: "+net", This should go in ui/devtools/DEPS https://codereview.chromium.org/2374513002/diff/80001/ui/devtools/protocol.json File ui/devtools/protocol.json ...
4 years, 2 months ago (2016-09-27 18:14:50 UTC) #9
Sarmad Hashmi
https://codereview.chromium.org/2374513002/diff/80001/ui/DEPS File ui/DEPS (right): https://codereview.chromium.org/2374513002/diff/80001/ui/DEPS#newcode3 ui/DEPS:3: "+net", On 2016/09/27 18:14:50, sadrul wrote: > This should ...
4 years, 2 months ago (2016-09-27 20:32:52 UTC) #10
sadrul
https://codereview.chromium.org/2374513002/diff/120001/ui/devtools/BUILD.gn File ui/devtools/BUILD.gn (right): https://codereview.chromium.org/2374513002/diff/120001/ui/devtools/BUILD.gn#newcode58 ui/devtools/BUILD.gn:58: "StringUtil.h", Do these files have to be called ProtocolPlatform ...
4 years, 2 months ago (2016-10-17 16:05:09 UTC) #11
Sarmad Hashmi
https://codereview.chromium.org/2374513002/diff/120001/ui/devtools/BUILD.gn File ui/devtools/BUILD.gn (right): https://codereview.chromium.org/2374513002/diff/120001/ui/devtools/BUILD.gn#newcode58 ui/devtools/BUILD.gn:58: "StringUtil.h", On 2016/10/17 16:05:08, sadrul wrote: > Do these ...
4 years, 2 months ago (2016-10-17 16:58:22 UTC) #12
sadrul
https://codereview.chromium.org/2374513002/diff/120001/ui/devtools/protocol.json File ui/devtools/protocol.json (right): https://codereview.chromium.org/2374513002/diff/120001/ui/devtools/protocol.json#newcode1 ui/devtools/protocol.json:1: { On 2016/10/17 16:58:21, mhashmi wrote: > On 2016/10/17 ...
4 years, 2 months ago (2016-10-17 17:44:36 UTC) #13
Sarmad Hashmi
https://codereview.chromium.org/2374513002/diff/140001/ui/devtools/devtools_client.h File ui/devtools/devtools_client.h (right): https://codereview.chromium.org/2374513002/diff/140001/ui/devtools/devtools_client.h#newcode5 ui/devtools/devtools_client.h:5: #ifndef UI_DEVTOOLS_DEVTOOLS_CLIENT_H On 2016/10/17 17:44:36, sadrul wrote: > There ...
4 years, 2 months ago (2016-10-17 19:15:29 UTC) #14
pfeldman
This looks great! A couple of questions: - Do you think we could place the ...
4 years, 2 months ago (2016-10-17 22:52:42 UTC) #15
pfeldman
4 years, 2 months ago (2016-10-17 23:16:31 UTC) #17
sadrul
> - retro-fitting the DOM domain backend is probably fine as you test the waters, ...
4 years, 2 months ago (2016-10-18 00:17:45 UTC) #19
sadrul
https://codereview.chromium.org/2374513002/diff/160001/ui/devtools/BUILD.gn File ui/devtools/BUILD.gn (right): https://codereview.chromium.org/2374513002/diff/160001/ui/devtools/BUILD.gn#newcode14 ui/devtools/BUILD.gn:14: "DOM.cpp", Sort https://codereview.chromium.org/2374513002/diff/160001/ui/devtools/devtools_client.h File ui/devtools/devtools_client.h (right): https://codereview.chromium.org/2374513002/diff/160001/ui/devtools/devtools_client.h#newcode34 ui/devtools/devtools_client.h:34: friend ...
4 years, 2 months ago (2016-10-18 01:09:15 UTC) #20
Sarmad Hashmi
> Do you think we could place the client and the server > classes into ...
4 years, 2 months ago (2016-10-18 02:40:49 UTC) #21
sadrul
Looks good. Just a few more comments. +sky@ for additional owner review. https://codereview.chromium.org/2374513002/diff/160001/ui/devtools/devtools_server.cc File ui/devtools/devtools_server.cc ...
4 years, 2 months ago (2016-10-18 20:29:38 UTC) #23
sky
Sadrul, are there specific things you want me to review here? I'm ok with just ...
4 years, 2 months ago (2016-10-18 21:42:19 UTC) #24
sadrul
On 2016/10/18 21:42:19, sky wrote: > Sadrul, are there specific things you want me to ...
4 years, 2 months ago (2016-10-19 16:37:13 UTC) #25
sky
components/ui_devtools SGTM On Wed, Oct 19, 2016 at 9:37 AM, <sadrul@chromium.org> wrote: > On 2016/10/18 ...
4 years, 2 months ago (2016-10-19 19:29:23 UTC) #26
sky
components/ui_devtools SGTM On Wed, Oct 19, 2016 at 9:37 AM, <sadrul@chromium.org> wrote: > On 2016/10/18 ...
4 years, 2 months ago (2016-10-19 19:29:23 UTC) #27
Sarmad Hashmi
https://codereview.chromium.org/2374513002/diff/160001/ui/devtools/devtools_server.cc File ui/devtools/devtools_server.cc (right): https://codereview.chromium.org/2374513002/diff/160001/ui/devtools/devtools_server.cc#newcode145 ui/devtools/devtools_server.cc:145: if (!client) { On 2016/10/18 20:29:37, sadrul wrote: > ...
4 years, 2 months ago (2016-10-19 23:56:02 UTC) #28
sadrul
lgtm https://codereview.chromium.org/2374513002/diff/200001/components/ui_devtools/devtools_client.cc File components/ui_devtools/devtools_client.cc (right): https://codereview.chromium.org/2374513002/diff/200001/components/ui_devtools/devtools_client.cc#newcode58 components/ui_devtools/devtools_client.cc:58: } The order should be the same as ...
4 years, 2 months ago (2016-10-20 16:56:30 UTC) #29
sadrul
+dgozman@ would you mind reviewing this CL as well? Thank you! Can you also add ...
4 years, 2 months ago (2016-10-20 16:59:37 UTC) #31
dgozman
I looked at generator usage, and it LGTM. https://codereview.chromium.org/2374513002/diff/200001/components/ui_devtools/devtools_client.h File components/ui_devtools/devtools_client.h (right): https://codereview.chromium.org/2374513002/diff/200001/components/ui_devtools/devtools_client.h#newcode23 components/ui_devtools/devtools_client.h:23: class ...
4 years, 2 months ago (2016-10-20 20:45:59 UTC) #32
Sarmad Hashmi
Added OWNERS file. https://codereview.chromium.org/2374513002/diff/200001/components/ui_devtools/devtools_client.cc File components/ui_devtools/devtools_client.cc (right): https://codereview.chromium.org/2374513002/diff/200001/components/ui_devtools/devtools_client.cc#newcode58 components/ui_devtools/devtools_client.cc:58: } On 2016/10/20 16:56:29, sadrul wrote: ...
4 years, 2 months ago (2016-10-20 21:49:23 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2374513002/460001
4 years, 1 month ago (2016-10-25 20:39:18 UTC) #80
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/289172)
4 years, 1 month ago (2016-10-25 20:50:00 UTC) #82
Sarmad Hashmi
+thakis@ for DEPS owner review
4 years, 1 month ago (2016-10-25 20:51:42 UTC) #84
Nico
lgtm I think you'll need a net owner too
4 years, 1 month ago (2016-10-25 20:53:06 UTC) #85
Sarmad Hashmi
+juliatuttle@ for net DEPS owner review
4 years, 1 month ago (2016-10-25 20:59:26 UTC) #87
Julia Tuttle
On 2016/10/25 20:59:26, Sarmad Hashmi wrote: > +juliatuttle@ for net DEPS owner review net DEP ...
4 years, 1 month ago (2016-10-25 22:03:10 UTC) #90
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2374513002/480001
4 years, 1 month ago (2016-10-25 22:07:58 UTC) #95
commit-bot: I haz the power
Committed patchset #25 (id:480001)
4 years, 1 month ago (2016-10-25 22:14:24 UTC) #97
commit-bot: I haz the power
4 years, 1 month ago (2016-10-25 22:17:41 UTC) #99
Message was sent while issue was closed.
Patchset 25 (id:??) landed as
https://crrev.com/1ec338a7f29b26c0e6ae4c5c276d6014e00b77c9
Cr-Commit-Position: refs/heads/master@{#427506}

Powered by Google App Engine
This is Rietveld 408576698