OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_CERTIFICATE_VIEWER_MAC_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_CERTIFICATE_VIEWER_MAC_H_ |
6 | 6 |
7 #define CHROME_BROWSER_UI_COCOA_CERTIFICATE_VIEWER_MAC_H_ | 7 #define CHROME_BROWSER_UI_COCOA_CERTIFICATE_VIEWER_MAC_H_ |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 @private | 23 @private |
24 // The corresponding list of certificates. | 24 // The corresponding list of certificates. |
25 base::scoped_nsobject<NSArray> certificates_; | 25 base::scoped_nsobject<NSArray> certificates_; |
26 std::unique_ptr<SSLCertificateViewerCocoaBridge> observer_; | 26 std::unique_ptr<SSLCertificateViewerCocoaBridge> observer_; |
27 base::scoped_nsobject<SFCertificatePanel> panel_; | 27 base::scoped_nsobject<SFCertificatePanel> panel_; |
28 std::unique_ptr<ConstrainedWindowMac> constrainedWindow_; | 28 std::unique_ptr<ConstrainedWindowMac> constrainedWindow_; |
29 base::scoped_nsobject<NSWindow> overlayWindow_; | 29 base::scoped_nsobject<NSWindow> overlayWindow_; |
30 BOOL closePending_; | 30 BOOL closePending_; |
31 // A copy of the sheet's frame used to restore on show. | 31 // A copy of the sheet's frame used to restore on show. |
32 NSRect oldSheetFrame_; | 32 NSRect oldSheetFrame_; |
| 33 // A copy of the overlay window's size used to restore on show. |
| 34 NSSize oldOverlaySize_; |
33 // A copy of the sheet's |autoresizesSubviews| flag to restore on show. | 35 // A copy of the sheet's |autoresizesSubviews| flag to restore on show. |
34 BOOL oldResizesSubviews_; | 36 BOOL oldResizesSubviews_; |
35 } | 37 } |
36 | 38 |
37 - (id)initWithCertificate:(net::X509Certificate*)certificate; | 39 - (id)initWithCertificate:(net::X509Certificate*)certificate; |
38 | 40 |
39 - (void)displayForWebContents:(content::WebContents*)webContents; | 41 - (void)displayForWebContents:(content::WebContents*)webContents; |
40 | 42 |
41 - (NSWindow*)overlayWindow; | 43 - (NSWindow*)overlayWindow; |
42 | 44 |
43 @end | 45 @end |
44 | 46 |
45 #endif // CHROME_BROWSER_UI_COCOA_CERTIFICATE_VIEWER_MAC_H_ | 47 #endif // CHROME_BROWSER_UI_COCOA_CERTIFICATE_VIEWER_MAC_H_ |
OLD | NEW |