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

Issue 2069103004: MacViews: Attach child windows when parent is on the screen. (Closed)

Created:
4 years, 6 months ago by kirr
Modified:
4 years, 5 months ago
Reviewers:
tapted
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Ensure child windows are only managed with real changes to -[NSWindow isVisible]. After restoring from a miniaturize, child windows are currently reattached too early. This is because AppKit draws the window before updating the result of -[NSWindow isVisible], and we need to participate in that draw. But updating child window relationships at this time causes layering issues when the window has finished restoring. BUG=620266 Committed: https://crrev.com/7a3314d270102d9a6dc6572846f406290021d776 Cr-Commit-Position: refs/heads/master@{#403166}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Removed OnVisibilityChangedTo(). Added test. #

Total comments: 26

Patch Set 3 : Fixed nits in test. #

Total comments: 2

Patch Set 4 : Disable test as potentialy flacky. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -41 lines) Patch
M ui/views/cocoa/bridged_native_widget.h View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M ui/views/cocoa/bridged_native_widget.mm View 1 2 3 1 chunk +3 lines, -6 lines 0 comments Download
M ui/views/cocoa/native_widget_mac_nswindow.mm View 1 2 3 1 chunk +0 lines, -14 lines 0 comments Download
M ui/views/cocoa/views_nswindow_delegate.h View 1 2 chunks +0 lines, -7 lines 0 comments Download
M ui/views/cocoa/views_nswindow_delegate.mm View 1 2 3 1 chunk +0 lines, -8 lines 0 comments Download
M ui/views/widget/native_widget_mac_unittest.mm View 1 2 3 2 chunks +49 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (8 generated)
kirr
PTAL I'm not sure that it's a right way to fix window restore. But it ...
4 years, 6 months ago (2016-06-16 08:12:36 UTC) #3
tapted
https://codereview.chromium.org/2069103004/diff/1/ui/views/cocoa/views_nswindow_delegate.mm File ui/views/cocoa/views_nswindow_delegate.mm (left): https://codereview.chromium.org/2069103004/diff/1/ui/views/cocoa/views_nswindow_delegate.mm#oldcode39 ui/views/cocoa/views_nswindow_delegate.mm:39: parent_->OnVisibilityChangedTo(orderingMode != NSWindowOut); So you're correct that this shouldn't ...
4 years, 6 months ago (2016-06-17 04:33:05 UTC) #4
kirr
https://codereview.chromium.org/2069103004/diff/1/ui/views/cocoa/views_nswindow_delegate.mm File ui/views/cocoa/views_nswindow_delegate.mm (left): https://codereview.chromium.org/2069103004/diff/1/ui/views/cocoa/views_nswindow_delegate.mm#oldcode39 ui/views/cocoa/views_nswindow_delegate.mm:39: parent_->OnVisibilityChangedTo(orderingMode != NSWindowOut); Sorry for delay. I've checked blank ...
4 years, 6 months ago (2016-06-20 16:15:54 UTC) #5
tapted
It's fine to fix the blinking in a follow-up but we can't land changes that ...
4 years, 6 months ago (2016-06-21 00:08:35 UTC) #6
kirr
https://codereview.chromium.org/2069103004/diff/1/ui/views/cocoa/views_nswindow_delegate.mm File ui/views/cocoa/views_nswindow_delegate.mm (right): https://codereview.chromium.org/2069103004/diff/1/ui/views/cocoa/views_nswindow_delegate.mm#newcode43 ui/views/cocoa/views_nswindow_delegate.mm:43: parent_->OnVisibilityChangedTo(true); On 2016/06/21 00:08:35, tapted wrote: > Let's make ...
4 years, 6 months ago (2016-06-21 16:33:47 UTC) #7
tapted
https://codereview.chromium.org/2069103004/diff/20001/ui/views/widget/native_widget_mac_unittest.mm File ui/views/widget/native_widget_mac_unittest.mm (right): https://codereview.chromium.org/2069103004/diff/20001/ui/views/widget/native_widget_mac_unittest.mm#newcode377 ui/views/widget/native_widget_mac_unittest.mm:377: // and restored using makeKeyAndOrderFront. nit: -makeKeyAndOrderFront:. https://codereview.chromium.org/2069103004/diff/20001/ui/views/widget/native_widget_mac_unittest.mm#newcode378 ui/views/widget/native_widget_mac_unittest.mm:378: ...
4 years, 6 months ago (2016-06-22 04:09:15 UTC) #9
kirr
https://codereview.chromium.org/2069103004/diff/20001/ui/views/widget/native_widget_mac_unittest.mm File ui/views/widget/native_widget_mac_unittest.mm (right): https://codereview.chromium.org/2069103004/diff/20001/ui/views/widget/native_widget_mac_unittest.mm#newcode377 ui/views/widget/native_widget_mac_unittest.mm:377: // and restored using makeKeyAndOrderFront. On 2016/06/22 04:09:15, tapted ...
4 years, 6 months ago (2016-06-22 12:59:04 UTC) #10
tapted
https://codereview.chromium.org/2069103004/diff/20001/ui/views/widget/native_widget_mac_unittest.mm File ui/views/widget/native_widget_mac_unittest.mm (right): https://codereview.chromium.org/2069103004/diff/20001/ui/views/widget/native_widget_mac_unittest.mm#newcode395 ui/views/widget/native_widget_mac_unittest.mm:395: widget->Show(); On 2016/06/22 12:59:04, kirr wrote: > On 2016/06/22 ...
4 years, 6 months ago (2016-06-23 12:09:26 UTC) #11
kirr
https://codereview.chromium.org/2069103004/diff/20001/ui/views/widget/native_widget_mac_unittest.mm File ui/views/widget/native_widget_mac_unittest.mm (right): https://codereview.chromium.org/2069103004/diff/20001/ui/views/widget/native_widget_mac_unittest.mm#newcode422 ui/views/widget/native_widget_mac_unittest.mm:422: EXPECT_TRUE([child_ns_window occlusionState] & NSWindowOcclusionStateVisible); Ok, I agree that we ...
4 years, 6 months ago (2016-06-23 16:20:12 UTC) #12
tapted
Well, since AppKit lies to us about window visibility, it might be reasonable that the ...
4 years, 6 months ago (2016-06-24 07:26:36 UTC) #13
kirr
On 2016/06/24 07:26:36, tapted wrote: > Well, since AppKit lies to us about window visibility, ...
4 years, 6 months ago (2016-06-24 07:57:34 UTC) #15
tapted
Sorry for the delay. I found some time to investigate this a bit more, but ...
4 years, 5 months ago (2016-06-30 12:02:37 UTC) #16
kirr
On 2016/06/30 12:02:37, tapted wrote: > Sorry for the delay. I found some time to ...
4 years, 5 months ago (2016-06-30 13:04:56 UTC) #18
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/2069103004/60001
4 years, 5 months ago (2016-06-30 13:05:54 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-06-30 13:51:10 UTC) #22
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 13:51:15 UTC) #23
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 13:52:41 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7a3314d270102d9a6dc6572846f406290021d776
Cr-Commit-Position: refs/heads/master@{#403166}

Powered by Google App Engine
This is Rietveld 408576698