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 28 matching lines...) Expand all Loading... |
39 // paint will occur, even if Cocoa has not yet updated the window visibility. | 39 // paint will occur, even if Cocoa has not yet updated the window visibility. |
40 - (void)onWindowOrderWillChange:(NSWindowOrderingMode)orderingMode; | 40 - (void)onWindowOrderWillChange:(NSWindowOrderingMode)orderingMode; |
41 | 41 |
42 // Notify that the window has been reordered in (or removed from) the window | 42 // Notify that the window has been reordered in (or removed from) the window |
43 // server's screen list. This is a substitute for -[NSWindowDelegate | 43 // server's screen list. This is a substitute for -[NSWindowDelegate |
44 // windowDidExpose:], which is only sent for nonretained windows (those without | 44 // windowDidExpose:], which is only sent for nonretained windows (those without |
45 // a backing store). |notification| is optional and can be set when redirecting | 45 // a backing store). |notification| is optional and can be set when redirecting |
46 // a notification such as NSApplicationDidHideNotification. | 46 // a notification such as NSApplicationDidHideNotification. |
47 - (void)onWindowOrderChanged:(NSNotification*)notification; | 47 - (void)onWindowOrderChanged:(NSNotification*)notification; |
48 | 48 |
| 49 // Called whenever the Full Keyboard Access system setting is changed. |
| 50 - (void)onFullKeyboardAccessModeChanged:(NSNotification*)notification; |
| 51 |
49 // Notify when -[NSWindow display] is being called on the window. | 52 // Notify when -[NSWindow display] is being called on the window. |
50 - (void)onWindowWillDisplay; | 53 - (void)onWindowWillDisplay; |
51 | 54 |
52 // Called on the delegate of a modal sheet when its modal session ends. | 55 // Called on the delegate of a modal sheet when its modal session ends. |
53 - (void)sheetDidEnd:(NSWindow*)sheet | 56 - (void)sheetDidEnd:(NSWindow*)sheet |
54 returnCode:(NSInteger)returnCode | 57 returnCode:(NSInteger)returnCode |
55 contextInfo:(void*)contextInfo; | 58 contextInfo:(void*)contextInfo; |
56 | 59 |
57 // Redeclare methods defined in the protocol NSWindowDelegate which are only | 60 // Redeclare methods defined in the protocol NSWindowDelegate which are only |
58 // available on OSX 10.7+. | 61 // available on OSX 10.7+. |
59 - (void)windowDidFailToEnterFullScreen:(NSWindow*)window; | 62 - (void)windowDidFailToEnterFullScreen:(NSWindow*)window; |
60 - (void)windowDidFailToExitFullScreen:(NSWindow*)window; | 63 - (void)windowDidFailToExitFullScreen:(NSWindow*)window; |
61 | 64 |
62 // Called when the application receives a mouse-down, but before the event | 65 // Called when the application receives a mouse-down, but before the event |
63 // is processed by NSWindows. Returns NO if the event should be processed as-is, | 66 // is processed by NSWindows. Returns NO if the event should be processed as-is, |
64 // or YES if the event should be reposted to handle window dragging. Events are | 67 // or YES if the event should be reposted to handle window dragging. Events are |
65 // reposted at the CGSessionEventTap level because window dragging happens there | 68 // reposted at the CGSessionEventTap level because window dragging happens there |
66 // before the application receives the event. | 69 // before the application receives the event. |
67 - (BOOL)shouldRepostPendingLeftMouseDown:(NSPoint)locationInWindow; | 70 - (BOOL)shouldRepostPendingLeftMouseDown:(NSPoint)locationInWindow; |
68 | 71 |
69 @end | 72 @end |
70 | 73 |
71 #endif // UI_VIEWS_COCOA_VIEWS_NSWINDOW_DELEGATE_H_ | 74 #endif // UI_VIEWS_COCOA_VIEWS_NSWINDOW_DELEGATE_H_ |
OLD | NEW |