Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet.h

Issue 1674063002: Revert of [Reland] Enable AutoResize for Constrained Web Dialogs for Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698