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..d5ef872ee078e3c41aeb77a627391a2ac44d84c8 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(retain, nonatomic) NSCursor* cursor; |
+ |
// Initialize with the given |parent|. |
- (id)initWithBridgedNativeWidget:(views::BridgedNativeWidget*)parent; |