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

Issue 351303003: [DevTools] Switch from DIP to CSS pixels in device mode. (Closed)

Created:
6 years, 6 months ago by dgozman
Modified:
6 years, 5 months ago
Reviewers:
lushnikov, pfeldman
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, malch+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, sergeyv+blink_chromium.org, aandrey+blink_chromium.org
Project:
blink
Visibility:
Public.

Description

[DevTools] Switch from DIP to CSS pixels in device mode. Rulers, grid and media queries are now rendered in CSS pixels. Additionally, a content size rectangle is drawn for visual feedback. BUG=none Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177098

Patch Set 1 #

Total comments: 9

Patch Set 2 : Fixed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -19 lines) Patch
M Source/core/inspector/InspectorController.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/inspector/InspectorController.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorPageAgent.h View 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorPageAgent.cpp View 4 chunks +26 lines, -0 lines 0 comments Download
M Source/devtools/front_end/MediaQueryInspector.js View 4 chunks +8 lines, -5 lines 0 comments Download
M Source/devtools/front_end/ResponsiveDesignView.js View 13 chunks +90 lines, -13 lines 0 comments Download
M Source/devtools/front_end/responsiveDesignView.css View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/devtools/front_end/sdk/ResourceTreeModel.js View 2 chunks +10 lines, -1 line 0 comments Download
M Source/devtools/protocol.json View 1 2 chunks +21 lines, -0 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
dgozman
Could you please take a look?
6 years, 6 months ago (2014-06-26 16:59:12 UTC) #1
lushnikov
https://codereview.chromium.org/351303003/diff/1/Source/devtools/front_end/MediaQueryInspector.js File Source/devtools/front_end/MediaQueryInspector.js (right): https://codereview.chromium.org/351303003/diff/1/Source/devtools/front_end/MediaQueryInspector.js#newcode366 Source/devtools/front_end/MediaQueryInspector.js:366: widthPixelValue = (model.maxWidthExpression().computedLength() - this._offset) / zoomFactor + this._translateZero; ...
6 years, 6 months ago (2014-06-26 20:21:47 UTC) #2
dgozman
PTAL https://codereview.chromium.org/351303003/diff/1/Source/devtools/front_end/MediaQueryInspector.js File Source/devtools/front_end/MediaQueryInspector.js (right): https://codereview.chromium.org/351303003/diff/1/Source/devtools/front_end/MediaQueryInspector.js#newcode366 Source/devtools/front_end/MediaQueryInspector.js:366: widthPixelValue = (model.maxWidthExpression().computedLength() - this._offset) / zoomFactor + ...
6 years, 5 months ago (2014-06-27 11:07:01 UTC) #3
lushnikov
lgtm
6 years, 5 months ago (2014-06-27 11:37:20 UTC) #4
pfeldman
lgtm
6 years, 5 months ago (2014-06-27 11:39:30 UTC) #5
dgozman
The CQ bit was checked by dgozman@chromium.org
6 years, 5 months ago (2014-06-27 11:40:54 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/351303003/20001
6 years, 5 months ago (2014-06-27 11:41:11 UTC) #7
commit-bot: I haz the power
6 years, 5 months ago (2014-06-27 12:53:49 UTC) #8
Message was sent while issue was closed.
Change committed as 177098

Powered by Google App Engine
This is Rietveld 408576698