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

Issue 2393843002: MacViews: Implement CloseNow() as just -[NSWindow close]. (Closed)

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

Description

MacViews: Implement CloseNow() as just -[NSWindow close]. This simplifies the teardown codepaths and increases parity with NativeWidgetAura by increasing the separation between the calls to OnNativeWidgetDestroying() and OnNativeWidgetDestroyed(). Previously NativeWidgetMac relied on different ways of calling `delete` on a BridgedNativeWidget in order to perform a synchronous close of the window in CloseNow(). Now it just calls -[NSWindow close], giving it the same codepath as a native-triggered close (e.g. clicking the close button in the window frame). BUG=604628 Committed: https://crrev.com/76adce4f223e7342acc632cd5abe181eb4751d99 Cr-Commit-Position: refs/heads/master@{#426407}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : fix BNW #

Patch Set 4 : address flake #

Patch Set 5 : Cleanups #

Patch Set 6 : Selfnits #

Total comments: 19

Patch Set 7 : Respond to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -61 lines) Patch
M ui/views/cocoa/bridged_native_widget.mm View 1 2 3 4 5 6 3 chunks +9 lines, -34 lines 0 comments Download
M ui/views/cocoa/bridged_native_widget_unittest.mm View 1 2 3 4 5 6 7 chunks +26 lines, -9 lines 0 comments Download
M ui/views/widget/native_widget_mac.h View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M ui/views/widget/native_widget_mac.mm View 1 2 3 4 5 6 3 chunks +18 lines, -13 lines 0 comments Download
M ui/views/widget/native_widget_mac_unittest.mm View 1 2 3 4 5 6 1 chunk +12 lines, -3 lines 0 comments Download

Messages

Total messages: 37 (29 generated)
tapted
Hi Karan, please take a look https://codereview.chromium.org/2393843002/diff/100001/ui/views/cocoa/bridged_native_widget_unittest.mm File ui/views/cocoa/bridged_native_widget_unittest.mm (right): https://codereview.chromium.org/2393843002/diff/100001/ui/views/cocoa/bridged_native_widget_unittest.mm#newcode686 ui/views/cocoa/bridged_native_widget_unittest.mm:686: // Test that ...
4 years, 2 months ago (2016-10-18 05:09:10 UTC) #21
karandeepb
https://codereview.chromium.org/2393843002/diff/100001/ui/views/cocoa/bridged_native_widget.mm File ui/views/cocoa/bridged_native_widget.mm (right): https://codereview.chromium.org/2393843002/diff/100001/ui/views/cocoa/bridged_native_widget.mm#newcode357 ui/views/cocoa/bridged_native_widget.mm:357: // that the hosted NSWindow is closed before the ...
4 years, 2 months ago (2016-10-18 10:00:30 UTC) #24
tapted
tryservers are kaput, but I don't think I broke anything :p https://codereview.chromium.org/2393843002/diff/100001/ui/views/cocoa/bridged_native_widget.mm File ui/views/cocoa/bridged_native_widget.mm (right): ...
4 years, 2 months ago (2016-10-19 06:20:26 UTC) #27
karandeepb
LGTM. https://codereview.chromium.org/2393843002/diff/100001/ui/views/widget/native_widget_mac.mm File ui/views/widget/native_widget_mac.mm (right): https://codereview.chromium.org/2393843002/diff/100001/ui/views/widget/native_widget_mac.mm#newcode367 ui/views/widget/native_widget_mac.mm:367: [window close]; On 2016/10/19 06:20:25, tapted wrote: > ...
4 years, 2 months ago (2016-10-20 00:50:23 UTC) #30
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/2393843002/120001
4 years, 2 months ago (2016-10-20 04:36:33 UTC) #32
tapted
https://codereview.chromium.org/2393843002/diff/100001/ui/views/widget/native_widget_mac.mm File ui/views/widget/native_widget_mac.mm (right): https://codereview.chromium.org/2393843002/diff/100001/ui/views/widget/native_widget_mac.mm#newcode385 ui/views/widget/native_widget_mac.mm:385: [window close]; On 2016/10/20 00:50:23, karandeepb wrote: > On ...
4 years, 2 months ago (2016-10-20 04:42:44 UTC) #33
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 2 months ago (2016-10-20 04:50:21 UTC) #35
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:15:46 UTC) #37
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/76adce4f223e7342acc632cd5abe181eb4751d99
Cr-Commit-Position: refs/heads/master@{#426407}

Powered by Google App Engine
This is Rietveld 408576698