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

Issue 2548103002: Make bounds editable through the CSS sidepanel (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

Make bounds editable through the CSS sidepanel This CL adds the feature which allows users to edit bounds (i.e: height, width, x, y) of any window/widget/view in Ash by simply updating them in the CSS sidepanel. - In order to make fields editable, all CSSStyle and CSSProperty objects sent require a range field, which in our case is all 0s because we don't have any stylesheets. - Added setStyleTexts which is the command called by the frontend whenever a CSS property is updated. This is sent to the CSSAgent in the form of text. Example: "height: 1;" - The text received in setStyleTexts is parsed by the CSSAgent, and put into a bounds object. Any bounds properties not included in the |style_text| must default to the original property value for that window, widget or view. - The updated bounds are sent back to the frontend and the bounds for the object are updated on the main thread. - A lot of error checking must happen as well. This CL checks for the following cases: invalid node id, node id valid but not found, unsupported property and invalid value for a given property. BUG=648701 Committed: https://crrev.com/d35614ff6bf165d7aec31b2e9bb45cadecdce21e Cr-Commit-Position: refs/heads/master@{#437072}

Patch Set 1 #

Patch Set 2 : Make bounds editable through the CSS sidepanel #

Total comments: 16

Patch Set 3 : sadruls comments #

Patch Set 4 : sadruls comments #

Total comments: 4

Patch Set 5 : sadruls comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -14 lines) Patch
M ash/common/devtools/ash_devtools_css_agent.h View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M ash/common/devtools/ash_devtools_css_agent.cc View 1 2 3 4 5 chunks +133 lines, -14 lines 0 comments Download
M components/ui_devtools/protocol.json View 4 chunks +80 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 39 (31 generated)
Sarmad Hashmi
PTAL sadrul@!
4 years ago (2016-12-03 01:51:04 UTC) #4
sadrul
https://codereview.chromium.org/2548103002/diff/20001/ash/common/devtools/ash_devtools_css_agent.cc File ash/common/devtools/ash_devtools_css_agent.cc (right): https://codereview.chromium.org/2548103002/diff/20001/ash/common/devtools/ash_devtools_css_agent.cc#newcode29 ash/common/devtools/ash_devtools_css_agent.cc:29: .setEndColumn(0) What do these mean? https://codereview.chromium.org/2548103002/diff/20001/ash/common/devtools/ash_devtools_css_agent.cc#newcode66 ash/common/devtools/ash_devtools_css_agent.cc:66: std::string property ...
4 years ago (2016-12-06 20:56:31 UTC) #11
Sarmad Hashmi
https://codereview.chromium.org/2548103002/diff/20001/ash/common/devtools/ash_devtools_css_agent.cc File ash/common/devtools/ash_devtools_css_agent.cc (right): https://codereview.chromium.org/2548103002/diff/20001/ash/common/devtools/ash_devtools_css_agent.cc#newcode29 ash/common/devtools/ash_devtools_css_agent.cc:29: .setEndColumn(0) On 2016/12/06 20:56:30, sadrul (OOO) wrote: > What ...
4 years ago (2016-12-07 01:23:27 UTC) #14
sadrul
lgtm https://codereview.chromium.org/2548103002/diff/60001/ash/common/devtools/ash_devtools_css_agent.cc File ash/common/devtools/ash_devtools_css_agent.cc (right): https://codereview.chromium.org/2548103002/diff/60001/ash/common/devtools/ash_devtools_css_agent.cc#newcode137 ash/common/devtools/ash_devtools_css_agent.cc:137: gfx::Rect updated_bounds = gfx::Rect(); Don't need the = ...
4 years ago (2016-12-07 17:42:25 UTC) #21
Sarmad Hashmi
https://codereview.chromium.org/2548103002/diff/60001/ash/common/devtools/ash_devtools_css_agent.cc File ash/common/devtools/ash_devtools_css_agent.cc (right): https://codereview.chromium.org/2548103002/diff/60001/ash/common/devtools/ash_devtools_css_agent.cc#newcode137 ash/common/devtools/ash_devtools_css_agent.cc:137: gfx::Rect updated_bounds = gfx::Rect(); On 2016/12/07 17:42:24, sadrul wrote: ...
4 years ago (2016-12-07 20:05:51 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/2548103002/80001
4 years ago (2016-12-07 21:44:35 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-07 21:50:26 UTC) #37
commit-bot: I haz the power
4 years ago (2016-12-07 21:53:07 UTC) #39
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d35614ff6bf165d7aec31b2e9bb45cadecdce21e
Cr-Commit-Position: refs/heads/master@{#437072}

Powered by Google App Engine
This is Rietveld 408576698