| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_VIEWS_NSWINDOW_DELEGATE_H_ | 5 #ifndef UI_VIEWS_COCOA_VIEWS_NSWINDOW_DELEGATE_H_ |
| 6 #define UI_VIEWS_COCOA_VIEWS_NSWINDOW_DELEGATE_H_ | 6 #define UI_VIEWS_COCOA_VIEWS_NSWINDOW_DELEGATE_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #import "base/mac/scoped_nsobject.h" | 10 #import "base/mac/scoped_nsobject.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // Called on the delegate of a modal sheet when its modal session ends. | 48 // Called on the delegate of a modal sheet when its modal session ends. |
| 49 - (void)sheetDidEnd:(NSWindow*)sheet | 49 - (void)sheetDidEnd:(NSWindow*)sheet |
| 50 returnCode:(NSInteger)returnCode | 50 returnCode:(NSInteger)returnCode |
| 51 contextInfo:(void*)contextInfo; | 51 contextInfo:(void*)contextInfo; |
| 52 | 52 |
| 53 // Redeclare methods defined in the protocol NSWindowDelegate which are only | 53 // Redeclare methods defined in the protocol NSWindowDelegate which are only |
| 54 // available on OSX 10.7+. | 54 // available on OSX 10.7+. |
| 55 - (void)windowDidFailToEnterFullScreen:(NSWindow*)window; | 55 - (void)windowDidFailToEnterFullScreen:(NSWindow*)window; |
| 56 - (void)windowDidFailToExitFullScreen:(NSWindow*)window; | 56 - (void)windowDidFailToExitFullScreen:(NSWindow*)window; |
| 57 | 57 |
| 58 // Called when the application receives a mouse-down, but before the event | |
| 59 // is processed by NSWindows. Returns NO if the event should be processed as-is, | |
| 60 // or YES if the event should be reposted to handle window dragging. Events are | |
| 61 // reposted at the CGSessionEventTap level because window dragging happens there | |
| 62 // before the application receives the event. | |
| 63 - (BOOL)shouldRepostPendingLeftMouseDown:(NSPoint)locationInWindow; | |
| 64 | |
| 65 @end | 58 @end |
| 66 | 59 |
| 67 #endif // UI_VIEWS_COCOA_VIEWS_NSWINDOW_DELEGATE_H_ | 60 #endif // UI_VIEWS_COCOA_VIEWS_NSWINDOW_DELEGATE_H_ |
| OLD | NEW |