OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_SHEET_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_SHEET_H_ |
6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_SHEET_H_ | 6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_SHEET_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 // Protocol for a sheet to be showing using |ConstrainedWindowSheetController|. | 10 // Protocol for a sheet to be showing using |ConstrainedWindowSheetController|. |
11 @protocol ConstrainedWindowSheet<NSObject> | 11 @protocol ConstrainedWindowSheet<NSObject> |
12 | 12 |
13 - (void)showSheetForWindow:(NSWindow*)window; | 13 - (void)showSheetForWindow:(NSWindow*)window; |
14 | 14 |
15 - (void)closeSheetWithAnimation:(BOOL)withAnimation; | 15 - (void)closeSheetWithAnimation:(BOOL)withAnimation; |
16 | 16 |
17 - (void)hideSheet; | 17 - (void)hideSheet; |
18 | 18 |
19 - (void)unhideSheet; | 19 - (void)unhideSheet; |
20 | 20 |
21 - (void)pulseSheet; | 21 - (void)pulseSheet; |
22 | 22 |
23 - (void)makeSheetKeyAndOrderFront; | 23 - (void)makeSheetKeyAndOrderFront; |
24 | 24 |
25 - (void)updateSheetPosition; | 25 - (void)updateSheetPosition; |
26 | 26 |
27 - (void)resizeWithNewSize:(NSSize)size; | |
28 | |
29 @property(readonly, nonatomic) NSWindow* sheetWindow; | 27 @property(readonly, nonatomic) NSWindow* sheetWindow; |
30 | 28 |
31 @end | 29 @end |
32 | 30 |
33 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_SHEET_H
_ | 31 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_SHEET_H
_ |
OLD | NEW |