|
|
Chromium Code Reviews
DescriptionScrollableArea::pixelsPerLine should return viewport pixels in use-zoom-for-dsf mode
BUG=485650
TEST=manual. Use arrow key to scroll on 2x device.
Committed: https://crrev.com/8269081fddb6ba6f281294562073c85a4ce59514
Cr-Commit-Position: refs/heads/master@{#375761}
Patch Set 1 : #Patch Set 2 : #
Total comments: 3
Patch Set 3 : #
Total comments: 2
Patch Set 4 : #
Total comments: 1
Messages
Total messages: 57 (30 generated)
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1672973002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1672973002/1
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1672973002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1672973002/20001
Patchset #1 (id:1) has been deleted
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1672973002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1672973002/40001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...)
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Patchset #2 (id:40001) has been deleted
Patchset #1 (id:20001) has been deleted
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1672973002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1672973002/60001
Patchset #1 (id:60001) has been deleted
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1672973002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1672973002/80001
Description was changed from ========== Arrow Key scroll BUG=485650 Arrow key scroll ========== to ========== ScrollableArea::pixelsPerLine/pixelsSteps should return viewport pixels in use-zoom-for-dsf mode BUG=485650 ==========
oshima@chromium.org changed reviewers: + skobes@chromium.org
oshima@chromium.org changed reviewers: - skobes@chromium.org
Description was changed from ========== ScrollableArea::pixelsPerLine/pixelsSteps should return viewport pixels in use-zoom-for-dsf mode BUG=485650 ========== to ========== ScrollableArea::pixelsPerLine should return viewport pixels in use-zoom-for-dsf mode BUG=485650 ==========
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1672973002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1672973002/100001
Description was changed from ========== ScrollableArea::pixelsPerLine should return viewport pixels in use-zoom-for-dsf mode BUG=485650 ========== to ========== ScrollableArea::pixelsPerLine should return viewport pixels in use-zoom-for-dsf mode BUG=485650 TEST=manual. Use arrow key to scroll on 2x device. ==========
oshima@chromium.org changed reviewers: + skobes@chromium.org
This is not for review yet. Can you look at my question below? https://codereview.chromium.org/1672973002/diff/100001/third_party/WebKit/Sou... File third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp (right): https://codereview.chromium.org/1672973002/diff/100001/third_party/WebKit/Sou... third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp:592: return 1; Looks like this is DIP, but I'm not sure converting to viewport pixels is the right thing here. skobes@, should I keep this as is or should I convert this as well?
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/1672973002/diff/100001/third_party/WebKit/Sou... File third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp (right): https://codereview.chromium.org/1672973002/diff/100001/third_party/WebKit/Sou... third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp:592: return 1; On 2016/02/09 02:05:02, oshima wrote: > Looks like this is DIP, but I'm not sure converting to viewport pixels is the > right thing here. skobes@, should I keep this as is or should I convert this as > well? As far as I know ScrollableArea only deals in DIPs, not physical pixels. What is the reason for this change?
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
PTAL. Based on your answer, I changed to scale in pixelStep to physical pixels when zooming is used to scale the content for device scale factor . https://codereview.chromium.org/1672973002/diff/100001/third_party/WebKit/Sou... File third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp (right): https://codereview.chromium.org/1672973002/diff/100001/third_party/WebKit/Sou... third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp:592: return 1; On 2016/02/09 18:36:06, skobes wrote: > On 2016/02/09 02:05:02, oshima wrote: > > Looks like this is DIP, but I'm not sure converting to viewport pixels is the > > right thing here. skobes@, should I keep this as is or should I convert this > as > > well? > > As far as I know ScrollableArea only deals in DIPs, not physical pixels. What > is the reason for this change? In use-zoom-for-dsf mode, the viewport pixel becomes DIP* device scale factor. The arrow scroll for exmaple becomes 2x slower because it only moves half without these changes.
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1672973002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1672973002/120001
https://codereview.chromium.org/1672973002/diff/120001/third_party/WebKit/Sou... File third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp (right): https://codereview.chromium.org/1672973002/diff/120001/third_party/WebKit/Sou... third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp:67: FloatRect tmpRectInViewport = host->windowToViewport(FloatRect(1, 0, 0, 0)); Can we introduce a clearer API that doesn't use rects for one-dimensional unit conversions? Something like HostWindow::convertDIPToViewportPx(float) -> float?
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Patchset #4 (id:140001) has been deleted
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1672973002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1672973002/160001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by oshima@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1672973002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1672973002/160001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/1672973002/diff/120001/third_party/WebKit/Sou... File third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp (right): https://codereview.chromium.org/1672973002/diff/120001/third_party/WebKit/Sou... third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp:67: FloatRect tmpRectInViewport = host->windowToViewport(FloatRect(1, 0, 0, 0)); On 2016/02/09 23:42:32, skobes wrote: > Can we introduce a clearer API that doesn't use rects for one-dimensional unit > conversions? Something like HostWindow::convertDIPToViewportPx(float) -> float? I was asked to either made this symmetric to viewportToWindow in https://codereview.chromium.org/1603253003/ (or return scale factor, which I didn't want because it's not correct in traditional mode). I changed the method to return scale var in HostWindow only because all user of HostWindow are scalar. Please let me know what you think.
lgtm w/ nit https://codereview.chromium.org/1672973002/diff/160001/third_party/WebKit/Sou... File third_party/WebKit/Source/platform/HostWindow.h (right): https://codereview.chromium.org/1672973002/diff/160001/third_party/WebKit/Sou... third_party/WebKit/Source/platform/HostWindow.h:53: // Converts the scalar value from the window coordinates to the viewport scale. Is it documented anywhere what window and viewport coordinates are? If I understand our chat discussion correctly it is window coordinates == DIPs viewport coordinates == (use-zoom-for-dsf ? physical pixels : DIPs) but this was not at all clear to me before. It would be good for the comment to explain this or link to a doc.
On 2016/02/16 18:03:12, skobes wrote: > lgtm w/ nit > > https://codereview.chromium.org/1672973002/diff/160001/third_party/WebKit/Sou... > File third_party/WebKit/Source/platform/HostWindow.h (right): > > https://codereview.chromium.org/1672973002/diff/160001/third_party/WebKit/Sou... > third_party/WebKit/Source/platform/HostWindow.h:53: // Converts the scalar value > from the window coordinates to the viewport scale. > Is it documented anywhere what window and viewport coordinates are? If I > understand our chat discussion correctly it is > > window coordinates == DIPs > viewport coordinates == (use-zoom-for-dsf ? physical pixels : DIPs) > > but this was not at all clear to me before. It would be good for the comment to > explain this or link to a doc. I was going to update the https://www.chromium.org/developers/design-documents/blink-coordinate-spaces when this is completed (at least for chromeos), but I probably should do this now, with schedule information. I'll work on it this week.
oshima@chromium.org changed reviewers: + pfeldman@chromium.org
pfeldman@ -> owners review
owner lgtm
The CQ bit was checked by oshima@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1672973002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1672973002/160001
Message was sent while issue was closed.
Description was changed from ========== ScrollableArea::pixelsPerLine should return viewport pixels in use-zoom-for-dsf mode BUG=485650 TEST=manual. Use arrow key to scroll on 2x device. ========== to ========== ScrollableArea::pixelsPerLine should return viewport pixels in use-zoom-for-dsf mode BUG=485650 TEST=manual. Use arrow key to scroll on 2x device. ==========
Message was sent while issue was closed.
Committed patchset #4 (id:160001)
Message was sent while issue was closed.
Description was changed from ========== ScrollableArea::pixelsPerLine should return viewport pixels in use-zoom-for-dsf mode BUG=485650 TEST=manual. Use arrow key to scroll on 2x device. ========== to ========== ScrollableArea::pixelsPerLine should return viewport pixels in use-zoom-for-dsf mode BUG=485650 TEST=manual. Use arrow key to scroll on 2x device. Committed: https://crrev.com/8269081fddb6ba6f281294562073c85a4ce59514 Cr-Commit-Position: refs/heads/master@{#375761} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/8269081fddb6ba6f281294562073c85a4ce59514 Cr-Commit-Position: refs/heads/master@{#375761} |
