summaryrefslogtreecommitdiffstats
path: root/extensions/renderer
diff options
context:
space:
mode:
authoroshima <oshima@chromium.org>2016-01-20 23:11:49 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-21 07:12:54 +0000
commit778499c7d9528f64ff7b4837441f0a86670b13ce (patch)
treec63c7f77e9e84f8d4f9aebd48a0e067e115a569b /extensions/renderer
parentc9a634c524cd130d78a153193c87adde0f1407e7 (diff)
downloadchromium_src-778499c7d9528f64ff7b4837441f0a86670b13ce.zip
chromium_src-778499c7d9528f64ff7b4837441f0a86670b13ce.tar.gz
chromium_src-778499c7d9528f64ff7b4837441f0a86670b13ce.tar.bz2
[UseZoomForDSF] Convert draggable region from Viewport to Window coordinates
These coordinates are currently the same but will differ when use-zoom-for-dsf is enabled. (See bug for discussion and design doc) BUG=485650 Review URL: https://codereview.chromium.org/1602203007 Cr-Commit-Position: refs/heads/master@{#370643}
Diffstat (limited to 'extensions/renderer')
-rw-r--r--extensions/renderer/extension_helper.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/renderer/extension_helper.cc b/extensions/renderer/extension_helper.cc
index 8eb0cc8..728ea13 100644
--- a/extensions/renderer/extension_helper.cc
+++ b/extensions/renderer/extension_helper.cc
@@ -47,6 +47,7 @@ void ExtensionHelper::DraggableRegionsChanged(blink::WebFrame* frame) {
std::vector<DraggableRegion> regions;
for (size_t i = 0; i < webregions.size(); ++i) {
DraggableRegion region;
+ render_view()->convertViewportToWindow(&webregions[i].bounds);
region.bounds = webregions[i].bounds;
region.draggable = webregions[i].draggable;
regions.push_back(region);