summaryrefslogtreecommitdiffstats
path: root/content/public/renderer
diff options
context:
space:
mode:
authoroshima <oshima@chromium.org>2015-12-03 20:27:24 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-04 04:28:18 +0000
commite2b3b40f6a3350c5f922d3f06a9ef43673df5641 (patch)
treee47d92a769d3d510a111ce8d92027083a86bca9f /content/public/renderer
parent0d23ed2264a76997edd8a64c32e652916c10b46c (diff)
downloadchromium_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.h8
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 {}