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

Issue 2502863002: Add UI DevTools under chrome://inspect/#other (Closed)

Created:
4 years, 1 month ago by Sarmad Hashmi
Modified:
4 years, 1 month ago
Reviewers:
dgozman, sadrul
CC:
chromium-reviews, arv+watch_chromium.org, pfeldman, devtools-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UI DevTools under chrome://inspect/#other This CL lists all clients that are attached to the UiDevToolsServer under chrome://inspect/#other. In order to access the active devtools server, we need to have the current (and only instance) as a static variable so the inspect UI can get all the client urls. In addition, we have a separate command, inspect-ui in inspect.js and inspect_ui. This is because UiDevTools doesn't need any DevToolsHandler as it has a custom backend. We simply open the link in a new tab when the user clicks 'inspect'. BUG=648701 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/6d1b1cb2d0fedff985eae5bd76fa13561262774e Cr-Commit-Position: refs/heads/master@{#433878}

Patch Set 1 #

Patch Set 2 : Add UI DevTools under chrome://inspect/#other #

Patch Set 3 : Add ui_devtools to BUILD file #

Patch Set 4 : Add ui_devtools to BUILD file #

Total comments: 8

Patch Set 5 : dgozman's comments #

Total comments: 8

Patch Set 6 : sadruls comments #

Total comments: 4

Patch Set 7 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -39 lines) Patch
M chrome/browser/resources/inspect/inspect.js View 1 2 3 4 5 6 4 chunks +30 lines, -2 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/inspect_ui.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/inspect_ui.cc View 1 2 3 4 8 chunks +44 lines, -1 line 0 comments Download
M components/ui_devtools/devtools_server.h View 1 2 3 4 5 2 chunks +13 lines, -2 lines 0 comments Download
M components/ui_devtools/devtools_server.cc View 1 2 3 4 5 6 3 chunks +45 lines, -34 lines 0 comments Download

Messages

Total messages: 41 (30 generated)
Sarmad Hashmi
Please take a look dgozman@ and sadrul@.
4 years, 1 month ago (2016-11-15 04:53:40 UTC) #13
dgozman
https://codereview.chromium.org/2502863002/diff/60001/chrome/browser/devtools/BUILD.gn File chrome/browser/devtools/BUILD.gn (right): https://codereview.chromium.org/2502863002/diff/60001/chrome/browser/devtools/BUILD.gn#newcode63 chrome/browser/devtools/BUILD.gn:63: "//components/ui_devtools", Let's move this dependency to inspect_ui.cc. https://codereview.chromium.org/2502863002/diff/60001/chrome/browser/devtools/devtools_targets_ui.cc File ...
4 years, 1 month ago (2016-11-15 23:47:09 UTC) #16
Sarmad Hashmi
populateTargets removes everything in others-list every time its called, hence the removeAdditionalChildren/removeChildrenExceptAdditional methods. https://codereview.chromium.org/2502863002/diff/60001/chrome/browser/devtools/BUILD.gn File ...
4 years, 1 month ago (2016-11-16 01:42:58 UTC) #17
sadrul
https://codereview.chromium.org/2502863002/diff/80001/components/ui_devtools/devtools_server.cc File components/ui_devtools/devtools_server.cc (right): https://codereview.chromium.org/2502863002/diff/80001/components/ui_devtools/devtools_server.cc#newcode36 components/ui_devtools/devtools_server.cc:36: base::StringToInt(base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( StringToInt is expected to leave |port| unchanged if ...
4 years, 1 month ago (2016-11-17 18:40:57 UTC) #22
Sarmad Hashmi
https://codereview.chromium.org/2502863002/diff/80001/components/ui_devtools/devtools_server.cc File components/ui_devtools/devtools_server.cc (right): https://codereview.chromium.org/2502863002/diff/80001/components/ui_devtools/devtools_server.cc#newcode36 components/ui_devtools/devtools_server.cc:36: base::StringToInt(base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( On 2016/11/17 18:40:57, sadrul wrote: > StringToInt is ...
4 years, 1 month ago (2016-11-21 17:18:24 UTC) #25
sadrul
lgtm https://codereview.chromium.org/2502863002/diff/80001/components/ui_devtools/devtools_server.cc File components/ui_devtools/devtools_server.cc (right): https://codereview.chromium.org/2502863002/diff/80001/components/ui_devtools/devtools_server.cc#newcode36 components/ui_devtools/devtools_server.cc:36: base::StringToInt(base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( On 2016/11/21 17:18:24, Sarmad Hashmi wrote: > ...
4 years, 1 month ago (2016-11-21 18:26:39 UTC) #26
dgozman
lgtm https://codereview.chromium.org/2502863002/diff/100001/chrome/browser/resources/inspect/inspect.js File chrome/browser/resources/inspect/inspect.js (right): https://codereview.chromium.org/2502863002/diff/100001/chrome/browser/resources/inspect/inspect.js#newcode49 chrome/browser/resources/inspect/inspect.js:49: var elements = element.querySelectorAll('[additional=true]'); Let's use class instead ...
4 years, 1 month ago (2016-11-21 19:32:56 UTC) #29
Sarmad Hashmi
https://codereview.chromium.org/2502863002/diff/80001/components/ui_devtools/devtools_server.cc File components/ui_devtools/devtools_server.cc (right): https://codereview.chromium.org/2502863002/diff/80001/components/ui_devtools/devtools_server.cc#newcode36 components/ui_devtools/devtools_server.cc:36: base::StringToInt(base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( On 2016/11/21 18:26:39, sadrul wrote: > On 2016/11/21 ...
4 years, 1 month ago (2016-11-22 04:39:33 UTC) #32
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/2502863002/120001
4 years, 1 month ago (2016-11-22 15:59:45 UTC) #37
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-11-22 16:05:04 UTC) #39
commit-bot: I haz the power
4 years, 1 month ago (2016-11-22 16:08:47 UTC) #41
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/6d1b1cb2d0fedff985eae5bd76fa13561262774e
Cr-Commit-Position: refs/heads/master@{#433878}

Powered by Google App Engine
This is Rietveld 408576698