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

Issue 2448243003: MacViews: Reattach children of native windows when they are exposed. (Closed)

Created:
4 years, 1 month ago by tapted
Modified:
4 years, 1 month ago
Reviewers:
karandeepb
CC:
chromium-reviews, tfarina, mac-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Reattach children of native windows when they are exposed. Since NSWindow's childWindow breaks when windows are ordered out (except via -[NSApp hide] it seems), we detach child windows in all cases where a Widget becomes hidden. Currently they're only re-attached for NSWindows backed by views::Widget. To fix, watch for the parent window being exposed, and update relationships accordingly. This is done implicitly, by making the child Widget visible again, if it wants to be. BUG=659161 Committed: https://crrev.com/6c06b0559798ae1120beb416075cffb88ea92874 Cr-Commit-Position: refs/heads/master@{#428002}

Patch Set 1 #

Patch Set 2 : Neater #

Patch Set 3 : +test #

Total comments: 16

Patch Set 4 : respond to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -7 lines) Patch
M ui/views/cocoa/bridged_native_widget.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/cocoa/widget_owner_nswindow_adapter.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/cocoa/widget_owner_nswindow_adapter.mm View 1 2 3 4 chunks +41 lines, -1 line 0 comments Download
M ui/views/widget/native_widget_mac_unittest.mm View 1 2 3 4 chunks +32 lines, -5 lines 0 comments Download

Messages

Total messages: 27 (18 generated)
tapted
Hi Karan, please take a look
4 years, 1 month ago (2016-10-26 06:04:06 UTC) #9
karandeepb
Looks good. The logic was a bit hard to follow, so I have suggested some ...
4 years, 1 month ago (2016-10-27 03:21:17 UTC) #12
tapted
On 2016/10/27 03:21:17, karandeepb wrote: > Looks good. The logic was a bit hard to ...
4 years, 1 month ago (2016-10-27 04:06:49 UTC) #15
karandeepb
LGTM.
4 years, 1 month ago (2016-10-27 04:12:03 UTC) #16
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/2448243003/60001
4 years, 1 month ago (2016-10-27 04:13:11 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/323437)
4 years, 1 month ago (2016-10-27 08:08:14 UTC) #21
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/2448243003/60001
4 years, 1 month ago (2016-10-27 11:49:47 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-10-27 12:27:28 UTC) #25
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 12:30:15 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/6c06b0559798ae1120beb416075cffb88ea92874
Cr-Commit-Position: refs/heads/master@{#428002}

Powered by Google App Engine
This is Rietveld 408576698