OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_VIEWS_COCOA_WIDGET_OWNER_NSWINDOW_ADAPTER_H_ | 5 #ifndef UI_VIEWS_COCOA_WIDGET_OWNER_NSWINDOW_ADAPTER_H_ |
6 #define UI_VIEWS_COCOA_WIDGET_OWNER_NSWINDOW_ADAPTER_H_ | 6 #define UI_VIEWS_COCOA_WIDGET_OWNER_NSWINDOW_ADAPTER_H_ |
7 | 7 |
8 #import "base/mac/scoped_nsobject.h" | 8 #import "base/mac/scoped_nsobject.h" |
| 9 #include "base/macros.h" |
9 #import "ui/views/cocoa/bridged_native_widget_owner.h" | 10 #import "ui/views/cocoa/bridged_native_widget_owner.h" |
10 | 11 |
11 @class NSView; | 12 @class NSView; |
12 @class NSWindow; | 13 @class NSWindow; |
13 @class WidgetOwnerNSWindowAdapterBridge; | 14 @class WidgetOwnerNSWindowAdapterBridge; |
14 | 15 |
15 namespace views { | 16 namespace views { |
16 | 17 |
17 // An adapter that allows a views::Widget to be owned by an NSWindow that is not | 18 // An adapter that allows a views::Widget to be owned by an NSWindow that is not |
18 // backed by another BridgedNativeWidget. | 19 // backed by another BridgedNativeWidget. |
(...skipping 21 matching lines...) Expand all Loading... |
40 base::scoped_nsobject<NSView> anchor_view_; | 41 base::scoped_nsobject<NSView> anchor_view_; |
41 base::scoped_nsobject<NSWindow> anchor_window_; | 42 base::scoped_nsobject<NSWindow> anchor_window_; |
42 base::scoped_nsobject<WidgetOwnerNSWindowAdapterBridge> observer_bridge_; | 43 base::scoped_nsobject<WidgetOwnerNSWindowAdapterBridge> observer_bridge_; |
43 | 44 |
44 DISALLOW_COPY_AND_ASSIGN(WidgetOwnerNSWindowAdapter); | 45 DISALLOW_COPY_AND_ASSIGN(WidgetOwnerNSWindowAdapter); |
45 }; | 46 }; |
46 | 47 |
47 } // namespace views | 48 } // namespace views |
48 | 49 |
49 #endif // UI_VIEWS_COCOA_WIDGET_OWNER_NSWINDOW_ADAPTER_H_ | 50 #endif // UI_VIEWS_COCOA_WIDGET_OWNER_NSWINDOW_ADAPTER_H_ |
OLD | NEW |