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

Issue 2526103002: Add live updates for AshDevToolsCSSAgent (Closed)

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

Description

Add live updates for AshDevToolsCSSAgent - This CL adds an AshDevToolsDOMAgentObserver so that other agents, namely CSS and Animation agents can observer when windows are added or removed from the frontend. - Add styleSheetChanged method to CSS protocol and call it from the AshDevToolsCSSAgent whenever the bounds for any object is changed. styleSheetChanged method called with an empty string simply invalidates all styles in the inspector. There is currently no way to invalidate styles on a single node. BUG=648701 Committed: https://crrev.com/05f37a32d257869410cf10227d3761a4a28882c3 Cr-Commit-Position: refs/heads/master@{#435446}

Patch Set 1 #

Total comments: 10

Patch Set 2 : sadruls comments #

Patch Set 3 : sadruls comments #

Patch Set 4 : Override enable/disable methods to attach/detach observer to DOMAgent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -29 lines) Patch
M ash/common/devtools/ash_devtools_css_agent.h View 1 2 3 1 chunk +14 lines, -4 lines 0 comments Download
M ash/common/devtools/ash_devtools_css_agent.cc View 1 2 3 1 chunk +38 lines, -25 lines 0 comments Download
M ash/common/devtools/ash_devtools_dom_agent.h View 1 2 4 chunks +23 lines, -0 lines 0 comments Download
M ash/common/devtools/ash_devtools_dom_agent.cc View 1 2 3 chunks +27 lines, -0 lines 0 comments Download
M components/ui_devtools/protocol.json View 1 2 2 chunks +22 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (10 generated)
Sarmad Hashmi
PTAL sadrul@. Simple but tedious changes...
4 years ago (2016-11-24 02:17:37 UTC) #2
sadrul
Merge https://codereview.chromium.org/2523423002 into the same CL as well. https://codereview.chromium.org/2526103002/diff/1/ash/common/devtools/ash_devtools_css_agent.cc File ash/common/devtools/ash_devtools_css_agent.cc (right): https://codereview.chromium.org/2526103002/diff/1/ash/common/devtools/ash_devtools_css_agent.cc#newcode67 ash/common/devtools/ash_devtools_css_agent.cc:67: // ...
4 years ago (2016-11-25 18:39:23 UTC) #3
Sarmad Hashmi
Merged https://codereview.chromium.org/2523423002 with this. https://codereview.chromium.org/2526103002/diff/1/ash/common/devtools/ash_devtools_css_agent.cc File ash/common/devtools/ash_devtools_css_agent.cc (right): https://codereview.chromium.org/2526103002/diff/1/ash/common/devtools/ash_devtools_css_agent.cc#newcode67 ash/common/devtools/ash_devtools_css_agent.cc:67: // CSS:Backend implementation On 2016/11/25 ...
4 years ago (2016-11-26 01:44:37 UTC) #6
sadrul
https://codereview.chromium.org/2526103002/diff/1/ash/common/devtools/ash_devtools_css_agent.cc File ash/common/devtools/ash_devtools_css_agent.cc (right): https://codereview.chromium.org/2526103002/diff/1/ash/common/devtools/ash_devtools_css_agent.cc#newcode102 ash/common/devtools/ash_devtools_css_agent.cc:102: void AshDevToolsCSSAgent::OnWindowBoundsChanged(WmWindow* window, On 2016/11/26 01:44:37, Sarmad Hashmi wrote: ...
4 years ago (2016-11-29 02:02:58 UTC) #10
Sarmad Hashmi
Also, override enable/disable so that we attach to or detach from the DOMAgent. https://codereview.chromium.org/2526103002/diff/1/ash/common/devtools/ash_devtools_css_agent.cc File ...
4 years ago (2016-11-29 23:16:25 UTC) #11
sadrul
lgtm
4 years ago (2016-11-30 21:42:15 UTC) #12
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/2526103002/60001
4 years ago (2016-11-30 21:43:36 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-11-30 22:26:04 UTC) #17
commit-bot: I haz the power
4 years ago (2016-11-30 22:28:59 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/05f37a32d257869410cf10227d3761a4a28882c3
Cr-Commit-Position: refs/heads/master@{#435446}

Powered by Google App Engine
This is Rietveld 408576698