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

Issue 2583873002: Correctly update the popup window position (Closed)

Created:
4 years ago by oshima
Modified:
3 years, 11 months ago
Reviewers:
Bret, sadrul
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, kalyank, danakj+watch_chromium.org, James Su
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Correctly update the popup window position It was updating the child window instead. This CL hooks up the bounds change to the desktop widget correctly. BUG=612270 TEST=fixed test harness to do the correct check. Review-Url: https://codereview.chromium.org/2583873002 Cr-Commit-Position: refs/heads/master@{#442741} Committed: https://chromium.googlesource.com/chromium/src/+/0aafa24f1ad6b4331bdb65db12ffc1842ba69b1d

Patch Set 1 : . #

Patch Set 2 : . #

Total comments: 1

Patch Set 3 : use content_window_ #

Total comments: 3

Patch Set 4 : check if screen position client is null #

Patch Set 5 : rebase #

Patch Set 6 : test added #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -26 lines) Patch
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 2 chunks +10 lines, -15 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 4 7 chunks +25 lines, -7 lines 0 comments Download
M ui/aura/window.cc View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_screen_position_client.cc View 1 2 1 chunk +9 lines, -2 lines 0 comments Download

Messages

Total messages: 55 (39 generated)
oshima
4 years ago (2016-12-16 18:08:07 UTC) #17
sadrul
https://codereview.chromium.org/2583873002/diff/60001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/2583873002/diff/60001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode598 content/browser/renderer_host/render_widget_host_view_aura.cc:598: return window_->GetToplevelWindow(); On non-chromeos, I assume this returns the ...
4 years ago (2016-12-16 20:15:45 UTC) #20
oshima
On 2016/12/16 20:15:45, sadrul wrote: > https://codereview.chromium.org/2583873002/diff/60001/content/browser/renderer_host/render_widget_host_view_aura.cc > File content/browser/renderer_host/render_widget_host_view_aura.cc (right): > > https://codereview.chromium.org/2583873002/diff/60001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode598 > ...
4 years ago (2016-12-16 22:48:01 UTC) #21
oshima
uploaded new patch that always uses toplevel window. please let me know what you think. ...
4 years ago (2016-12-17 15:59:42 UTC) #22
sadrul
https://codereview.chromium.org/2583873002/diff/80001/ui/views/widget/desktop_aura/desktop_screen_position_client.cc File ui/views/widget/desktop_aura/desktop_screen_position_client.cc (right): https://codereview.chromium.org/2583873002/diff/80001/ui/views/widget/desktop_aura/desktop_screen_position_client.cc#newcode48 ui/views/widget/desktop_aura/desktop_screen_position_client.cc:48: return; It looks like DesktopNativeWidgetAura::OnBoundsChanged() does not do anything. ...
4 years ago (2016-12-19 18:08:56 UTC) #27
oshima
https://codereview.chromium.org/2583873002/diff/80001/ui/views/widget/desktop_aura/desktop_screen_position_client.cc File ui/views/widget/desktop_aura/desktop_screen_position_client.cc (right): https://codereview.chromium.org/2583873002/diff/80001/ui/views/widget/desktop_aura/desktop_screen_position_client.cc#newcode48 ui/views/widget/desktop_aura/desktop_screen_position_client.cc:48: return; On 2016/12/19 18:08:56, sadrul wrote: > It looks ...
4 years ago (2016-12-20 23:55:32 UTC) #28
Bret
lgtm https://codereview.chromium.org/2583873002/diff/80001/ui/views/widget/desktop_aura/desktop_screen_position_client.cc File ui/views/widget/desktop_aura/desktop_screen_position_client.cc (right): https://codereview.chromium.org/2583873002/diff/80001/ui/views/widget/desktop_aura/desktop_screen_position_client.cc#newcode51 ui/views/widget/desktop_aura/desktop_screen_position_client.cc:51: // DesktopNativeWidgetAura. nit: since you're explicitly handling the ...
4 years ago (2016-12-21 00:04:25 UTC) #29
sadrul
On 2016/12/20 23:55:32, oshima (OOO til Jan 5th) wrote: > https://codereview.chromium.org/2583873002/diff/80001/ui/views/widget/desktop_aura/desktop_screen_position_client.cc > File ui/views/widget/desktop_aura/desktop_screen_position_client.cc (right): ...
4 years ago (2016-12-21 02:00:13 UTC) #30
oshima
On 2016/12/21 02:00:13, sadrul wrote: > On 2016/12/20 23:55:32, oshima (OOO til Jan 5th) wrote: ...
4 years ago (2016-12-21 21:47:40 UTC) #31
sadrul
On 2016/12/21 21:47:40, oshima (OOO til Jan 5th) wrote: > On 2016/12/21 02:00:13, sadrul wrote: ...
3 years, 11 months ago (2017-01-03 16:33:04 UTC) #36
oshima
On 2017/01/03 16:33:04, sadrul wrote: > On 2016/12/21 21:47:40, oshima (OOO til Jan 5th) wrote: ...
3 years, 11 months ago (2017-01-05 20:30:22 UTC) #41
sadrul
OK. I was going to suggest doing the work in a LayoutManager, but I am ...
3 years, 11 months ago (2017-01-09 15:58:39 UTC) #47
oshima
On 2017/01/09 15:58:39, sadrul wrote: > OK. I was going to suggest doing the work ...
3 years, 11 months ago (2017-01-10 23:03:35 UTC) #48
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/2583873002/160001
3 years, 11 months ago (2017-01-10 23:04:26 UTC) #51
commit-bot: I haz the power
Committed patchset #6 (id:160001) as https://chromium.googlesource.com/chromium/src/+/0aafa24f1ad6b4331bdb65db12ffc1842ba69b1d
3 years, 11 months ago (2017-01-11 00:26:16 UTC) #54
malaykeshav
3 years, 9 months ago (2017-03-07 00:42:25 UTC) #55
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:160001) has been created in
https://codereview.chromium.org/2728293004/ by malaykeshav@chromium.org.

The reason for reverting is: Breaking M57
crbug/698627.

Powered by Google App Engine
This is Rietveld 408576698