Chromium Code Reviews| 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 70fe74d8e6ba1697e5c77dcdb68bd34b3ed15d75..10e5b49fa08900355284880590f34aa2981eb256 100644 |
| --- a/ui/views/cocoa/views_nswindow_delegate.h |
| +++ b/ui/views/cocoa/views_nswindow_delegate.h |
| @@ -7,6 +7,8 @@ |
| #import <Cocoa/Cocoa.h> |
| +#import "base/mac/scoped_nsobject.h" |
| + |
| namespace views { |
| class NativeWidgetMac; |
| class BridgedNativeWidget; |
| @@ -17,12 +19,17 @@ class BridgedNativeWidget; |
| @interface ViewsNSWindowDelegate : NSObject<NSWindowDelegate> { |
| @private |
| views::BridgedNativeWidget* parent_; // Weak. Owns this. |
| + base::scoped_nsobject<NSCursor> cursor_; |
| } |
| // The NativeWidgetMac that created the window this is attached to. Returns |
| // NULL if not created by NativeWidgetMac. |
| @property(nonatomic, readonly) views::NativeWidgetMac* nativeWidgetMac; |
| +// If set, the cursor set in -[NSResponder updateCursor:] when the window is |
| +// reached along the responder chain. |
| +@property(assign, nonatomic) NSCursor* cursor; |
|
Andre
2015/02/04 02:05:55
Should be documented as retain not assign, even th
tapted
2015/02/04 08:49:28
Done.
|
| + |
| // Initialize with the given |parent|. |
| - (id)initWithBridgedNativeWidget:(views::BridgedNativeWidget*)parent; |