diff options
author | oshima <oshima@chromium.org> | 2015-12-03 20:27:24 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-04 04:28:18 +0000 |
commit | e2b3b40f6a3350c5f922d3f06a9ef43673df5641 (patch) | |
tree | e47d92a769d3d510a111ce8d92027083a86bca9f /content/public/renderer | |
parent | 0d23ed2264a76997edd8a64c32e652916c10b46c (diff) | |
download | chromium_src-e2b3b40f6a3350c5f922d3f06a9ef43673df5641.zip chromium_src-e2b3b40f6a3350c5f922d3f06a9ef43673df5641.tar.gz chromium_src-e2b3b40f6a3350c5f922d3f06a9ef43673df5641.tar.bz2 |
Use the window coordinate for the autofill bounds.
Viewport and Window coordinates will differ when Zoom is used to implement DSF behavior.
BUG=485650
TEST=RenderViewImplScaleFactorTest.*, plus manually tested.
Review URL: https://codereview.chromium.org/1455143004
Cr-Commit-Position: refs/heads/master@{#363134}
Diffstat (limited to 'content/public/renderer')
-rw-r--r-- | content/public/renderer/render_view.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/content/public/renderer/render_view.h b/content/public/renderer/render_view.h index dcf1de4..1f0a235 100644 --- a/content/public/renderer/render_view.h +++ b/content/public/renderer/render_view.h @@ -24,6 +24,7 @@ class WebString; class WebURLRequest; class WebView; struct WebContextMenuData; +struct WebRect; } namespace gfx { @@ -123,6 +124,13 @@ class CONTENT_EXPORT RenderView : public IPC::Sender { bool animate) = 0; #endif + // Converts the |rect| from Blink's Viewport coordinates to the + // coordinates in the native window used to display the content, in + // DIP. They're identical in tradional world, but will differ when + // use-zoom-for-dsf feature is eanbled, and Viewport coordinates + // becomes DSF times larger than window coordinates. + virtual void convertViewportToWindow(blink::WebRect* rect) = 0; + protected: ~RenderView() override {} |