| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 - (void)onWindowOrderChanged:(NSNotification*)notification; | 45 - (void)onWindowOrderChanged:(NSNotification*)notification; |
| 46 | 46 |
| 47 // Notify when -[NSWindow display] is being called on the window. | 47 // Notify when -[NSWindow display] is being called on the window. |
| 48 - (void)onWindowWillDisplay; | 48 - (void)onWindowWillDisplay; |
| 49 | 49 |
| 50 // Called on the delegate of a modal sheet when its modal session ends. | 50 // Called on the delegate of a modal sheet when its modal session ends. |
| 51 - (void)sheetDidEnd:(NSWindow*)sheet | 51 - (void)sheetDidEnd:(NSWindow*)sheet |
| 52 returnCode:(NSInteger)returnCode | 52 returnCode:(NSInteger)returnCode |
| 53 contextInfo:(void*)contextInfo; | 53 contextInfo:(void*)contextInfo; |
| 54 | 54 |
| 55 // Called when the application receives a mouse-down, but before the event |
| 56 // is processed by NSWindows. Returning YES here will cause the event to be |
| 57 // reposted. |
| 58 - (BOOL)onWindowWillReceiveLeftMouseDown:(NSPoint)locationInWindow; |
| 59 |
| 55 @end | 60 @end |
| 56 | 61 |
| 57 #endif // UI_VIEWS_COCOA_VIEWS_NSWINDOW_DELEGATE_H_ | 62 #endif // UI_VIEWS_COCOA_VIEWS_NSWINDOW_DELEGATE_H_ |
| OLD | NEW |