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

Unified Diff: ui/views/cocoa/widget_owner_nswindow_adapter.h

Issue 1169063002: MacViews: Retain non-Widget parent NSWindows, as well as the anchor NSView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | ui/views/cocoa/widget_owner_nswindow_adapter.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/cocoa/widget_owner_nswindow_adapter.h
diff --git a/ui/views/cocoa/widget_owner_nswindow_adapter.h b/ui/views/cocoa/widget_owner_nswindow_adapter.h
index 6b10e394ea166d6424f4ef25b4629904a220445f..6d5517edca581630e38c2de9c9bbd5e956ac6dd8 100644
--- a/ui/views/cocoa/widget_owner_nswindow_adapter.h
+++ b/ui/views/cocoa/widget_owner_nswindow_adapter.h
@@ -9,6 +9,7 @@
#import "ui/views/cocoa/bridged_native_widget_owner.h"
@class NSView;
+@class NSWindow;
@class WidgetOwnerNSWindowAdapterBridge;
namespace views {
@@ -37,6 +38,7 @@ class WidgetOwnerNSWindowAdapter : public BridgedNativeWidgetOwner {
BridgedNativeWidget* child_; // Weak. Owned by its NativeWidgetMac.
base::scoped_nsobject<NSView> anchor_view_;
+ base::scoped_nsobject<NSWindow> anchor_window_;
base::scoped_nsobject<WidgetOwnerNSWindowAdapterBridge> observer_bridge_;
DISALLOW_COPY_AND_ASSIGN(WidgetOwnerNSWindowAdapter);
« no previous file with comments | « no previous file | ui/views/cocoa/widget_owner_nswindow_adapter.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698