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

Issue 23187005: [DevTools] Use device metrics emulation implemented in content. (Closed)

Created:
7 years, 4 months ago by dgozman
Modified:
7 years, 2 months ago
CC:
blink-reviews, jamesr, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, eae+blinkwatch, yurys+blink_chromium.org, lushnikov+blink_chromium.org, abarth-chromium, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org, aelias_OOO_until_Jul13
Visibility:
Public.

Description

[DevTools] Use device metrics emulation implemented in content. Device emulation is now split: while metrics emulation is simply forwarded to embedder, a number of internal blink settings are set to emulate device behavior. These settings include overlay scrollbars, viewport support, text autosizing and page scaling. To support fit-to-window mode, WebView now sets a scaling transform to the root graphics layer. Also, device scale factor is overriden to produce sharp image even when emulating. This also removes old device metrics emulation support through blink code. See also Chromium-side patch: https://codereview.chromium.org/23364004/ BUG=288959 R=aelias@chromium.org, pfeldman@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159110

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 28

Patch Set 4 : Review fixes. #

Patch Set 5 : More cleanup #

Patch Set 6 : Moved API methods #

Patch Set 7 : typo #

Patch Set 8 : Moved input events adjustments to Blink #

Total comments: 6

Patch Set 9 : Root layer clip added #

Patch Set 10 : Reupload #

Total comments: 14

Patch Set 11 : Fixed review comments #

Patch Set 12 : #

Patch Set 13 : Inspector layout tests fixed #

Patch Set 14 : Split test into 2. Marked some tests as NeedsRebaseline #

Patch Set 15 : Rebase #

Patch Set 16 : Reduced reloads in test from 3 to 2 #

Patch Set 17 : Reduced reloads in test from 3 to 2 #

Patch Set 18 : Disabled test on win because of no overlay scrollbars #

Patch Set 19 : Another NeedsRebaseline #

Patch Set 20 : Rebase #

Patch Set 21 : Another rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -574 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +10 lines, -0 lines 0 comments Download
D LayoutTests/inspector/styles/device-metrics-fit-window.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -125 lines 0 comments Download
D LayoutTests/inspector/styles/device-metrics-fit-window-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -6 lines 0 comments Download
A + LayoutTests/inspector/styles/override-and-disable.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +17 lines, -60 lines 0 comments Download
A LayoutTests/inspector/styles/override-and-disable-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +33 lines, -0 lines 0 comments Download
M LayoutTests/inspector/styles/override-screen-size.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +30 lines, -56 lines 0 comments Download
M LayoutTests/inspector/styles/override-screen-size-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +3 lines, -5 lines 0 comments Download
M Source/core/css/MediaQueryEvaluator.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -6 lines 0 comments Download
M Source/core/inspector/InspectorClient.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/inspector/InspectorInstrumentation.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +0 lines, -12 lines 0 comments Download
M Source/core/inspector/InspectorPageAgent.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/inspector/InspectorPageAgent.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +15 lines, -45 lines 0 comments Download
M Source/core/page/DOMWindow.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +2 lines, -6 lines 0 comments Download
M Source/core/page/FrameView.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/page/FrameView.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +14 lines, -0 lines 0 comments Download
M Source/core/page/Screen.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -6 lines 0 comments Download
M Source/core/platform/ScrollView.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderLayerCompositor.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +7 lines, -3 lines 0 comments Download
M Source/core/rendering/TextAutosizer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -4 lines 0 comments Download
M Source/devtools/front_end/OverridesSupport.js View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +8 lines, -1 line 0 comments Download
M Source/web/InspectorClientImpl.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M Source/web/InspectorClientImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -6 lines 0 comments Download
M Source/web/WebDevToolsAgentImpl.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +2 lines, -5 lines 0 comments Download
M Source/web/WebDevToolsAgentImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +17 lines, -198 lines 0 comments Download
M Source/web/WebDevToolsAgentPrivate.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -7 lines 0 comments Download
M Source/web/WebFrameImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -0 lines 0 comments Download
M Source/web/WebFrameImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +10 lines, -3 lines 0 comments Download
M Source/web/WebInputEventConversion.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 6 chunks +7 lines, -7 lines 0 comments Download
M Source/web/WebViewImpl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -0 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 7 chunks +36 lines, -9 lines 0 comments Download
M public/web/WebViewClient.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
dgozman
Pavel, take a look please.
7 years, 3 months ago (2013-09-19 12:27:35 UTC) #1
pfeldman
https://codereview.chromium.org/23187005/diff/15001/Source/core/inspector/InspectorPageAgent.cpp File Source/core/inspector/InspectorPageAgent.cpp (right): https://codereview.chromium.org/23187005/diff/15001/Source/core/inspector/InspectorPageAgent.cpp#newcode970 Source/core/inspector/InspectorPageAgent.cpp:970: // FIXME: cleanup all references to page agent overrides. ...
7 years, 3 months ago (2013-09-19 12:46:05 UTC) #2
apavlov
https://codereview.chromium.org/23187005/diff/15001/Source/web/WebDevToolsAgentImpl.cpp File Source/web/WebDevToolsAgentImpl.cpp (right): https://codereview.chromium.org/23187005/diff/15001/Source/web/WebDevToolsAgentImpl.cpp#newcode510 Source/web/WebDevToolsAgentImpl.cpp:510: m_webViewImpl->setPageScaleFactorLimits(1.f, 1.f); Is the float literal notation really required ...
7 years, 3 months ago (2013-09-19 12:47:57 UTC) #3
dgozman
PTAL https://codereview.chromium.org/23187005/diff/15001/Source/core/platform/ScrollbarThemeMacCommon.mm File Source/core/platform/ScrollbarThemeMacCommon.mm (right): https://codereview.chromium.org/23187005/diff/15001/Source/core/platform/ScrollbarThemeMacCommon.mm#newcode132 Source/core/platform/ScrollbarThemeMacCommon.mm:132: if (RuntimeEnabledFeatures::overlayScrollbarsEnabled()) { On 2013/09/19 12:46:05, pfeldman wrote: ...
7 years, 3 months ago (2013-09-19 13:59:37 UTC) #4
dgozman
Please take another look. Moved input events scaling from Content to Blink.
7 years, 2 months ago (2013-09-27 19:10:11 UTC) #5
pfeldman
lgtm with a naming nit. https://codereview.chromium.org/23187005/diff/73001/Source/core/page/FrameView.h File Source/core/page/FrameView.h (right): https://codereview.chromium.org/23187005/diff/73001/Source/core/page/FrameView.h#newcode158 Source/core/page/FrameView.h:158: virtual float inputEventsScaleFactor() const ...
7 years, 2 months ago (2013-09-30 12:42:38 UTC) #6
aelias_OOO_until_Jul13
Sorry, could you reupload your last patch? Rietveld is refusing to show the latest changes.
7 years, 2 months ago (2013-10-01 07:14:15 UTC) #7
dgozman
On 2013/10/01 07:14:15, aelias wrote: > Sorry, could you reupload your last patch? Rietveld is ...
7 years, 2 months ago (2013-10-01 07:20:09 UTC) #8
aelias_OOO_until_Jul13
lgtm modulo comments below. https://codereview.chromium.org/23187005/diff/87001/Source/core/page/FrameView.cpp File Source/core/page/FrameView.cpp (right): https://codereview.chromium.org/23187005/diff/87001/Source/core/page/FrameView.cpp#newcode2564 Source/core/page/FrameView.cpp:2564: updateScrollbars(scrollOffset()); Are you sure you ...
7 years, 2 months ago (2013-10-01 08:08:51 UTC) #9
aelias_OOO_until_Jul13
https://codereview.chromium.org/23187005/diff/87001/public/web/WebView.h File public/web/WebView.h (right): https://codereview.chromium.org/23187005/diff/87001/public/web/WebView.h#newcode403 public/web/WebView.h:403: virtual void setDeviceEmulationParameters( On 2013/10/01 08:08:51, aelias wrote: > ...
7 years, 2 months ago (2013-10-01 08:24:22 UTC) #10
dgozman
https://codereview.chromium.org/23187005/diff/73001/Source/core/page/FrameView.h File Source/core/page/FrameView.h (right): https://codereview.chromium.org/23187005/diff/73001/Source/core/page/FrameView.h#newcode158 Source/core/page/FrameView.h:158: virtual float inputEventsScaleFactor() const OVERRIDE { return visibleContentScaleFactor() * ...
7 years, 2 months ago (2013-10-01 15:26:34 UTC) #11
dgozman
Pavel, please take a look. I've changed layout tests and moved reload to frontend.
7 years, 2 months ago (2013-10-03 15:32:28 UTC) #12
pfeldman
Changes to test look good!
7 years, 2 months ago (2013-10-03 15:38:45 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/23187005/145001
7 years, 2 months ago (2013-10-08 06:33:20 UTC) #14
commit-bot: I haz the power
Retried try job too often on blink_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=blink_presubmit&number=8319
7 years, 2 months ago (2013-10-08 06:50:48 UTC) #15
dgozman
7 years, 2 months ago (2013-10-08 09:30:34 UTC) #16
Message was sent while issue was closed.
Committed patchset #21 manually as r159110 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698