diff options
author | oshima <oshima@chromium.org> | 2016-01-12 11:40:15 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-12 19:41:47 +0000 |
commit | c059194cf382b17fc5ef02b688b5ac7013f855b3 (patch) | |
tree | d99630a725cb66ccedd6f6b2d90b31bd19fc1ba7 /content/public/renderer | |
parent | 012c3f9ac6c5568c80a7929eed4ae34a84f8135a (diff) | |
download | chromium_src-c059194cf382b17fc5ef02b688b5ac7013f855b3.zip chromium_src-c059194cf382b17fc5ef02b688b5ac7013f855b3.tar.gz chromium_src-c059194cf382b17fc5ef02b688b5ac7013f855b3.tar.bz2 |
Add popup layout tests with device scale factor
This also contains following fix in layout test to enable these tests.
* allow --force-device-scale-factor in LayoutTest
* scale popup position when generating result image.
* fix the backing size in RenderWidget::SetWindowRectSynchronously
* data-suggestion-picker test is temporarily marked as failure as
bots generate slightly different images. I'll investigate it in a separate CL.
* moved and enabled popup tests in fast/hidpi/static
* Added VirtualTestSuite for dsf=2, dsf=1.5 and dsf=2 with zooming option.
BUG=567837
Review URL: https://codereview.chromium.org/1571833002
Cr-Commit-Position: refs/heads/master@{#368951}
Diffstat (limited to 'content/public/renderer')
-rw-r--r-- | content/public/renderer/render_view.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/public/renderer/render_view.h b/content/public/renderer/render_view.h index baa051f..75e986a 100644 --- a/content/public/renderer/render_view.h +++ b/content/public/renderer/render_view.h @@ -137,6 +137,9 @@ class CONTENT_EXPORT RenderView : public IPC::Sender { virtual gfx::RectF ElementBoundsInWindow(const blink::WebElement& element) = 0; + // Returns the device scale factor for unit tests. + virtual float GetDeviceScaleFactorForTest() const = 0; + protected: ~RenderView() override {} |