Index: ui/views/cocoa/views_nswindow_delegate.h |
diff --git a/ui/views/cocoa/views_nswindow_delegate.h b/ui/views/cocoa/views_nswindow_delegate.h |
index 2f1104c1bc3e7f7a2baf4a35e9d63280e8e59ee8..2f1d1e95f498088d08e5264653f4c27df984c8a1 100644 |
--- a/ui/views/cocoa/views_nswindow_delegate.h |
+++ b/ui/views/cocoa/views_nswindow_delegate.h |
@@ -17,12 +17,16 @@ class BridgedNativeWidget; |
@interface ViewsNSWindowDelegate : NSObject<NSWindowDelegate> { |
@private |
views::BridgedNativeWidget* parent_; // Weak. Owns this. |
+ |
+ BOOL transientChild_; |
} |
// The NativeWidgetMac that created the window this is attached to. Returns |
// NULL if not created by NativeWidgetMac. |
@property(nonatomic, readonly) views::NativeWidgetMac* nativeWidgetMac; |
+@property(nonatomic, assign, getter=isTransientChild) BOOL transientChild; |
+ |
// Initialize with the given |parent|. |
- (id)initWithBridgedNativeWidget:(views::BridgedNativeWidget*)parent; |
@@ -33,8 +37,9 @@ class BridgedNativeWidget; |
// Notify that the window has been reordered in (or removed from) the window |
// server's screen list. This is a substitute for -[NSWindowDelegate |
// windowDidExpose:], which is only sent for nonretained windows (those without |
-// a backing store). |
-- (void)onWindowOrderChanged; |
+// a backing store). |notification| is optional and can be set when redirecting |
+// a notification such as NSApplicationDidHideNotification. |
+- (void)onWindowOrderChanged:(NSNotification*)notification; |
@end |