summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet.h
blob: 45495564d8e55d7fbe4e56f0dd0cc0c2d22e6ad3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_SHEET_H_
#define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_SHEET_H_

#import <Cocoa/Cocoa.h>

// Protocol for a sheet to be showing using |ConstrainedWindowSheetController|.
@protocol ConstrainedWindowSheet<NSObject>

- (void)showSheetForWindow:(NSWindow*)window;

- (void)closeSheetWithAnimation:(BOOL)withAnimation;

- (void)hideSheet;

- (void)unhideSheet;

- (void)pulseSheet;

- (void)makeSheetKeyAndOrderFront;

- (void)updateSheetPosition;

@property(readonly, nonatomic) NSWindow* sheetWindow;

@end

#endif  // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_SHEET_H_