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

Issue 2486543003: Add CSS agent for various window/widget/view attributes in devtools (Closed)

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

Description

Add CSS agent for various window/widget/view attributes in devtools This CL adds a few things: - Three maps in DOM agent which map from the node Id to a window, widget or view. - Public methods to query these three maps. - CSS Agent which receives the getMatchedStylesForNode command whenever a node is selected in the inspector. The CSS Agent queries which object the nodeId refers to using the passed in DOM agent and builds the CSS object for it. For now, the only attributes this will show is bounds height and width. - protocol.json modified for the new CSS Agent BUG=648701 Committed: https://crrev.com/614f26621199fe032a65224b010f0d74f6969835 Cr-Commit-Position: refs/heads/master@{#432761}

Patch Set 1 #

Patch Set 2 : Add CSS agent for various window/widget/view attributes in devtools #

Patch Set 3 : Add CSS agent for various window/widget/view attributes in devtools #

Patch Set 4 : rebase #

Total comments: 2

Patch Set 5 : Add CSS agent for various window/widget/view attributes in devtools #

Total comments: 8

Patch Set 6 : sadruls comments #

Patch Set 7 : sadruls comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -21 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A ash/common/devtools/ash_devtools_css_agent.h View 1 1 chunk +39 lines, -0 lines 0 comments Download
A ash/common/devtools/ash_devtools_css_agent.cc View 1 2 3 4 5 1 chunk +93 lines, -0 lines 0 comments Download
M ash/common/devtools/ash_devtools_dom_agent.h View 1 2 3 4 3 chunks +28 lines, -0 lines 0 comments Download
M ash/common/devtools/ash_devtools_dom_agent.cc View 1 2 3 4 6 chunks +101 lines, -21 lines 0 comments Download
M ash/common/wm_shell.cc View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M components/ui_devtools/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M components/ui_devtools/protocol.json View 1 2 3 4 5 1 chunk +72 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 40 (27 generated)
Sarmad Hashmi
PTAL sadrul! If you think this is too large, please do let me know and ...
4 years, 1 month ago (2016-11-08 17:37:54 UTC) #6
sadrul
https://codereview.chromium.org/2486543003/diff/60001/ash/common/devtools/ash_devtools_dom_agent.cc File ash/common/devtools/ash_devtools_dom_agent.cc (right): https://codereview.chromium.org/2486543003/diff/60001/ash/common/devtools/ash_devtools_dom_agent.cc#newcode207 ash/common/devtools/ash_devtools_dom_agent.cc:207: window_to_node_id_map_.erase(it); Remove node_id from node_id_to_window_map_? Should this also go ...
4 years, 1 month ago (2016-11-09 16:47:46 UTC) #15
Sarmad Hashmi
https://codereview.chromium.org/2486543003/diff/60001/ash/common/devtools/ash_devtools_dom_agent.cc File ash/common/devtools/ash_devtools_dom_agent.cc (right): https://codereview.chromium.org/2486543003/diff/60001/ash/common/devtools/ash_devtools_dom_agent.cc#newcode207 ash/common/devtools/ash_devtools_dom_agent.cc:207: window_to_node_id_map_.erase(it); On 2016/11/09 16:47:46, sadrul wrote: > Remove node_id ...
4 years, 1 month ago (2016-11-09 20:51:38 UTC) #18
sadrul
lgtm https://codereview.chromium.org/2486543003/diff/80001/ash/common/devtools/ash_devtools_css_agent.cc File ash/common/devtools/ash_devtools_css_agent.cc (right): https://codereview.chromium.org/2486543003/diff/80001/ash/common/devtools/ash_devtools_css_agent.cc#newcode34 ash/common/devtools/ash_devtools_css_agent.cc:34: std::unique_ptr<Array<CSS::CSSProperty>> cssProperties = You can use auto here ...
4 years, 1 month ago (2016-11-10 20:34:15 UTC) #21
Sarmad Hashmi
Could you take a last look for the shorthandEntry stuff? https://codereview.chromium.org/2486543003/diff/80001/ash/common/devtools/ash_devtools_css_agent.cc File ash/common/devtools/ash_devtools_css_agent.cc (right): https://codereview.chromium.org/2486543003/diff/80001/ash/common/devtools/ash_devtools_css_agent.cc#newcode34 ...
4 years, 1 month ago (2016-11-15 17:02:02 UTC) #22
sadrul
still lgtm
4 years, 1 month ago (2016-11-16 00:17:27 UTC) #27
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/2486543003/120001
4 years, 1 month ago (2016-11-16 20:56:51 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/69126)
4 years, 1 month ago (2016-11-16 21:39:02 UTC) #32
Sarmad Hashmi
+sky for ash OWNERS review
4 years, 1 month ago (2016-11-16 21:45:17 UTC) #34
sky
LGTM
4 years, 1 month ago (2016-11-17 00:17:21 UTC) #35
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/2486543003/120001
4 years, 1 month ago (2016-11-17 04:00:22 UTC) #37
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-11-17 05:25:29 UTC) #38
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 05:29:26 UTC) #40
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/614f26621199fe032a65224b010f0d74f6969835
Cr-Commit-Position: refs/heads/master@{#432761}

Powered by Google App Engine
This is Rietveld 408576698