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

Unified Diff: ui/views/widget/native_widget_mac.h

Issue 2393843002: MacViews: Implement CloseNow() as just -[NSWindow close]. (Closed)
Patch Set: Respond to comments Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/cocoa/bridged_native_widget_unittest.mm ('k') | ui/views/widget/native_widget_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_mac.h
diff --git a/ui/views/widget/native_widget_mac.h b/ui/views/widget/native_widget_mac.h
index 59867c02b5435ce425dba2d8c6031f52aa645e11..580dacfbdad6b4ab51e105c8df9febde0a6fa110 100644
--- a/ui/views/widget/native_widget_mac.h
+++ b/ui/views/widget/native_widget_mac.h
@@ -38,8 +38,9 @@ class VIEWS_EXPORT NativeWidgetMac : public internal::NativeWidgetPrivate {
bool IsWindowModalSheet() const;
// Deletes |bridge_| and informs |delegate_| that the native widget is
- // destroyed. This is usually called from the NSWindowDelegate.
- void OnWindowWillClose();
+ // destroyed. BridgedNativeWidget::OnWindowWillClose() calls this when the
+ // NSWindowDelegate informs the bridge that the window is being closed.
+ void OnWindowDestroyed();
// Returns the vertical position that sheets should be anchored, in pixels
// from the bottom of the window.
« no previous file with comments | « ui/views/cocoa/bridged_native_widget_unittest.mm ('k') | ui/views/widget/native_widget_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698