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

Issue 2466073003: Push updates to inspector when windows are added, destroyed or reorganized (Closed)

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

Description

Push updates to inspector when windows are added, destroyed or reorganized This CL pushes updates to the connected DevTools inspector whenever windows are updated in any way. We add the DOM agent as an observer to the root window and simply listen for any window tree changes. Depending on whether there is a new parent or an old parent for the target window, we push updates for removing and adding the window DOM node. This adds two events to the protocol: childNodeInserted and childNodeRemoved. BUG=648701 Committed: https://crrev.com/584115bcc2a6724daf09482a199ddb179f1a9cc2 Cr-Commit-Position: refs/heads/master@{#430102}

Patch Set 1 #

Patch Set 2 : Push updates to inspector when windows are added, destroyed or reorganized #

Patch Set 3 : Push updates to inspector when windows are added, destroyed or reorganized #

Patch Set 4 : Push updates to inspector when windows are added, destroyed or reorganized #

Total comments: 14

Patch Set 5 : sadruls comments, implement different methods of observer #

Patch Set 6 : use new devtools style #

Total comments: 4

Patch Set 7 : Document previous sibling id #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -21 lines) Patch
M ash/common/devtools/ash_devtools_dom_agent.h View 1 2 3 4 5 2 chunks +19 lines, -2 lines 0 comments Download
M ash/common/devtools/ash_devtools_dom_agent.cc View 1 2 3 4 5 4 chunks +91 lines, -19 lines 0 comments Download
M ash/common/devtools/ash_devtools_unittest.cc 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 6 1 chunk +40 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 34 (26 generated)
Sarmad Hashmi
Will add tests in follow up CL.
4 years, 1 month ago (2016-11-01 21:51:12 UTC) #6
sadrul
https://codereview.chromium.org/2466073003/diff/60001/ash/common/devtools/ash_devtools_dom_agent.cc File ash/common/devtools/ash_devtools_dom_agent.cc (right): https://codereview.chromium.org/2466073003/diff/60001/ash/common/devtools/ash_devtools_dom_agent.cc#newcode95 ash/common/devtools/ash_devtools_dom_agent.cc:95: void AshDevToolsDOMAgent::OnWindowTreeChanging(WmWindow* window, I don't think this gets called ...
4 years, 1 month ago (2016-11-02 02:04:37 UTC) #13
Sarmad Hashmi
Kind of a big change since the last patch because sadrul@ brought OnWindowStackingChanged to my ...
4 years, 1 month ago (2016-11-03 01:42:18 UTC) #15
sadrul
lgtm https://codereview.chromium.org/2466073003/diff/100001/ash/common/devtools/ash_devtools_unittest.cc File ash/common/devtools/ash_devtools_unittest.cc (right): https://codereview.chromium.org/2466073003/diff/100001/ash/common/devtools/ash_devtools_unittest.cc#newcode150 ash/common/devtools/ash_devtools_unittest.cc:150: dom_agent()->disable(); When |widget| is destroyed, it should clean ...
4 years, 1 month ago (2016-11-04 15:39:17 UTC) #23
Sarmad Hashmi
https://codereview.chromium.org/2466073003/diff/100001/ash/common/devtools/ash_devtools_unittest.cc File ash/common/devtools/ash_devtools_unittest.cc (right): https://codereview.chromium.org/2466073003/diff/100001/ash/common/devtools/ash_devtools_unittest.cc#newcode150 ash/common/devtools/ash_devtools_unittest.cc:150: dom_agent()->disable(); On 2016/11/04 15:39:17, sadrul wrote: > When |widget| ...
4 years, 1 month ago (2016-11-04 16:03:50 UTC) #25
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/2466073003/120001
4 years, 1 month ago (2016-11-04 23:30:58 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-11-05 00:50:27 UTC) #32
commit-bot: I haz the power
4 years, 1 month ago (2016-11-05 00:53:22 UTC) #34
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/584115bcc2a6724daf09482a199ddb179f1a9cc2
Cr-Commit-Position: refs/heads/master@{#430102}

Powered by Google App Engine
This is Rietveld 408576698