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 CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_WEB_DIALOG
_SHEET_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_WEB_DIALOG
_SHEET_H_ |
6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_WEB_DIALOG
_SHEET_H_ | 6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_WEB_DIALOG
_SHEET_H_ |
7 | 7 |
8 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sh
eet.h" | 8 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sh
eet.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
11 class WebDialogDelegate; | 11 class WebDialogDelegate; |
12 } | 12 } |
13 | 13 |
14 // Represents a custom sheet for web dialog. | 14 // Represents a custom sheet for web dialog. |
15 @interface WebDialogConstrainedWindowSheet : CustomConstrainedWindowSheet { | 15 @interface WebDialogConstrainedWindowSheet : CustomConstrainedWindowSheet { |
16 @private | 16 @private |
| 17 NSSize current_size_; |
17 ui::WebDialogDelegate* web_dialog_delegate_; // Weak. | 18 ui::WebDialogDelegate* web_dialog_delegate_; // Weak. |
18 } | 19 } |
19 | 20 |
20 - (id)initWithCustomWindow:(NSWindow*)customWindow | 21 - (id)initWithCustomWindow:(NSWindow*)customWindow |
21 webDialogDelegate:(ui::WebDialogDelegate*)delegate; | 22 webDialogDelegate:(ui::WebDialogDelegate*)delegate; |
22 | 23 |
23 @end | 24 @end |
24 | 25 |
25 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_WEB_DIA
LOG_SHEET_H_ | 26 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_WEB_DIA
LOG_SHEET_H_ |
OLD | NEW |