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

Issue 871813003: Fix popup window repositioning in Desktop Chrome. (Closed)

Created:
5 years, 11 months ago by ananta
Modified:
5 years, 11 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, tdanderson+views_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix popup window repositioning in Desktop Chrome. We need to use Widget::SetBounds in place of Widget::SetSize as the position of the window may have changed. BUG=374705 TEST=Covered by views_unittest DesktopAuraWidgetTest.TopLevelOwnedPopupRepositionTest Committed: https://crrev.com/0393576a8c18cb92aecdc78e417aee3df4ec5d94 Cr-Commit-Position: refs/heads/master@{#313146}

Patch Set 1 #

Patch Set 2 : Added test DesktopAuraWidgetTest.TopLevelOwnedPopupRepositionTest #

Total comments: 6

Patch Set 3 : Address review comments #

Patch Set 4 : Add support for synchronous mode in the DesktopAuraTopLevelWindowTest class. This would #

Patch Set 5 : Fix state clean up in the test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -4 lines) Patch
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 1 chunk +4 lines, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc View 1 2 3 4 7 chunks +44 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (2 generated)
ananta
5 years, 11 months ago (2015-01-23 02:40:05 UTC) #2
sky
https://codereview.chromium.org/871813003/diff/20001/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc File ui/views/widget/desktop_aura/desktop_native_widget_aura.cc (right): https://codereview.chromium.org/871813003/diff/20001/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc#newcode148 ui/views/widget/desktop_aura/desktop_native_widget_aura.cc:148: // The position of the window may have changed. ...
5 years, 11 months ago (2015-01-23 17:14:57 UTC) #3
sky
Ok, I get why you need this. https://codereview.chromium.org/871813003/diff/20001/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc File ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc (right): https://codereview.chromium.org/871813003/diff/20001/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc#newcode412 ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc:412: EXPECT_EQ(popup_window.top_level_widget()->GetWindowBoundsInScreen(), new_pos ...
5 years, 11 months ago (2015-01-23 17:38:51 UTC) #4
ananta
https://codereview.chromium.org/871813003/diff/20001/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc File ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc (right): https://codereview.chromium.org/871813003/diff/20001/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc#newcode412 ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc:412: EXPECT_EQ(popup_window.top_level_widget()->GetWindowBoundsInScreen(), On 2015/01/23 17:38:50, sky wrote: > new_pos should ...
5 years, 11 months ago (2015-01-23 19:37:12 UTC) #5
sky
https://codereview.chromium.org/871813003/diff/20001/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc File ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc (right): https://codereview.chromium.org/871813003/diff/20001/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc#newcode414 ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc:414: RunPendingMessages(); On 2015/01/23 19:37:11, ananta wrote: > On 2015/01/23 ...
5 years, 11 months ago (2015-01-23 20:29:21 UTC) #6
ananta
On 2015/01/23 20:29:21, sky wrote: > https://codereview.chromium.org/871813003/diff/20001/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc > File ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc > (right): > > https://codereview.chromium.org/871813003/diff/20001/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc#newcode414 ...
5 years, 11 months ago (2015-01-23 20:33:06 UTC) #7
ananta
On 2015/01/23 20:33:06, ananta wrote: > On 2015/01/23 20:29:21, sky wrote: > > > https://codereview.chromium.org/871813003/diff/20001/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc ...
5 years, 11 months ago (2015-01-24 00:58:57 UTC) #8
ananta
On 2015/01/24 00:58:57, ananta wrote: > On 2015/01/23 20:33:06, ananta wrote: > > On 2015/01/23 ...
5 years, 11 months ago (2015-01-24 01:08:27 UTC) #9
ananta
On 2015/01/24 01:08:27, ananta wrote: > On 2015/01/24 00:58:57, ananta wrote: > > On 2015/01/23 ...
5 years, 11 months ago (2015-01-24 04:00:51 UTC) #10
sky
While I definitely want the test classes cleaned up, that shouldn't hold up your landing ...
5 years, 11 months ago (2015-01-24 18:51:47 UTC) #11
ananta
On 2015/01/24 18:51:47, sky wrote: > While I definitely want the test classes cleaned up, ...
5 years, 11 months ago (2015-01-26 21:11:40 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/871813003/80001
5 years, 11 months ago (2015-01-26 21:12:18 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 11 months ago (2015-01-26 21:52:50 UTC) #15
commit-bot: I haz the power
5 years, 11 months ago (2015-01-26 21:54:18 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0393576a8c18cb92aecdc78e417aee3df4ec5d94
Cr-Commit-Position: refs/heads/master@{#313146}

Powered by Google App Engine
This is Rietveld 408576698