DescriptionFix the coordinates for touch selection.
* The selection bounds attached to CompositorFrameMetaData is in viewport coordinates. This needs to be converted to DIP for browser somewhere. For now, this CL convert it in browser side rather than renderer side because the code that computes the selection bounds is in cc/ rather than content/renderer. Consider move that part ot content/renderer and move this to there instead.
BUG=585043
TEST=TouchSelectionControllerClientAuraScaleFactorTest*. manual.
TBR=oshima@chromium.org
Review URL: https://codereview.chromium.org/1740193002
Cr-Commit-Position: refs/heads/master@{#378500}
(cherry picked from commit 93b827d99389ad0ce61362695ad641b14ca33180)
Pepper uses DIP, so RWFullscreenPepper should always use SetDeviceScaleFctor.
RenderWidget::OnDeviceScaleFactorChanegd calls
setPaintedDeviceScaleFactor, which does not work for pepper.
I apparently forgot to handle this in https://codereview.chromium.org/1609193002.
BUG=589869, 485650
Review URL: https://codereview.chromium.org/1745523002
Cr-Commit-Position: refs/heads/master@{#378153}
(cherry picked from commit 131114a6dd70fabb949d7f05f3c9759bcf701281)
Committed: https://chromium.googlesource.com/chromium/src/+/e16a6fa53ebd538abd802b189f1063bad267b575
Patch Set 1 #
Messages
Total messages: 2 (1 generated)
|