Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(521)

Issue 2695103003: Fix the position of context menu for BrowserPlugins inside OOPIF (Merge to M-57) (Closed)

Created:
3 years, 10 months ago by EhsanK
Modified:
3 years, 10 months ago
Reviewers:
Charlie Reis, alexmos
CC:
chromium-reviews, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/branch-heads/2987
Project:
chromium
Visibility:
Public.

Description

Fix the position of context menu for BrowserPlugins inside OOPIF (Merge to M-57) Currently, we do not consider the displacement of OOPIF view on page when update the geomtery of BrowserPluginGuest. This causes the context menu offset (the displacement between WebContents's) to be wrong. This CL will make the following changes to fix this issue: 1- The reported rect in OnUpdateGeometry() is transformed to owner view's coordinate space. 2- We make sure BrowserPlugin does its own conversions using RenderWidget of the local root containing the BrowserPlugin (as opposed to the RenderView which seems wrong). 3- We make sure BrowserPlugin updates geometry when it is attached. BUG=670433 NOTRY=TRUE NOPRESUBMIT=TRUE Review-Url: https://codereview.chromium.org/2544223002 Cr-Commit-Position: refs/heads/master@{#446448} (cherry picked from commit aeddbee1c18102e37b5dc083c99a337e12afa759) Review-Url: https://codereview.chromium.org/2695103003 Cr-Commit-Position: refs/branch-heads/2987@{#512} Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943} Committed: https://chromium.googlesource.com/chromium/src/+/b4d8f2c9b39a7fc569beede339aff9f2520604cf

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -5 lines) Patch
M chrome/browser/site_per_process_interactive_browsertest.cc View 3 chunks +139 lines, -0 lines 0 comments Download
M chrome/test/data/page_with_embedded_pdf.html View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_guest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
EhsanK
Charlie, PTAL. Thanks!
3 years, 10 months ago (2017-02-14 20:48:32 UTC) #3
EhsanK
On 2017/02/14 20:48:32, EhsanK wrote: > Charlie, > > PTAL. > > Thanks! Compiled and ...
3 years, 10 months ago (2017-02-14 21:03:07 UTC) #4
EhsanK
alexmos@chromium.org: Please review changes in Alex, I believe you are the owner for the test ...
3 years, 10 months ago (2017-02-14 22:15:31 UTC) #6
Charlie Reis
LGTM! Alex is OOO, but I'm an owner of that file as well. (Also, feel ...
3 years, 10 months ago (2017-02-14 23:21:23 UTC) #7
EhsanK
Thanks Charlie! Will do!
3 years, 10 months ago (2017-02-14 23:22:19 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2695103003/1
3 years, 10 months ago (2017-02-14 23:23:07 UTC) #10
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 23:25:40 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/b4d8f2c9b39a7fc569beede339af...

Powered by Google App Engine
This is Rietveld 408576698